]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipmr: fix tables suspicious RCU usage
authorPaolo Abeni <pabeni@redhat.com>
Sun, 24 Nov 2024 15:40:58 +0000 (16:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 Nov 2024 09:23:23 +0000 (10:23 +0100)
commitfc9c273d6daaa9866f349bbe8cae25c67764c456
treea569379b41f89d1201c0547927af2995ccd256c9
parentf1553c9894b4dbeb10a2ab15ab1aa113b3b4047c
ipmr: fix tables suspicious RCU usage

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>
net/ipv4/ipmr.c