]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: ipv6_fl_socklist is inadvertently shared.
authorMasayuki Nakagawa <nakagawa.msy@ncos.nec.co.jp>
Fri, 16 Mar 2007 23:14:03 +0000 (16:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2007 23:14:03 +0000 (16:14 -0700)
commit8e94aef4b72bb6209adc3c41a0c527c5aeaaf2cb
treea9f87fa226d8f687c0072409ccb3c7ff0d60698d
parent148d71a7bcf5053d2d0ba89ef60f664c13fc5121
[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>
net/ipv6/tcp_ipv6.c