: 38d976c32d85ef12dcd2b8a231196f7049548477
patch link:
https://lore.kernel.org/r/20250505-vmlinux-mmap-v3-1-5d53afa060e8%40isovalent.com
patch subject: [PATCH bpf-next v3 1/3] btf: allow mmap of vmlinux btf
config: arc-randconfig-r073-20250508
(https://download.01.org/0day-ci/archive/20250509/202505091116.jhtywjw4-...@intel.com
On Tue, May 6, 2025 at 10:39 PM Andrii Nakryiko
wrote:
>
> > + if (vma->vm_pgoff)
> > + return -EINVAL;
>
> any particular reason to not allow vm_pgoff?
Doesn't seem particularly useful because the header is at offset 0,
and I don't trust myself to get the overflow checks done
On Mon, May 5, 2025 at 11:39 AM Lorenz Bauer wrote:
>
> User space needs access to kernel BTF for many modern features of BPF.
> Right now each process needs to read the BTF blob either in pieces or
> as a whole. Allow mmaping the sysfs file so that processes can directly
> access the memory alloc
User space needs access to kernel BTF for many modern features of BPF.
Right now each process needs to read the BTF blob either in pieces or
as a whole. Allow mmaping the sysfs file so that processes can directly
access the memory allocated for it in the kernel.
Signed-off-by: Lorenz Bauer
---
i
4 matches
Mail list logo