summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLeon Hwang <leon.hwang@linux.dev>2026-06-24 23:51:15 +0800
committerAndrii Nakryiko <andrii@kernel.org>2026-07-01 11:27:37 -0700
commit163944262f8646bf3a1eec557b6aff1f38582a9f (patch)
treebe1005a67a053b20f512863c47f661e4dafa408f /include/uapi/linux
parent7cf9cd98cf6f0df3befc167ca6b54c07014d71de (diff)
selftests/bpf: Verify no non-zeroed kernel heap memory exposure
When lookup element from those per-CPU maps, which have special field in their values and their value size is not equal to roundup(value_sz, 8), the padding size of temporary non-zeroed kernel heap memory allocated by kvmalloc should not be exposed to user space. Without the fix: test_map_uninit_mem_exposure:FAIL:zeroed tail bytes unexpected memory mismatch actual: 2B 2B 2B 2B expected: 00 00 00 00 Assisted-by: Codex:gpt-5.5 Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260624155115.85196-3-leon.hwang@linux.dev
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions