Re: [PATCH bpf v2 0/3] samples/bpf: syscall_tp_user: Refactor and fix array index out-of-bounds bug

[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 Sun, 17 Sep 2023 16:42:17 -0500 you wrote:
> There are currently 6 BPF programs in syscall_tp_kern but the array to
> hold the corresponding bpf_links in syscall_tp_user only has space for 4
> programs, given the array size is hardcoded. This causes the sample
> program to fail due to an out-of-bound access that corrupts other stack
> variables:
> 
>   # ./syscall_tp
>   prog #0: map ids 4 5
>   verify map:4 val: 5
>   map_lookup failed: Bad file descriptor
> 
> [...]

Here is the summary with links:
  - [bpf,v2,1/3] samples/bpf: Add -fsanitize=bounds to userspace programs
    (no matching commit)
  - [bpf,v2,2/3] samples/bpf: syscall_tp_user: Rename num_progs into nr_tests
    https://git.kernel.org/bpf/bpf-next/c/0ee352fe0d28
  - [bpf,v2,3/3] samples/bpf: syscall_tp_user: Fix array out-of-bound access
    https://git.kernel.org/bpf/bpf-next/c/9220c3ef6fef

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