Paolo Abeni 9bd780f5e0 udp: fix poll()
Michael reported an UDP breakage caused by the commit b65ac44674dd
("udp: try to avoid 2 cache miss on dequeue").
The function __first_packet_length() can update the checksum bits
of the pending skb, making the scratched area out-of-sync, and
setting skb->csum, if the skb was previously in need of checksum
validation.

On later recvmsg() for such skb, checksum validation will be
invoked again - due to the wrong udp_skb_csum_unnecessary()
value - and will fail, causing the valid skb to be dropped.

This change addresses the issue refreshing the scratch area in
__first_packet_length() after the possible checksum update.

Fixes: b65ac44674dd ("udp: try to avoid 2 cache miss on dequeue")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-23 11:18:43 -04:00
..
2017-06-04 22:56:55 -04:00
2017-05-21 13:42:36 -04:00
2016-10-20 14:32:22 -04:00
2017-01-13 22:37:16 -05:00
2017-04-30 22:44:04 -04:00
2017-05-08 15:10:31 -04:00
2017-06-15 12:12:40 -04:00
2017-03-24 20:50:28 -07:00
2017-06-17 22:54:01 -04:00
2017-06-15 12:12:40 -04:00
2017-05-21 13:42:36 -04:00
2017-05-24 16:29:57 -04:00
2017-06-15 12:12:40 -04:00
2017-06-23 11:18:43 -04:00
2017-02-15 11:04:11 +01:00
2017-01-10 10:57:12 +01:00
2013-05-31 17:19:05 -07:00