[IPv6] reassembly: Always compute hash under the fragment lock.
authorZach Brown <zach.brown@oracle.com>
Mon, 10 Apr 2006 23:05:34 +0000 (16:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 12 Apr 2006 00:21:05 +0000 (17:21 -0700)
commitf6596f9d2b4f0255f6cd68c76b85fe4cec6352af
tree6e95cca360198b2e546904d17760ba71d1dc5ee8
parenta145410dccdb44f81d3b56763ef9b6f721f4e47c
[IPv6] reassembly: Always compute hash under the fragment lock.

This closes a race where an ipq6hashfn() caller could get a hash value
and race with the cycling of the random seed.  By the time they got to
the read_lock they'd have a stale hash value and might not find
previous fragments of their datagram.

This matches the previous patch to IPv4.

Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/reassembly.c