selftests/bpf: Test map lookup result refinement

A map-of-maps lookup value is refined to a map pointer (map_ptr_or_null)
at lookup time by refine_map_lookup_value(). Test that it is rejected
wherever a raw map value would be read as bytes, so the inner map
descriptor cannot leak.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/bpf/20260801074633.1595644-8-ameryhung@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
Amery Hung 2026-08-01 00:46:22 -07:00 • committed by Kumar Kartikeya Dwivedi
commit e6d200dd10
No known key found for this signature in database
GPG key ID: 472D377B63542F83
2 changed files with 75 additions and 0 deletions