]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
m68k: fix access_ok for coldfire
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 Feb 2022 16:59:41 +0000 (17:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2022 08:03:22 +0000 (10:03 +0200)
commitb7509a4e81b516493cf601294268db07cad7659b
treea457525cdca208bd880354df513fb1898f1eb238
parentbed07e7ecc73f5c043a8bc1f519e46d650ff9e22
m68k: fix access_ok for coldfire

commit 26509034bef198525d5936c116cbd0c3fa491c0b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/m68k/include/asm/uaccess.h