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
gested-by: Leon Romanovsky > Suggested-by: Jakub Kicinski > > [...] Here is the summary with links: - [net-next] tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive. https://git.kernel.org/netdev/net-next/c/3c5a2fd042d0 You are awesome, thank you! -- Deet-do

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) > +

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

2021-02-11 Thread Arjun Roy
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 tcp_zerocopy_receive accepts. Fixes: 7eeba1706eba ("tcp: Add receive timestamp support for receive zerocopy.") Signed-off-by: Arjun R