lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <648f36d02fe6e_33cfbc2944f@willemb.c.googlers.com.notmuch>
Date: Sun, 18 Jun 2023 12:54:40 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: David Howells <dhowells@...hat.com>, 
 netdev@...r.kernel.org
Cc: David Howells <dhowells@...hat.com>, 
 Alexander Duyck <alexander.duyck@...il.com>, 
 "David S. Miller" <davem@...emloft.net>, 
 Eric Dumazet <edumazet@...gle.com>, 
 Jakub Kicinski <kuba@...nel.org>, 
 Paolo Abeni <pabeni@...hat.com>, 
 Willem de Bruijn <willemdebruijn.kernel@...il.com>, 
 David Ahern <dsahern@...nel.org>, 
 Matthew Wilcox <willy@...radead.org>, 
 Jens Axboe <axboe@...nel.dk>, 
 linux-mm@...ck.org, 
 linux-kernel@...r.kernel.org, 
 bpf@...r.kernel.org, 
 dccp@...r.kernel.org, 
 linux-afs@...ts.infradead.org, 
 linux-arm-msm@...r.kernel.org, 
 linux-can@...r.kernel.org, 
 linux-crypto@...r.kernel.org, 
 linux-doc@...r.kernel.org, 
 linux-hams@...r.kernel.org, 
 linux-perf-users@...r.kernel.org, 
 linux-rdma@...r.kernel.org, 
 linux-sctp@...r.kernel.org, 
 linux-wpan@...r.kernel.org, 
 linux-x25@...r.kernel.org, 
 mptcp@...ts.linux.dev, 
 rds-devel@....oracle.com, 
 tipc-discussion@...ts.sourceforge.net, 
 virtualization@...ts.linux-foundation.org
Subject: RE: [PATCH net-next v2 17/17] net: Kill MSG_SENDPAGE_NOTLAST

David Howells wrote:
> Now that ->sendpage() has been removed, MSG_SENDPAGE_NOTLAST can be cleaned
> up.  Things were converted to use MSG_MORE instead, but the protocol
> sendpage stubs still convert MSG_SENDPAGE_NOTLAST to MSG_MORE, which is now
> unnecessary.
> 
> Signed-off-by: David Howells <dhowells@...hat.com>
> cc: "David S. Miller" <davem@...emloft.net>
> cc: Eric Dumazet <edumazet@...gle.com>
> cc: Jakub Kicinski <kuba@...nel.org>
> cc: Paolo Abeni <pabeni@...hat.com>
> cc: Jens Axboe <axboe@...nel.dk>
> cc: Matthew Wilcox <willy@...radead.org>
> cc: bpf@...r.kernel.org
> cc: dccp@...r.kernel.org
> cc: linux-afs@...ts.infradead.org
> cc: linux-arm-msm@...r.kernel.org
> cc: linux-can@...r.kernel.org
> cc: linux-crypto@...r.kernel.org
> cc: linux-doc@...r.kernel.org
> cc: linux-hams@...r.kernel.org
> cc: linux-perf-users@...r.kernel.org
> cc: linux-rdma@...r.kernel.org
> cc: linux-sctp@...r.kernel.org
> cc: linux-wpan@...r.kernel.org
> cc: linux-x25@...r.kernel.org
> cc: mptcp@...ts.linux.dev
> cc: netdev@...r.kernel.org
> cc: rds-devel@....oracle.com
> cc: tipc-discussion@...ts.sourceforge.net
> cc: virtualization@...ts.linux-foundation.org
> ---
>  include/linux/socket.h                         | 4 +---
>  net/ipv4/tcp_bpf.c                             | 4 +++-
>  net/tls/tls_device.c                           | 3 +--
>  net/tls/tls_main.c                             | 2 +-
>  net/tls/tls_sw.c                               | 2 +-
>  tools/perf/trace/beauty/include/linux/socket.h | 1 -
>  tools/perf/trace/beauty/msg_flags.c            | 3 ---
>  7 files changed, 7 insertions(+), 12 deletions(-)
>
 
> @@ -90,7 +90,9 @@ static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes,
>  {
>  	bool apply = apply_bytes;
>  	struct scatterlist *sge;
> -	struct msghdr msghdr = { .msg_flags = flags | MSG_SPLICE_PAGES, };
> +	struct msghdr msghdr = {
> +		.msg_flags = flags | MSG_SPLICE_PAGES | MSG_MORE,
> +	};
>  	struct page *page;
>  	int size, ret = 0;
>  	u32 off;

Is it intentional to add MSG_MORE here in this patch?

I do see that patch 3 removes this branch:

@@ -111,9 +111,6 @@  static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes,
 		if (has_tx_ulp)
 			msghdr.msg_flags |= MSG_SENDPAGE_NOPOLICY;
 
-		if (flags & MSG_SENDPAGE_NOTLAST)
-			msghdr.msg_flags |= MSG_MORE;
-

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ