On Fri, Feb 15, 2019 at 12:41 PM David Miller <da...@davemloft.net> wrote: > > > I've merged net into net-next. > > The worst conflict was cls_tcindex.c as Cong's fixes collided heavily > with Vlad's work. > > The interim solution I used for this merge was to revert back to RCU. > > Please take a look at what I did and send me followups because I am > absolutely certain that some are necessary :-)))
Well, there is nothing fundamentally changed w.r.t. the race I have fixed. In tcindex_delete(), after all Vlad's patches, it still calls tcf_queue_work() therefore still races with call_rcu(). This has nothing to do with whether it is RTNL or another mutex. For the first memory leak, it is same, nothing changes, tcindex_delete() still skips r->res.class==0 therefore we still need to fix it. For the rest two memory leaks, it looks like you already merged the fix (patch 3/3) correctly. I will cherry-pick the first two patches for net-next and send them to you. Thanks.