diff options
| author | Leon Hwang <leon.hwang@linux.dev> | 2026-05-12 18:31:55 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-12 22:44:44 +0300 |
| commit | 49f9b2b2a18c5ce06b21fc2b3399352d80dee0c6 (patch) | |
| tree | 5ffdf2578232e9bb355da027f6b8a2527dc9492c /include/linux/debugobjects.h | |
| parent | ceeb7eda94a3548958b30818495ef7eb12898727 (diff) | |
| download | linux-49f9b2b2a18c5ce06b21fc2b3399352d80dee0c6.tar.xz | |
bpf: Add syscall common attributes support for map_create
Many BPF_MAP_CREATE validation failures currently return -EINVAL without
any explanation to userspace.
Plumb common syscall log attributes into map_create(), create a verifier
log from bpf_common_attr::log_buf/log_size/log_level, and report
map-creation failure reasons through that buffer.
This improves debuggability by allowing userspace to inspect why map
creation failed and read back log_true_size from common attributes.
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20260512153157.28382-7-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
