summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorLeon Hwang <leon.hwang@linux.dev>2026-05-18 17:54:44 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-05-19 04:51:32 +0300
commitb4844cb6d1ecff732c99b70998749973c6f50591 (patch)
tree07a9ef79f12c999f07935acc4b2e9df4ba038a48 /lib/debugobjects.c
parentf05ddc6771c4a2eb1801dfdd0f7a212a78fa18a7 (diff)
downloadlinux-b4844cb6d1ecff732c99b70998749973c6f50591.tar.xz
libbpf: Add OPTS_VALID() for log_opts in bpf_map_create
There should be an OPTS_VALID() check for log_opts before extracting its fields. If no such OPTS_VALID() check and an application compiled against a future libbpf header passes a log_opts with new, non-zero fields to libbpf.so, those fields will be ignored silently. Fixes: 702259006f93 ("libbpf: Add syscall common attributes support for map_create") Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Link: https://lore.kernel.org/r/20260518145446.6794-4-leon.hwang@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions