mbox series

[bpf-next,v1,0/2] Fix for check_func_arg_reg_off

Message ID 20230822175140.1317749-1-memxor@gmail.com (mailing list archive)
Headers show
Series Fix for check_func_arg_reg_off | expand

Message

Kumar Kartikeya Dwivedi Aug. 22, 2023, 5:51 p.m. UTC
Remove a leftover hunk in check_func_arg_reg_off that incorrectly
bypasses reg->off == 0 requirement for release kfuncs and helpers.

Kumar Kartikeya Dwivedi (2):
  bpf: Fix check_func_arg_reg_off bug for graph root/node
  selftests/bpf: Add test for bpf_obj_drop with bad reg->off

 kernel/bpf/verifier.c                         | 11 ----------
 .../bpf/progs/local_kptr_stash_fail.c         | 20 +++++++++++++++++++
 2 files changed, 20 insertions(+), 11 deletions(-)


base-commit: fb30159426439bfe9a1435c0555f67201198988c

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 22, 2023, 8 p.m. UTC | #1
Hello:

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

On Tue, 22 Aug 2023 23:21:38 +0530 you wrote:
> Remove a leftover hunk in check_func_arg_reg_off that incorrectly
> bypasses reg->off == 0 requirement for release kfuncs and helpers.
> 
> Kumar Kartikeya Dwivedi (2):
>   bpf: Fix check_func_arg_reg_off bug for graph root/node
>   selftests/bpf: Add test for bpf_obj_drop with bad reg->off
> 
> [...]

Here is the summary with links:
  - [bpf-next,v1,1/2] bpf: Fix check_func_arg_reg_off bug for graph root/node
    https://git.kernel.org/bpf/bpf-next/c/6785b2edf48c
  - [bpf-next,v1,2/2] selftests/bpf: Add test for bpf_obj_drop with bad reg->off
    https://git.kernel.org/bpf/bpf-next/c/fbc5bc4c8e6c

You are awesome, thank you!