Skip to content

RFC runtime-const header split and whatnot

Mateusz Guzik linux-fsdevel lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: fix access_ok() and valid_user_address() using wrong USER_PTR_MAX in modulesarch/x86/include/asm/uaccess_64.h arch/x86/kernel/cpu/common.c+14 -1126 replies
2/3runtime-const: split headers between accessors and fixup; disable for modulesarch/riscv/include/asm/runtime-const-accessors.h arch/riscv/include/asm/runtime-const.h arch/x86/include/asm/runtime-const-accessors.h +1 more+200 -1760 replies
3/3fs: hide names_cachep behind runtime access machineryfs/dcache.c include/asm-generic/vmlinux.lds.h include/linux/fs.h+18 -30 replies

Reviews trailers per patch

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

Read the v1 thread

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