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)
commit71ff44ac6cfaa1d8d3dff6c73636f4fb97b2be10
tree6d1ed220408fc63b2246560ddc88b1f789a7a0dd
parent3cdcd6899eaf454b2539c624fff5daf63c175a7a
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