Re: [PATCH bpf-next v5 5/9] bpftool: Generate skeleton for global percpu data
From: Leon Hwang
Date: Thu Jun 11 2026 - 01:28:30 EST
On 8/6/26 23:29, bot+bpf-ci@xxxxxxxxxx wrote:
[...]
>
> Does the generated light skeleton need an explicit mprotect(..., PROT_READ)
> on the .percpu initial value buffer to enforce the read-only constraint
> described in the commit message?
>
> This was raised on v4 (https://lore.kernel.org/bpf/20260414212650.4F89BC19425@xxxxxxxxxxxxxxx/)
> where the response was that the mprotect(..., PROT_READ) added in patch #4
> should be moved into this patch so it isn't missed. The v5 code here looks
> unchanged from v4, and the mprotect does not appear to have been moved in.
>
Will add mprotect(..., PROT_READ) for light skeleton.
Thanks,
Leon