summaryrefslogtreecommitdiff
path: root/drivers/clocksource/qcom-timer.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2017-02-21 09:33:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-26 11:07:50 +0100
commitce9ecb8d7f3c698c48b0885936d0b7275dacde9c (patch)
treed738914c9d76e7d8c176c22a3ba0a54673aa3475 /drivers/clocksource/qcom-timer.c
parent353dd7290025bc33555282848ab015c1bbf21186 (diff)
ip: fix IP_CHECKSUM handling
[ Upstream commit ca4ef4574f1ee5252e2cd365f8f5d5bafd048f32 ] 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 <andreyknvl@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clocksource/qcom-timer.c')
0 files changed, 0 insertions, 0 deletions