]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PACKET]: Fix skb->cb clobbering between aux and sockaddr
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Feb 2007 07:33:10 +0000 (23:33 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 8 Feb 2007 20:38:47 +0000 (12:38 -0800)
commitffbc61117d32dc4e768f999325ecfb2528d6b303
treef59a235c4eb22ac5ad9ede80f814f5d6ab1e6641
parent8dc4194474159660d7f37c495e3fc3f10d0db8cc
[PACKET]: Fix skb->cb clobbering between aux and sockaddr

Both aux data and sockaddr tries to use the same buffer which
obviously doesn't work.  We just happen to have 4 bytes free in
the skb->cb if you take away the maximum length of sockaddr_ll.
That's just enough to store the one piece of info from aux data
that we can't generate at recvmsg(2) time.

This is what the following patch does.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c