summaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-02-01 18:32:58 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-02-24 16:47:20 +0000
commit169f9102f9198b04afffa6164372a4ba4070f412 (patch)
treec6f6b01f8900066b45c8730e03fd7a8284b4abc1 /sound/i2c
parentdaa559570d4b81e98e5a77a5c0f2a88879a9f245 (diff)
downloadlinux-stable-169f9102f9198b04afffa6164372a4ba4070f412.tar.gz
linux-stable-169f9102f9198b04afffa6164372a4ba4070f412.tar.bz2
linux-stable-169f9102f9198b04afffa6164372a4ba4070f412.zip
ARM: 9350/1: fault: Implement copy_from_kernel_nofault_allowed()
Under PAN emulation when dumping backtraces from things like the LKDTM EXEC_USERSPACE test[1], a double fault (which would hang a CPU) would happen because of dump_instr() attempting to read a userspace address. Make sure copy_from_kernel_nofault() does not attempt this any more. Closes: https://lava.sirena.org.uk/scheduler/job/497571 Link: https://lore.kernel.org/all/202401181125.D48DCB4C@keescook/ [1] Reported-by: Mark Brown <broonie@kernel.org> Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Mark Brown <broonie@kernel.org> Cc: Wang Kefeng <wangkefeng.wang@huawei.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'sound/i2c')
0 files changed, 0 insertions, 0 deletions