Re: [PATCH bpf-next v5 1/9] bpf: Fix bpf_strtol and bpf_strtoul helpers for 32bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Fri, 13 Sep 2024 21:17:46 +0200 you wrote:
> The bpf_strtol() and bpf_strtoul() helpers are currently broken on 32bit:
> 
> The argument type ARG_PTR_TO_LONG is BPF-side "long", not kernel-side "long"
> and therefore always considered fixed 64bit no matter if 64 or 32bit underlying
> architecture.
> 
> This contract breaks in case of the two mentioned helpers since their BPF_CALL
> definition for the helpers was added with {unsigned,}long *res. Meaning, the
> transition from BPF-side "long" (BPF program) to kernel-side "long" (BPF helper)
> breaks here.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v5,1/9] bpf: Fix bpf_strtol and bpf_strtoul helpers for 32bit
    https://git.kernel.org/bpf/bpf-next/c/cfe69c50b055
  - [bpf-next,v5,2/9] bpf: Remove truncation test in bpf_strtol and bpf_strtoul helpers
    https://git.kernel.org/bpf/bpf-next/c/7d71f59e0280
  - [bpf-next,v5,3/9] bpf: Fix helper writes to read-only maps
    https://git.kernel.org/bpf/bpf-next/c/32556ce93bc4
  - [bpf-next,v5,4/9] bpf: Improve check_raw_mode_ok test for MEM_UNINIT-tagged types
    https://git.kernel.org/bpf/bpf-next/c/18752d73c189
  - [bpf-next,v5,5/9] bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error
    https://git.kernel.org/bpf/bpf-next/c/4b3786a6c539
  - [bpf-next,v5,6/9] selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test
    https://git.kernel.org/bpf/bpf-next/c/b8e188f023e0
  - [bpf-next,v5,7/9] selftests/bpf: Rename ARG_PTR_TO_LONG test description
    https://git.kernel.org/bpf/bpf-next/c/b073b82d4d3c
  - [bpf-next,v5,8/9] selftests/bpf: Add a test case to write strtol result into .rodata
    https://git.kernel.org/bpf/bpf-next/c/2e3f06602047
  - [bpf-next,v5,9/9] selftests/bpf: Add a test case to write mtu result into .rodata
    https://git.kernel.org/bpf/bpf-next/c/211bf9cf178a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux