Re: [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive.

2021-02-15 Thread Dan Carpenter
On Mon, Feb 15, 2021 at 08:04:11AM -0700, David Ahern wrote: > On 2/15/21 5:03 AM, Dan Carpenter wrote: > > Hi Arjun, > > > > url: > > https://github.com/0day-ci/linux/commits/Arjun-Roy/tcp-Sanitize-CMSG-flags-and-reserved-args-in-tcp_zerocopy_receive/20210212-052537 > > > > base: https://

Re: [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive.

2021-02-15 Thread David Ahern
On 2/15/21 5:03 AM, Dan Carpenter wrote: > Hi Arjun, > > url: > https://github.com/0day-ci/linux/commits/Arjun-Roy/tcp-Sanitize-CMSG-flags-and-reserved-args-in-tcp_zerocopy_receive/20210212-052537 > base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > e4b62cf7559f2ef9a

Re: [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive.

2021-02-15 Thread Dan Carpenter
Hi Arjun, url: https://github.com/0day-ci/linux/commits/Arjun-Roy/tcp-Sanitize-CMSG-flags-and-reserved-args-in-tcp_zerocopy_receive/20210212-052537 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e4b62cf7559f2ef9a022de235e5a09a8d7ded520 config: x86_64-randconfig-m00

Re: [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive.

2021-02-11 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 11 Feb 2021 13:21:07 -0800 you wrote: > From: Arjun Roy > > Explicitly define reserved field and require it and any subsequent > fields to be zero-valued for now. Additionally, limit the valid CMSG > flags that tc

Re: [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive.

2021-02-11 Thread Jakub Kicinski
On Thu, 11 Feb 2021 13:21:07 -0800 Arjun Roy wrote: > + if (unlikely(len > sizeof(zc))) { > + err = check_zeroed_user(optval + sizeof(zc), > + len - sizeof(zc)); > + if (err < 1) > +