[PATCH v2 16/18] arm64: crypto: disable LTO for aes-ce-cipher.c
Sami Tolvanen
samitolvanen at google.com
Mon Nov 20 13:01:43 PST 2017
On Mon, Nov 20, 2017 at 03:25:31PM +0000, Ard Biesheuvel wrote:
> However, under LTO this all changes, and it is no longer guaranteed
> that the NEON registers are only touched between the kernel mode
> neon begin/end calls.
LTO operates on LLVM IR, so disabling LTO for this file should make
sure there won't be any unsafe optimizations. Are there other places
in the kernel that might have this issue?
> So the correct way to fix this would be to move the asm into its own
> .S file, and call it from between the kernel_mode_neon_begin/end
> calls. That should also fix your compat issue.
Sure, that would also work.
Sami
More information about the linux-arm-kernel
mailing list