aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2016-10-24 01:03:06 +0000
committerDavid S. Miller <[email protected]>2016-10-26 21:33:22 +0000
commit10df8e6152c6c400a563a673e9956320bfce1871 (patch)
tree364d982c791875093f8b1cf2f6227c6e471dcf11 /lib/debugobjects.c
parentsctp: fix the panic caused by route update (diff)
downloadkernel-10df8e6152c6c400a563a673e9956320bfce1871.tar.gz
kernel-10df8e6152c6c400a563a673e9956320bfce1871.zip
udp: fix IP_CHECKSUM handling
First bug was added in commit ad6f939ab193 ("ip: Add offset parameter to ip_cmsg_recv") : Tom missed that ipv4 udp messages could be received on AF_INET6 socket. ip_cmsg_recv(msg, skb) should have been replaced by ip_cmsg_recv_offset(msg, skb, sizeof(struct udphdr)); Then commit e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") forgot to adjust the offsets now UDP headers are pulled before skb are put in receive queue. Fixes: ad6f939ab193 ("ip: Add offset parameter to ip_cmsg_recv") Fixes: e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") Signed-off-by: Eric Dumazet <[email protected]> Cc: Sam Kumar <[email protected]> Cc: Willem de Bruijn <[email protected]> Tested-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions