aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-04-29 09:20:36 -0700
committerDavid S. Miller <davem@davemloft.net>2022-04-30 15:19:08 +0100
commita9384a4c1d250cb40cebf50e41459426d160b08e (patch)
tree26224d2aba035c4249666eeb6bd9317146976807 /include
parentnet: igmp: respect RCU rules in ip_mc_source() and ip_mc_msfilter() (diff)
downloadlinux-dev-a9384a4c1d250cb40cebf50e41459426d160b08e.tar.xz
linux-dev-a9384a4c1d250cb40cebf50e41459426d160b08e.zip
mld: respect RCU rules in ip6_mc_source() and ip6_mc_msfilter()
Whenever RCU protected list replaces an object, the pointer to the new object needs to be updated _before_ the call to kfree_rcu() or call_rcu() Also ip6_mc_msfilter() needs to update the pointer before releasing the mc_lock mutex. Note that linux-5.13 was supporting kfree_rcu(NULL, rcu), so this fix does not need the conditional test I was forced to use in the equivalent patch for IPv4. Fixes: 882ba1f73c06 ("mld: convert ipv6_mc_socklist->sflist to RCU") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions