[PATCH] ARM: fault: Implement copy_from_kernel_nofault_allowed()

Mark Brown broonie at kernel.org
Tue Jan 23 11:02:23 PST 2024


On Mon, Jan 22, 2024 at 05:12:38PM -0800, Kees Cook wrote:
> 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.

This appears to fix the original issue:

   https://lava.sirena.org.uk/scheduler/job/497571

(though so did your earlier patch) so:

Tested-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240123/b6ae92e3/attachment.sig>


More information about the linux-arm-kernel mailing list