]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix ipv6 flow label inheritance
authorMasayuki Nakagawa <nakagawa.msy@ncos.nec.co.jp>
Sat, 17 Mar 2007 01:31:22 +0000 (18:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:25 +0000 (12:49 -0700)
commitc92fc42fc79aa7c77c90d91c69144f2d9b94a71b
tree29e9d36413d7f7f6b3c1fda4d55fb56800829d48
parentaa2bb55bbc1e890e1c1fefe72a953c476cb867a3
Fix ipv6 flow label inheritance

[IPV6]: ipv6_fl_socklist is inadvertently shared.

The ipv6_fl_socklist from listening socket is inadvertently shared
with new socket created for connection.  This leads to a variety of
interesting, but fatal, bugs. For example, removing one of the
sockets may lead to the other socket's encountering a page fault
when the now freed list is referenced.

The fix is to not share the flow label list with the new socket.

Signed-off-by: Masayuki Nakagawa <nakagawa.msy@ncos.nec.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/tcp_ipv6.c