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: <CAP01T77F_uwEyFb1Gp=+oczyU2U=2pJjOEQBRx-wSYdjpHZG8A@mail.gmail.com>
Date: Tue, 22 Apr 2025 05:07:15 +0200
From: Kumar Kartikeya Dwivedi <memxor@...il.com>
To: Martin KaFai Lau <martin.lau@...ux.dev>
Cc: bpf@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>, 
	Andrii Nakryiko <andrii@...nel.org>, Daniel Borkmann <daniel@...earbox.net>, netdev@...r.kernel.org, 
	kernel-team@...a.com, Amery Hung <ameryhung@...il.com>
Subject: Re: [RFC PATCH bpf-next 09/12] bpf: Add bpf_list_{front,back} kfunc

On Sat, 19 Apr 2025 at 00:49, Martin KaFai Lau <martin.lau@...ux.dev> wrote:
>
> From: Martin KaFai Lau <martin.lau@...nel.org>
>
> In the kernel fq qdisc implementation, it only needs to look at
> the fields of the first node in a list but does not always
> need to remove it from the list. It is more convenient to have
> a peek kfunc for the list. It works similar to the bpf_rbtree_first().
>
> This patch adds bpf_list_{front,back} kfunc. The verifier is changed
> such that the kfunc returning "struct bpf_list_node *" will be
> marked as non-owning. The exception is the KF_ACQUIRE kfunc. The
> net effect is only the new bpf_list_{front,back} kfuncs will
> have its return pointer marked as non-owning.
>
> Signed-off-by: Martin KaFai Lau <martin.lau@...nel.org>
> ---

Acked-by: Kumar Kartikeya Dwivedi <memxor@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ