aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alloc_tag.c
diff options
context:
space:
mode:
authorYanjun Yang <[email protected]>2024-06-11 10:09:47 +0000
committerKees Cook <[email protected]>2024-07-09 15:53:59 +0000
commit3ccea4784fddd96fbd6c4497eb28b45dab638c2a (patch)
tree806fbb6356801bb887c61532009374d886dd046f /lib/alloc_tag.c
parentgcc-plugins: Remove duplicate included header file stringpool.h (diff)
downloadkernel-3ccea4784fddd96fbd6c4497eb28b45dab638c2a.tar.gz
kernel-3ccea4784fddd96fbd6c4497eb28b45dab638c2a.zip
ARM: Remove address checking for MMUless devices
Commit 169f9102f9198b ("ARM: 9350/1: fault: Implement copy_from_kernel_nofault_allowed()") added the function to check address before use. However, for devices without MMU, addr > TASK_SIZE will always fail. This patch move this function after the #ifdef CONFIG_MMU statement. Signed-off-by: Yanjun Yang <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218953 Fixes: 169f9102f9198b ("ARM: 9350/1: fault: Implement copy_from_kernel_nofault_allowed()") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions