Re: [PATCH v2 1/6] net: rtnetlink: Fix incorrect RCU API usage

2019-02-25 Thread Paul E. McKenney
On Sat, Feb 23, 2019 at 01:34:29AM -0500, Joel Fernandes (Google) wrote: > rtnl_register_internal() and rtnl_unregister_all tries to directly > dereference an RCU protected pointed outside RCU read side section. > While this is Ok to do since a lock is held, let us use the correct > API to avoid pr

[PATCH v2 1/6] net: rtnetlink: Fix incorrect RCU API usage

2019-02-22 Thread Joel Fernandes (Google)
rtnl_register_internal() and rtnl_unregister_all tries to directly dereference an RCU protected pointed outside RCU read side section. While this is Ok to do since a lock is held, let us use the correct API to avoid programmer bugs in the future. This also fixes sparse warnings arising from not us