[IPV6]: IPV6_CHECKSUM socket option can corrupt kernel memory
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Apr 2005 05:30:14 +0000 (22:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2005 05:30:14 +0000 (22:30 -0700)
commit357b40a18b04c699da1d45608436e9b76b50e251
tree51c4480c9508a911d52a3f69bbe84ec1191fd202
parentfd92833a52b972aafacced959f4a3f7541936a9b
[IPV6]: IPV6_CHECKSUM socket option can corrupt kernel memory

So here is a patch that introduces skb_store_bits -- the opposite of
skb_copy_bits, and uses them to read/write the csum field in rawv6.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv6/raw.c