]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
udp: Fix UDP short packet false positive
authorJesper Dangaard Brouer <hawk@comx.dk>
Thu, 5 Feb 2009 23:05:45 +0000 (15:05 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:28:56 +0000 (09:28 -0800)
commit1888776132257cf5e0d806dd5c0665f436738644
treeaeede1be54e905a09487f65fa1a78b27f6fea954
parent8527040ae52a767037fe3faec6aeeed474b48104
udp: Fix UDP short packet false positive

[ Upstream commit 7b5e56f9d635643ad54f2f42e69ad16b80a2cff1 ]

The UDP header pointer assignment must happen after calling
pskb_may_pull().  As pskb_may_pull() can potentially alter the SKB
buffer.

This was exposted by running multicast traffic through the NIU driver,
as it won't prepull the protocol headers into the linear area on
receive.

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