]> git.baikalelectronics.ru Git - kernel.git/commit
efi/x86: Respect 32-bit ABI in efi32_pe_entry()
authorArvind Sankar <nivedita@alum.mit.edu>
Sun, 8 Mar 2020 08:08:41 +0000 (09:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 8 Mar 2020 08:58:15 +0000 (09:58 +0100)
commit37c488a67647fa18cdc1a5c6e03a71881a6e6827
tree6d1ed220408fc63b2246560ddc88b1f789a7a0dd
parent7f7f1555993b8cfbc2fe1c16fad0aca4d79e5c07
efi/x86: Respect 32-bit ABI in efi32_pe_entry()

verify_cpu() clobbers BX and DI. In case we have to return error, we need
to preserve them to respect the 32-bit calling convention.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200301230436.2246909-3-nivedita@alum.mit.edu
Link: https://lore.kernel.org/r/20200308080859.21568-11-ardb@kernel.org
arch/x86/boot/compressed/head_64.S