aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2017-02-21 09:33:18 +0100
committerDavid S. Miller <[email protected]>2017-02-21 12:23:53 -0500
commitca4ef4574f1ee5252e2cd365f8f5d5bafd048f32 (patch)
tree0e9ae821b92bfa2cb2e143e15b4b98e829d59528 /scripts/gdb/linux/modules.py
parent8dcd81a993f4f65d22dfecb4360204b428c36cff (diff)
ip: fix IP_CHECKSUM handling
The skbs processed by ip_cmsg_recv() are not guaranteed to be linear e.g. when sending UDP packets over loopback with MSGMORE. Using csum_partial() on [potentially] the whole skb len is dangerous; instead be on the safe side and use skb_checksum(). Thanks to syzkaller team to detect the issue and provide the reproducer. v1 -> v2: - move the variable declaration in a tighter scope Fixes: ad6f939ab193 ("ip: Add offset parameter to ip_cmsg_recv") Reported-by: Andrey Konovalov <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions