OSDN Git Service

[PATCH] IPV6: ipv6_fl_socklist is inadvertently shared.
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2007 20:22:10 +0000 (21:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2007 22:02:35 +0000 (23:02 +0100)
commit86b21d8a1b97aaf523749d9c7b03b113e0cf9ee0
treedaa0f15845f508a463f3352b7931df67ea048cf8
parent9bed12b17f03c38ec62d7a13881075a4cf85c13e
[PATCH] IPV6: ipv6_fl_socklist is inadvertently shared.

Backport from 2.6. Original patch from Masayuki Nakagawa, with
his description below :

"
 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.
"

original patch:
Signed-off-by: Masayuki Nakagawa <nakagawa.msy@ncos.nec.co.jp>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv6/tcp_ipv6.c