Re: [PATCH net] ip: fix IP_CHECKSUM handling

2017-02-20 Thread Stephen Hemminger
On Mon, 20 Feb 2017 17:55:39 +0100 Paolo Abeni wrote: > 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

[PATCH net] ip: fix IP_CHECKSUM handling

2017-02-20 Thread Paolo Abeni
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