[Linux-kernel-mentees] [PATCH net v2] ipv6: Fix suspicious RCU usage warning in ip6mr

David Miller davem at davemloft.net
Sat May 16 20:43:04 UTC 2020


From: madhuparnabhowmik10 at gmail.com
Date: Sat, 16 May 2020 13:15:15 +0530

> From: Madhuparna Bhowmik <madhuparnabhowmik10 at gmail.com>
> 
> This patch fixes the following warning:
> 
> =============================
> WARNING: suspicious RCU usage
> 5.7.0-rc4-next-20200507-syzkaller #0 Not tainted
> -----------------------------
> net/ipv6/ip6mr.c:124 RCU-list traversed in non-reader section!!
> 
> ipmr_new_table() returns an existing table, but there is no table at
> init. Therefore the condition: either holding rtnl or the list is empty
> is used.
> 
> Fixes: d1db275dd3f6e ("ipv6: ip6mr: support multiple tables")
> Reported-by: kernel test robot <lkp at intel.com>
> Suggested-by: Jakub Kicinski <kuba at kernel.org>
> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10 at gmail.com>

Applied and queued up for -stable, thanks.


More information about the Linux-kernel-mentees mailing list