Re: [Patch net] net_sched: reorder pernet ops and act ops registrations

2016-10-13 Thread David Miller
From: Cong Wang Date: Tue, 11 Oct 2016 10:56:45 -0700 > Krister reported a kernel NULL pointer dereference after > tcf_action_init_1() invokes a_o->init(), it is a race condition > where one thread calling tcf_register_action() to initialize > the netns data after putting act ops in the global li

Re: [Patch net] net_sched: reorder pernet ops and act ops registrations

2016-10-12 Thread Jamal Hadi Salim
On 16-10-11 01:56 PM, Cong Wang wrote: Krister reported a kernel NULL pointer dereference after tcf_action_init_1() invokes a_o->init(), it is a race condition where one thread calling tcf_register_action() to initialize the netns data after putting act ops in the global list and the other thread

[Patch net] net_sched: reorder pernet ops and act ops registrations

2016-10-11 Thread Cong Wang
Krister reported a kernel NULL pointer dereference after tcf_action_init_1() invokes a_o->init(), it is a race condition where one thread calling tcf_register_action() to initialize the netns data after putting act ops in the global list and the other thread searching the list and then calling a_o-