RE: [PATCH] iov_iter: don't revert if csum error

From: David Laight
Date: Fri Apr 28 2017 - 09:52:05 EST


From: Sabrina Dubroca
> Sent: 28 April 2017 14:17
...
> > if (__skb_checksum_complete(skb))
> > - goto csum_error;
> > + goto fault;
>
> With this patch, skb_copy_and_csum_datagram_msg() will return -EFAULT
> for an incorrect checksum, that doesn't seem right.

Especially since (IIRC) -EFAULT generates SIGSEGV.

David