[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Addressed feedback by Alexei & Kartikeya:
	- Changed terminology from guard pages to reserved pages.
	- 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.

Signed-off-by: Emil Tsalapatis <emil@xxxxxxxxxxxxxxx>

Emil Tsalapatis (2):
  bpf/arena: add bpf_arena_reserve_pages kfunc
  selftests/bpf: add selftests for bpf_arena_reserve_pages

 kernel/bpf/arena.c                            |  43 +++++++
 .../testing/selftests/bpf/bpf_arena_common.h  |   3 +
 .../selftests/bpf/progs/verifier_arena.c      | 106 ++++++++++++++++++
 .../bpf/progs/verifier_arena_large.c          |  95 ++++++++++++++++
 4 files changed, 247 insertions(+)

-- 
2.49.0





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux