summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-07-16 10:51:37 +0300
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-07-22 17:27:05 +0200
commit7516714947da93eed4d7bbb88b3781c38233f2c6 (patch)
tree8e4408e7a5ea40d11ab8193007aa51df11a28adb /tools/perf/scripts/python/bin
parent4946eb5d37cb6a260b9e0ec4b812c2b104fd6ea1 (diff)
bpf: alloc_prog_pack(): Skip ROX management for already ROX memory
execmem_alloc() can return ROX memory that is already filled with architecture defined trapping instructions. In preparation for enabling this mode for BPF on x86, make sure that there is no redundant management of the ROX memory. There is no need to fill allocated memory with trapping instructions, to request permissions reset on free and to set ROX permissions as this all is handled by execmem_alloc(). Add bpf_jit_mem_is_rox() wrapper for execmem_is_rox(), use it to check if execmem_alloc() returns ROX memory and skip the redundant steps in that case. Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Acked-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/bpf/20260716-execmem-x86-rox-bpf-v0-v3-3-4e76158c01c5@kernel.org Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions