Skip to content

Fix for check_func_arg_reg_off

Kumar Kartikeya Dwivedi bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Fix check_func_arg_reg_off bug for graph root/nodekernel/bpf/verifier.c+0 -110 repliesApplied
2/2selftests/bpf: Add test for bpf_obj_drop with bad reg->offtools/testing/selftests/bpf/progs/local_kptr_stash_fail.c+20 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next v1 0/2] Fix for check_func_arg_reg_off

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

Signature · 1 line
2.41.0