Re: [Patch net] net_sched: check error pointer in tcf_dump_walker()
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()
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