[RFC PATCH] bpftrace cannot read paths on arm64 5.4 kernels

Bogdan HARJOC bharjoc at bitdefender.com
Thu Oct 19 20:09:11 UTC 2023


Internal Use Only

Hello,

for reading usermode addresses on arm64, bpftrace needs the newer bpf_probe_read_user() helper, while on x86_64 the older bpf_probe_read() helper works for both user and kernel addresses.

bpf_probe_read_user() is available since linux-5.5, and was backported to Ubuntu 5.4-azure kernels in 2022:

Can the same patch be applied to 5.4-generic kernels as well ?

kernel-team [PATCH] thread with details:
https://lists.ubuntu.com/archives/kernel-team/2022-September/133038.html

Launchpad bug for this fix:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1990009

Thanks,
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20231019/8d6ffc21/attachment.html>


More information about the kernel-team mailing list