diff options
| author | Alexei Starovoitov <[email protected]> | 2025-07-11 17:43:55 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-07-11 17:44:02 +0000 |
| commit | 2b1fd82cbaffef05a35bd04ba2d62d96f4d8a622 (patch) | |
| tree | 59c4eced0bd264cfc52170af88cb1bbeb68d7e3c /drivers/net/netkit.c | |
| parent | selftests/bpf: Remove enum64 case from __arg_untrusted test suite (diff) | |
| parent | selftests/bpf: add selftests for bpf_arena_reserve_pages (diff) | |
| download | kernel-2b1fd82cbaffef05a35bd04ba2d62d96f4d8a622.tar.gz kernel-2b1fd82cbaffef05a35bd04ba2d62d96f4d8a622.zip | |
Merge branch 'bpf-arena-add-kfunc-for-reserving-arena-memory'
Emil Tsalapatis says:
====================
bpf/arena: Add kfunc for reserving arena memory
Add a new kfunc for BPF arenas that reserves a region of the mapping
to prevent it from being mapped. These regions serve as guards against
out-of-bounds accesses and are useful for debugging arena-related code.
>From v3 ([email protected])
------------------------------------------------------
- Added Acked-by tags by Yonghong.
- Replace hardcoded error numbers in selftests (Yonghong).
- Fixed selftest for partially freeing a reserved region (Yonghong).
>From v2 ([email protected])
------------------------------------------------------
- Removed -EALREADY and replaced with -EINVAL to bring error handling in
line with the rest of the BPF code (Alexei).
>From v1 ([email protected])
------------------------------------------------------
- Removed the additional guard range tree. Adjusted tests accordingly.
Reserved regions now behave like allocated regions, and can be
unreserved using bpf_arena_free_pages(). They can also be allocated
from userspace through minor faults. It is up to the user to prevent
erroneous frees and/or use the BPF_F_SEGV_ON_FAULT flag to catch
stray userspace accesses (Alexei).
- Changed terminology from guard pages to reserved pages (Alexei,
Kartikeya).
Signed-off-by: Emil Tsalapatis <[email protected]>
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
