RFC runtime-const header split and whatnot
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | x86: fix access_ok() and valid_user_address() using wrong USER_PTR_MAX in modulesarch/ arch/ | +14 | 26 replies | |
| 2/3 | runtime-const: split headers between accessors and fixup; disable for modulesarch/ arch/ arch/ +1 more | +200 | 0 replies | |
| 3/3 | fs: hide names_cachep behind runtime access machineryfs/ include/ include/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [WIP RFC PATCH 0/3] runtime-const header split and whatnot
So I slapped together what I described into a WIP patchset.
The runtime header treatment so far only done for x86 and riscv.
I verified things still compile with this in fs.h:
#ifndef MODULE
#include <asm/runtime-const-accessors.h> #endif
The -accessors suffix is not my favourite, but I don't have a better name.
If this looks like I'm going to do the needful(tm).
Mateusz Guzik (3):
x86: fix access_ok() and valid_user_address() using wrong USER_PTR_MAX
in modules
runtime-const: split headers between accessors and fixup; disable for
modules
fs: hide names_cachep behind runtime access machinery
.../include/asm/runtime-const-accessors.h | 151 ++++++++++++++++++ arch/riscv/include/asm/runtime-const.h | 142 +--------------- .../x86/include/asm/runtime-const-accessors.h | 45 ++++++ arch/x86/include/asm/runtime-const.h | 38 +---- arch/x86/include/asm/uaccess_64.h | 17 +- arch/x86/kernel/cpu/common.c | 8 +- fs/dcache.c | 1 + include/asm-generic/vmlinux.lds.h | 3 +- include/linux/fs.h | 17 +- 9 files changed, 232 insertions(+), 190 deletions(-) create mode 100644 arch/riscv/include/asm/runtime-const-accessors.h create mode 100644 arch/x86/include/asm/runtime-const-accessors.h
Signature · 1 line
2.34.1