fix userspace access on arm64 for linux 5.4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: fix userspace access for bpf_probe_read{, str}()arch/ arch/ arch/ +3 more | +0 | 7 replies | |
| 2/2 | tracing/kprobes: handle userspace access on unified probeskernel/ | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] fix userspace access on arm64 for linux 5.4
arm64 access to userspace addresses in bpf and kprobes is broken, because kernelspace address accessors are always used, and won't work for userspace.
The fix in upstream relies on new kernel BPF API which does not exist in v5.4. The patches here deviate from their upstream sources.
I am not 100% clear on the best way to post a patch series to stable, that's not a direct cherry-pick from upstream. Please let me know if corrections are needed.
Thank you!
Tsahi Zidenberg (2):
bpf: fix userspace access for bpf_probe_read{, str}() tracing/kprobes: handle userspace access on unified probes.
arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/x86/Kconfig | 1 + init/Kconfig | 3 +++ kernel/trace/bpf_trace.c | 18 ++++++++++++++++++ kernel/trace/trace_kprobe.c | 15 +++++++++++++++
7 files changed, 40 insertions(+)
Signature · 1 line
2.25.1