diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-09-18 01:32:17 +0200 |
|---|---|---|
| committer | Eduard Zingerman <eddyz87@gmail.com> | 2026-09-17 18:01:43 -0700 |
| commit | 04ae4ffc57a6b7a8215779f0e9c536cacda9f761 (patch) | |
| tree | 90c69cbe2466e09c0d83b2cd607226c5dc2b7cb5 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 71919742c83c32afcccf06a7a28e28f3f55f21a2 (diff) | |
| download | linux-next-04ae4ffc57a6b7a8215779f0e9c536cacda9f761.tar.gz linux-next-04ae4ffc57a6b7a8215779f0e9c536cacda9f761.zip | |
selftests/bpf: Check callback map value lock identity
Add a verifier test which retains a map value from an outer callback and
then acquires a lock through an inner callback value before attempting to
release the outer callback value. Both values can denote different elements,
so the verifier must reject the mismatched unlock.
Also exercise callbacks reached through two inner-map lookups. The lookup
results share inner_map_meta but may refer to different one-element arrays,
so their callback values must retain distinct lock identities.
Extend the existing spin_lock failure table and reuse its array and
inner-map fixtures to keep these cases alongside the other lock identity
tests. Update the nested callback reference-leak expectation for the extra
callback value ID.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://patch.msgid.link/20260917233222.2542500-10-memxor@gmail.com
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
