Re: [PATCH 1/5 v2] sunrpc: Remove sk_no_check setting
From: Tom Herbert <hidden>
Date: 2014-05-21 21:15:34
On Wed, May 21, 2014 at 2:14 PM, Tom Herbert [off-list ref] wrote:
On Wed, May 21, 2014 at 1:37 PM, David Miller [off-list ref] wrote:quoted
From: Tom Herbert <redacted> Date: Mon, 19 May 2014 10:09:56 -0700 (PDT)quoted
Setting sk_no_check to UDP_CSUM_NORCV seems to have no effect. Signed-off-by: Tom Herbert <redacted>It does have an effect. All of the UDP receive paths check for sk->sk_no_check being non-zero, causing it to accept packets with a zero checksum. You're changing behavior here.We always accept zero UDP checksums for IPv4, there is currently no way to disable that (sk_no_check should not affect that). For IPv6 UDP, I intend to make allowing zero RX checksums not to be default and must be explicitly configured. I'm not sure if sunrpc qualifies as a protocol for which zero v6 csums should be allowed, but in any case since we weren't accepting any v6 zero csums before there is no behavior change in that case either.