m68k: fix access_ok for coldfire
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 Feb 2022 16:59:41 +0000 (17:59 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 25 Feb 2022 08:36:05 +0000 (09:36 +0100)
commit26509034bef198525d5936c116cbd0c3fa491c0b
treeb79eb6f6559b81f8c2fa5fd5cf5318798063ef7c
parent15f3d81a8c8a564cbc8642cf95c548d02db035a7
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 <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/m68k/include/asm/uaccess.h