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: <CAEf4BzbiyJwSoaSRDtSRetze-yST-NQX83FyECSmRex9szx0NQ@mail.gmail.com>
Date: Tue, 16 Dec 2025 10:16:47 -0800
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Saket Kumar Bhaskar <skb99@...ux.ibm.com>
Cc: bpf@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org, 
	linux-kernel@...r.kernel.org, hbathini@...ux.ibm.com, sachinpb@...ux.ibm.com, 
	venkat88@...ux.ibm.com, andrii@...nel.org, eddyz87@...il.com, ast@...nel.org, 
	daniel@...earbox.net, martin.lau@...ux.dev, song@...nel.org, 
	yonghong.song@...ux.dev, john.fastabend@...il.com, kpsingh@...nel.org, 
	sdf@...ichev.me, haoluo@...gle.com, jolsa@...nel.org, 
	christophe.leroy@...roup.eu, naveen@...nel.org, maddy@...ux.ibm.com, 
	mpe@...erman.id.au, npiggin@...il.com
Subject: Re: [PATCH bpf-next v4 0/2] powerpc64/bpf: Inline helper in powerpc JIT

On Tue, Dec 9, 2025 at 10:51 PM Saket Kumar Bhaskar <skb99@...ux.ibm.com> wrote:
>
> This series add support for internal only per-CPU instructions,
> inlines the bpf_get_smp_processor_id() and bpf_get_current_task()
> helper calls for powerpc BPF JIT.
>

This is marked for bpf-next tree, but I think this should actually go
through ppc64-specific tree, is that right?

> Changes since v3:
> * Added break after computing per cpu address so that the computed
>   address is not overwritten by src_reg as suggested by AI bot.
>
> v3: https://lore.kernel.org/all/cover.1764930425.git.skb99@linux.ibm.com/
>
> Changes since v2:
> * Collected Reviewed-by tag.
> * Inlined bpf_get_current_task/btf().
> * Fixed addressing of src_reg and BPF_REG_0. (Christophe)
> * Fixed condition for non smp case as suggested by Christophe.
>
> v2: https://lore.kernel.org/all/cover.1762422548.git.skb99@linux.ibm.com/
>
> Changes since v1:
> * Addressed Christophe's comments.
> * Inlined bpf_get_current_task() as well.
>
> v1: https://lore.kernel.org/all/20250311160955.825647-1-skb99@linux.ibm.com/
>
> Saket Kumar Bhaskar (2):
>   powerpc64/bpf: Support internal-only MOV instruction to resolve
>     per-CPU addrs
>   powerpc64/bpf: Inline bpf_get_smp_processor_id() and
>     bpf_get_current_task/_btf()
>
>  arch/powerpc/net/bpf_jit_comp.c   | 17 +++++++++++++++++
>  arch/powerpc/net/bpf_jit_comp64.c | 21 +++++++++++++++++++++
>  2 files changed, 38 insertions(+)
>
> --
> 2.51.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ