]> git.hungrycats.org Git - linux/commit
ipmr: fix tables suspicious RCU usage
authorPaolo Abeni <pabeni@redhat.com>
Sun, 24 Nov 2024 15:40:58 +0000 (16:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 13:02:35 +0000 (14:02 +0100)
commit72bb7903de7058beee014c869b8ca716a1418786
treef430fe154271bc0546e8b030a0f3d22a999d3edc
parentead7c1263ebe1eb303d8b402ca6071fd8a767951
ipmr: fix tables suspicious RCU usage

[ Upstream commit fc9c273d6daaa9866f349bbe8cae25c67764c456 ]

Similar to the previous patch, plumb the RCU lock inside
the ipmr_get_table(), provided a lockless variant and apply
the latter in the few spots were the lock is already held.

Fixes: 709b46e8d90b ("net: Add compat ioctl support for the ipv4 multicast ioctl SIOCGETSGCNT")
Fixes: f0ad0860d01e ("ipv4: ipmr: support multiple tables")
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/ipmr.c