]> git.hungrycats.org Git - linux/commit
[NET]: In sock_queue_rcv_skb(), do not deref skb->len after it is queued to the socket.
authorDavid S. Miller <davem@nuts.ninka.net>
Mon, 24 Nov 2003 11:44:51 +0000 (03:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 24 Nov 2003 11:44:51 +0000 (03:44 -0800)
commit690bf96392f81b9b80c25a15e0b3183b74937702
treeffcdce0576664b75bd21248ea3fdf8eb20ccdfad
parent29c1bc9f03fa89c5c5e4e2e5b6be0768bc6b442e
[NET]: In sock_queue_rcv_skb(), do not deref skb->len after it is queued to the socket.

In implementations that use no socket locking, such as RAW sockets,
once we queue the SKB to the socket another cpu can remove the SKB
from the socket queue and free up the SKB making the skb->len access
touch freed memory.

Based upon a report from Burton Windle, kernel bugzilla #937
include/net/sock.h