RFC prctl: Modernise wiring for optional prctl() calls
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest11 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | prctl: Support movement of arch prctls out of common codearch/ include/ include/ +2 more | +29 | 1 reply | |
| 2/11 | arm64: Move arch-specific prctls out of core codearch/ arch/ arch/ +1 more | +16 | 1 reply | |
| 3/11 | MIPS: Remove unused task argument from prctl functionsarch/ arch/ arch/ +1 more | +18 | 0 replies | |
| 4/11 | MIPS: Move arch-specific prctls out of core codearch/ arch/ arch/ +1 more | +15 | 0 replies | |
| 5/11 | x86: Move arch-specific prctls out of core codearch/ arch/ arch/ +2 more | +28 | 0 replies | |
| 6/11 | powerpc: Remove unused task argument from prctl functionsarch/ arch/ kernel/ | +29 | 1 reply | |
| 7/11 | powerpc: Move arch-specific prctls out of core codearch/ arch/ arch/ +1 more | +18 | 1 reply | |
| 8/11 | ia64: Remove unused task argument from prctl functionsarch/ kernel/ | +8 | 0 replies | |
| 9/11 | ia64: Move arch-specific prctls out of core codearch/ arch/ arch/ +1 more | +23 | 0 replies | |
| 10/11 | prctl: Remove redundant task argument from PR_{SET,GET}_UNALIGN backendsarch/ arch/ arch/ +5 more | +34 | 0 replies | |
| 11/11 | prctl: Refactor PR_{SET,GET}_UNALIGN to reduce boilerplatearch/ arch/ arch/ +16 more | +100 | 0 replies |
Reviews trailers per patch
4 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Michael Ellerman | Will Deacon |
|---|---|---|
| 1/11 | A-b | |
| 2/11 | A-b | |
| 3/11 | ||
| 4/11 | ||
| 5/11 | ||
| 6/11 | A-b | |
| 7/11 | A-b | |
| 8/11 | ||
| 9/11 | ||
| 10/11 | ||
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 00/11] prctl: Modernise wiring for optional prctl() calls
[Reviewer note: this is a cross-arch series. To reduce spam, I have tried not to Cc people on patches they aren't likely to care about. The complete series can be found in the LKML or linux-arch archives.]
The core framework for the prctl() syscall is unloved and looking rather crusty these days. It also relies on defining ancillary boilerplate macros for each prctl() in order to control conditional compilation of the different prctl calls. We have better ways to do this now.
This series attempts to modernise the code by defining a couple of new Kconfig variables HAVE_PRCTL_ARCH and HAVE_ARCH_PR_SET_GET_UNALIGN to allow architectures to provide hooks for arch-dependent prctls.
For now this series has had minimal testing: some basic testing of arch-specific prctls using PR_SVE_SET_VL on arm64; build-tested on x86; otherwise untested.
This is not polished yet... but I'm interested to know what people think about the approach.
Cheers
---Dave
Dave Martin (11):
prctl: Support movement of arch prctls out of common code
arm64: Move arch-specific prctls out of core code
MIPS: Remove unused task argument from prctl functions
MIPS: Move arch-specific prctls out of core code
x86: Move arch-specific prctls out of core code
powerpc: Remove unused task argument from prctl functions
powerpc: Move arch-specific prctls out of core code
ia64: Remove unused task argument from prctl functions
ia64: Move arch-specific prctls out of core code
prctl: Remove redundant task argument from PR_{SET,GET}_UNALIGN
backends
prctl: Refactor PR_{SET,GET}_UNALIGN to reduce boilerplate
arch/Kconfig | 6 ++ arch/alpha/Kconfig | 1 + arch/alpha/include/asm/thread_info.h | 23 -------- arch/alpha/kernel/Makefile | 2 +- arch/alpha/kernel/sys.c | 36 ++++++++++++ arch/arm64/Kconfig | 1 + arch/arm64/include/asm/processor.h | 4 -- arch/arm64/kernel/sys.c | 15 +++++ arch/ia64/Kconfig | 2 + arch/ia64/include/asm/processor.h | 24 -------- arch/ia64/kernel/sys_ia64.c | 37 ++++++++++++ arch/mips/Kconfig | 1 + arch/mips/include/asm/processor.h | 3 - arch/mips/kernel/process.c | 23 ++++---- arch/mips/kernel/syscall.c | 15 +++++ arch/parisc/Kconfig | 1 + arch/parisc/include/asm/processor.h | 14 ----- arch/parisc/kernel/sys_parisc.c | 15 +++++ arch/powerpc/Kconfig | 2 + arch/powerpc/include/asm/processor.h | 20 ++----- arch/powerpc/kernel/process.c | 38 ++++++------ arch/powerpc/kernel/syscalls.c | 17 ++++++ arch/sh/Kconfig | 1 + arch/sh/include/asm/processor.h | 7 --- arch/sh/mm/alignment.c | 12 ++-- arch/x86/Kconfig | 1 + arch/x86/include/asm/processor.h | 6 -- arch/x86/kernel/Makefile | 1 + arch/x86/kernel/sys.c | 26 +++++++++ include/linux/prctl.h | 27 +++++++++ include/uapi/linux/prctl.h | 6 +- kernel/sys.c | 110 ++++------------------------------- tools/include/uapi/linux/prctl.h | 6 +- 33 files changed, 263 insertions(+), 240 deletions(-) create mode 100644 arch/alpha/kernel/sys.c create mode 100644 arch/x86/kernel/sys.c create mode 100644 include/linux/prctl.h
Signature · 1 line
2.1.4