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: <87v7n21deu.fsf@all.your.base.are.belong.to.us>
Date: Tue, 05 Aug 2025 08:38:17 +0200
From: Björn Töpel <bjorn@...nel.org>
To: Pu Lehui <pulehui@...weicloud.com>, bpf@...r.kernel.org,
 linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Puranjay Mohan <puranjay@...nel.org>, Palmer Dabbelt
 <palmer@...belt.com>, Alexandre Ghiti <alex@...ti.fr>, Alexei Starovoitov
 <ast@...nel.org>, Daniel Borkmann <daniel@...earbox.net>, Andrii Nakryiko
 <andrii@...nel.org>, Martin KaFai Lau <martin.lau@...ux.dev>, Eduard
 Zingerman <eddyz87@...il.com>, Song Liu <song@...nel.org>, Yonghong Song
 <yonghong.song@...ux.dev>, John Fastabend <john.fastabend@...il.com>, KP
 Singh <kpsingh@...nel.org>, Stanislav Fomichev <sdf@...ichev.me>, Hao Luo
 <haoluo@...gle.com>, Jiri Olsa <jolsa@...nel.org>, Pu Lehui
 <pulehui@...wei.com>
Subject: Re: [PATCH bpf-next 00/10] Add support arena atomics for RV64

Pu Lehui <pulehui@...weicloud.com> writes:

> From: Pu Lehui <pulehui@...wei.com>
>
> patch 1-3 refactor redundant load and store operations.
> patch 4-7 add Zacas instructions for cmpxchg.
> patch 8 optimizes exception table handling.
> patch 9-10 add support arena atomics for RV64.
>
> Tests `test_progs -t atomic,arena` have passed as shown bellow,
> as well as `test_verifier` and `test_bpf.ko` have passed.

[...]

> Pu Lehui (10):
>   riscv, bpf: Extract emit_stx() helper
>   riscv, bpf: Extract emit_st() helper
>   riscv, bpf: Extract emit_ldx() helper
>   riscv: Separate toolchain support dependency from RISCV_ISA_ZACAS
>   riscv, bpf: Add rv_ext_enabled macro for runtime detection extentsion
>   riscv, bpf: Add Zacas instructions
>   riscv, bpf: Optimize cmpxchg insn with Zacas support
>   riscv, bpf: Add ex_insn_off and ex_jmp_off for exception table
>     handling
>   riscv, bpf: Add support arena atomics for RV64
>   selftests/bpf: Enable arena atomics tests for RV64
>
>  arch/riscv/Kconfig                            |   1 -
>  arch/riscv/include/asm/cmpxchg.h              |   6 +-
>  arch/riscv/kernel/setup.c                     |   1 +
>  arch/riscv/net/bpf_jit.h                      |  70 ++-
>  arch/riscv/net/bpf_jit_comp64.c               | 516 +++++-------------
>  .../selftests/bpf/progs/arena_atomics.c       |   9 +-
>  6 files changed, 214 insertions(+), 389 deletions(-)

What a nice series! The best kind of changeset -- new feature, less
code! Thank you, Lehui! Again, apologies for the horrible SLA. The
weather in Sweden was simply Too Good this summer!

Tested-by: Björn Töpel <bjorn@...osinc.com> # QEMU only
Acked-by: Björn Töpel <bjorn@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ