diff options
| author | Leon Hwang <leon.hwang@linux.dev> | 2026-05-18 17:54:44 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-19 04:51:32 +0300 |
| commit | b4844cb6d1ecff732c99b70998749973c6f50591 (patch) | |
| tree | 07a9ef79f12c999f07935acc4b2e9df4ba038a48 /lib/debugobjects.c | |
| parent | f05ddc6771c4a2eb1801dfdd0f7a212a78fa18a7 (diff) | |
| download | linux-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
