ipv6: protect flow label renew against GC
authorFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Thu, 7 Nov 2013 16:53:14 +0000 (17:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 18:44:15 +0000 (13:44 -0500)
commit394055f6fabd077e74815865f01a73a31dd765d3
treef662d2d1206ef88cc47e97ac01d2f6f3dc6b8a67
parent53b47106c0c2b1f42237d255ae272f0fcc3ec413
ipv6: protect flow label renew against GC

Take ip6_fl_lock before to read and update
a label.

v2: protect only the relevant code

Reported-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_flowlabel.c