linux/net/mctp
Jeremy Kerr 581edcd0c8 mctp: perform route destruction under RCU read lock
The kernel test robot reports:

  [  843.509974][  T345] =============================
  [  843.524220][  T345] WARNING: suspicious RCU usage
  [  843.538791][  T345] 5.14.0-rc2-00606-g889b7da23abf #1 Not tainted
  [  843.553617][  T345] -----------------------------
  [  843.567412][  T345] net/mctp/route.c:310 RCU-list traversed in non-reader section!!

- we're missing the rcu read lock acquire around the destruction path.

This change adds the acquire/release - the path is already atomic, and
we're using the _rcu list iterators.

Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-08 11:29:16 +01:00
..
af_mctp.c mctp: remove duplicated assignment of pointer hdr 2021-08-05 10:56:01 +01:00
device.c mctp: Allow per-netns default networks 2021-07-29 15:06:50 +01:00
Kconfig
Makefile mctp: Add neighbour implementation 2021-07-29 15:06:50 +01:00
neigh.c mctp: Add neighbour netlink interface 2021-07-29 15:06:50 +01:00
route.c mctp: perform route destruction under RCU read lock 2021-09-08 11:29:16 +01:00