Re: [PATCH bpf-next 0/5] bpf, x86: enable EXECMEM_ROX_CACHE for BPF allocations
From: Daniel Borkmann
Date: Thu Jul 09 2026 - 08:13:16 EST
Hi Mike,
On 7/9/26 10:03 AM, Mike Rapoport wrote:
Gentle pingI think there was an open Q from Alexei wrt the sashiko reports [0] and
On Fri, Jun 26, 2026 at 09:42:27PM +0300, Mike Rapoport (Microsoft) wrote:
Hi,
BPF allocations of executable memory on x86 are essentially read-only. Most
paths that call bpf_jit_alloc_exec() immediately make it ROX with
set_memory_rox().
The code generation, at least on x86, uses separately allocated writable
buffers and then updates the actual text memory with text_poke().
These patches do several small adjustments to how BPF allocates executable
memory and enable EXECMEM_ROX_CACHE for BPF allocations on x86.
whether you could address them. Once done, please resend to bpf list.
Thanks,
Daniel
[0] https://lore.kernel.org/bpf/20260626-execmem-x86-rox-bpf-v0-v1-0-45a0b0ed4fe9@xxxxxxxxxx/#r