diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-19 18:15:37 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-19 18:15:37 +0200 |
| commit | deabfadbb25f53c61492d5c8bb8e8cf1f3f07352 (patch) | |
| tree | ae65ce7fd8ea30d19722b3e0114ea3209248c228 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 45bf95da6de8d7a7f51b41c138d41a4e2dba3664 (diff) | |
| parent | 770b62a6d38906e65759bf95be7ffb488b4af006 (diff) | |
Merge branch 'bpf-reject-arena-frees-below-the-arena-base'
Yiyang Chen says:
====================
bpf: Reject arena frees below the arena base
bpf_arena_free_pages() can be called with a scalar arena address. The
runtime reconstructs a full user address from the arena base and the low
32 bits before returning the range to the arena free tree. A scalar one
page below the arena base can otherwise produce an out-of-domain free-tree
offset and make a later allocation return an address below the arena
mapping.
Patch 1 rejects frees whose reconstructed full user address is below
user_vm_start. Patch 2 adds verifier_arena coverage for the
scalar-below-base case.
Changes in v2:
- Add Reviewed-by tags from Emil Tsalapatis.
- Remove the empty inline asm from the selftest.
v1: https://lore.kernel.org/bpf/cover.1782813442.git.chenyy23@mails.tsinghua.edu.cn/
====================
Link: https://patch.msgid.link/20260717-c10-031-public-bpf-next-v2-b4-v2-0-54b555443a7c@mails.tsinghua.edu.cn
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
