ipv6: protect for_each_sk_fl_rcu in mem_check with rcu_read_lock_bh
Subsystems (4)
PATCH 1/1 ipv6: protect for_each_sk_fl_rcu in mem_check with rcu_read_lock_bh
Fixes a suspicious rcu derference warning.
Cc Florent Fourcot <[email protected]>
Signed-off-by Hannes Frederic Sowa <[email protected]>
--- net/ipv6/ip6_flowlabel.c | 2 ++ 1 file changed, 2 insertions(+)
net/ipv6/ip6_flowlabel.c +2 -0
@@ -457,8 +457,10 @@ static int mem_check(struct sock *sk)if (room >FL_MAX_SIZE -FL_MAX_PER_SOCK )return 0 ; +rcu_read_lock_bh ();for_each_sk_fl_rcu (np, sfl) count++; +rcu_read_unlock_bh (); if (room <= 0 || ((count >= FL_MAX_PER_SOCK ||
Signature · 1 line
1.8.3.1
David Miller
maintainerFrom: Hannes Frederic Sowa <[email protected]>
Date: Fri, 8 Nov 2013 19:26:21 +0100
Quoted 4 lines
Fixes a suspicious rcu derference warning.
Cc Florent Fourcot <[email protected]>Signed-off-by Hannes Frederic Sowa <[email protected]>
Looks good, applied and queued up for -stable.