Skip to content

fix userspace access on arm64 for linux 5.4

Zidenberg, Tsahi stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: fix userspace access for bpf_probe_read{, str}()arch/arm/Kconfig arch/arm64/Kconfig arch/powerpc/Kconfig +3 more+0 -07 replies
2/2tracing/kprobes: handle userspace access on unified probeskernel/trace/trace_kprobe.c+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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