Skip to content

arm64: Add CONFIG_KUSER_HELPERS

Mark Salyzyn linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 3 repliesIn review

Changes in v3 from the cover letter

- rebase (minor conflicts)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: compat: Split the sigreturn trampolines and kuser helpers (C sources)arch/arm64/include/asm/processor.h arch/arm64/include/asm/signal32.h arch/arm64/kernel/signal32.c +1 more+60 -330 replies
2/3arm64: compat: Split the sigreturn trampolines and kuser helpers (assembler sources)arch/arm64/kernel/Makefile arch/arm64/kernel/kuser32.S arch/arm64/kernel/sigreturn32.S+73 -460 replies
3/3arm64: compat: Add CONFIG_KUSER_HELPERSarch/arm64/Kconfig arch/arm64/kernel/Makefile arch/arm64/kernel/vdso.c+41 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64: Add CONFIG_KUSER_HELPERS

Make it possible to disable the kuser helpers by adding a KUSER_HELPERS config option (enabled by default). When disabled, all kuser helpers-related code is removed from the kernel and no mapping is done at the fixed high address (0xffff0000); any attempt to use a kuser helper from a 32-bit process will result in a segfault.

v2:
- vectors_page and compat_vdso_spec as array of 2
- free sigpage if vectors allocation failed
- adjust makefile so one line for each of the assembler source modules
- split off assembler changes to a new previous patch in series to reduce churn
- modify slightly the feature documentation to reduce its reach
- modify slightly the feature documentation to rationalize the yes default.
- There are more ifdefs as a result of the rebase.

v3:
- rebase (minor conflicts)