Skip to content

bpf: fix warning in ftrace_verify_code()

[email protected] bpf stable 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 0 repliesNew
  2. v2 posting 1/22 patches 0 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

Added an additional patch that fixes a build error by the clang compiler.

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Convert BPF_DISPATCHER to use static_call() (not ftrace)include/linux/bpf.h kernel/bpf/dispatcher.c+46 -150 replies
2/2bpf: Add explicit cast to 'void *' for __BPF_DISPATCHER_UPDATE()kernel/bpf/dispatcher.c+1 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBjörn TöpelJiri OlsaYonghong Song
1/2T-b A-b T-b A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 5.10.y 0/2] bpf: fix warning in ftrace_verify_code()

This bug was found by syzkaller.

The reproducer and the detailed warning log can be viewed here [1]

[1] https://lore.kernel.org/bpf/[email protected]/#t

Capability cap_sys_admin is required for reproduce and on kernels with panic_on_warn enabled it will cause the system to crash.

v2:
Added an additional patch that fixes a build error by the clang compiler.

To solve the problem, it is proposed to backport the following commits:

[PATCH v2 5.10.y 1/2] bpf: Convert BPF_DISPATCHER to use static_call() (not [PATCH v2 5.10.y 2/2] bpf: Add explicit cast to 'void *' for