maccess: unify the probe kernel arch hooks
Currently architectures have to override every routine that probes kernel memory, which includes a pure read and strcpy, both in strict and not strict variants. Just provide a single arch hooks instead to make sure all architectures cover all the cases. [akpm@linux-foundation.org: fix !CONFIG_X86_64 build] Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20200521152301.2587579-11-hch@lst.de Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/parisc/lib/memcpy.c 4 additions, 8 deletionsarch/parisc/lib/memcpy.c
- arch/um/kernel/maccess.c 4 additions, 6 deletionsarch/um/kernel/maccess.c
- arch/x86/mm/maccess.c 12 additions, 21 deletionsarch/x86/mm/maccess.c
- include/linux/uaccess.h 4 additions, 2 deletionsinclude/linux/uaccess.h
- mm/maccess.c 37 additions, 13 deletionsmm/maccess.c
Loading
Please register or sign in to comment