Re: [PATCH bpf-next v4 0/8] Fixes for bad PTR_TO_BTF_ID offset

[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 Sat,  5 Mar 2022 04:16:37 +0530 you wrote:
> This set fixes a bug related to bad var_off being permitted for kfunc call in
> case of PTR_TO_BTF_ID, consolidates offset checks for all register types allowed
> as helper or kfunc arguments into a common shared helper, and introduces a
> couple of other checks to harden the kfunc release logic and prevent future
> bugs. Some selftests are also included that fail in absence of these fixes,
> serving as demonstration of the issues being fixed.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v4,1/8] bpf: Add check_func_arg_reg_off function
    https://git.kernel.org/bpf/bpf-next/c/25b35dd28138
  - [bpf-next,v4,2/8] bpf: Fix PTR_TO_BTF_ID var_off check
    https://git.kernel.org/bpf/bpf-next/c/655efe5089f0
  - [bpf-next,v4,3/8] bpf: Disallow negative offset in check_ptr_off_reg
    https://git.kernel.org/bpf/bpf-next/c/e1fad0ff46b3
  - [bpf-next,v4,4/8] bpf: Harden register offset checks for release helpers and kfuncs
    https://git.kernel.org/bpf/bpf-next/c/24d5bb806c7e
  - [bpf-next,v4,5/8] compiler-clang.h: Add __diag infrastructure for clang
    https://git.kernel.org/bpf/bpf-next/c/f014a00bbeb0
  - [bpf-next,v4,6/8] compiler_types.h: Add unified __diag_ignore_all for GCC/LLVM
    https://git.kernel.org/bpf/bpf-next/c/4d1ea705d797
  - [bpf-next,v4,7/8] bpf: Replace __diag_ignore with unified __diag_ignore_all
    https://git.kernel.org/bpf/bpf-next/c/0b206c6d1066
  - [bpf-next,v4,8/8] selftests/bpf: Add tests for kfunc register offset checks
    https://git.kernel.org/bpf/bpf-next/c/8218ccb5bd68

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