]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2009 23:05:45 +0000 (15:05 -0800)
commit2643c3ca60ad11981537c9cd7123fda2a3d26e7e
treef0e3d35d01047375ea2eef5f8c99d9b96bc919ab
parentb475066b2899643769acd59e079ada18488a72e0
udp: Fix UDP short packet false positive

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>
net/ipv4/udp.c