Re: [Patch net] net_sched: check error pointer in tcf_dump_walker()

2020-10-04 Thread David Miller
From: Cong Wang Date: Fri, 2 Oct 2020 12:13:34 -0700 > Although we take RTNL on dump path, it is possible to > skip RTNL on insertion path. So the following race condition > is possible: > > rtnl_lock() // no rtnl lock > mutex_lock(&idrinfo->lock); >

[Patch net] net_sched: check error pointer in tcf_dump_walker()

2020-10-02 Thread Cong Wang
Although we take RTNL on dump path, it is possible to skip RTNL on insertion path. So the following race condition is possible: rtnl_lock() // no rtnl lock mutex_lock(&idrinfo->lock); // insert ERR_PTR(-EBUSY) mute