aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2022-02-15 16:59:41 +0000
committerArnd Bergmann <[email protected]>2022-02-25 08:36:05 +0000
commit26509034bef198525d5936c116cbd0c3fa491c0b (patch)
treeb79eb6f6559b81f8c2fa5fd5cf5318798063ef7c /lib/strncpy_from_user.c
parentMIPS: use simpler access_ok() (diff)
downloadkernel-26509034bef198525d5936c116cbd0c3fa491c0b.tar.gz
kernel-26509034bef198525d5936c116cbd0c3fa491c0b.zip
m68k: fix access_ok for coldfire
While most m68k platforms use separate address spaces for user and kernel space, at least coldfire does not, and the other ones have a TASK_SIZE that is less than the entire 4GB address range. Using the default implementation of __access_ok() stops coldfire user space from trivially accessing kernel memory. Reviewed-by: Christoph Hellwig <[email protected]> Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions