]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Fix potential wrong ip_hdr(skb) pointers
authorJesper Dangaard Brouer <hawk@comx.dk>
Fri, 6 Feb 2009 09:59:12 +0000 (01:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2009 09:59:12 +0000 (01:59 -0800)
commit8e49f7bdeafff302e7304ab9b430939494832457
tree1e0ada9b370ffc967b138dfb7d7c5464a0d4f438
parent0695479606a52742dcad704f2514631bf508c1b8
udp: Fix potential wrong ip_hdr(skb) pointers

Like the UDP header fix, pskb_may_pull() can potentially
alter the SKB buffer.  Thus the saddr and daddr, pointers
may point to the old skb->data buffer.

I haven't seen corruptions, as its only seen if the old
skb->data buffer were reallocated by another user and
written into very quickly (or poison'd by SLAB debugging).

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c