linux-stable/arch/arm64
Coiby Xu f7cb29b2a8 arm64: kexec_file: use more system keyrings to verify kernel image signature
commit 0d519cadf7 upstream.

Currently, when loading a kernel image via the kexec_file_load() system
call, arm64 can only use the .builtin_trusted_keys keyring to verify
a signature whereas x86 can use three more keyrings i.e.
.secondary_trusted_keys, .machine and .platform keyrings. For example,
one resulting problem is kexec'ing a kernel image  would be rejected
with the error "Lockdown: kexec: kexec of unsigned images is restricted;
see man kernel_lockdown.7".

This patch set enables arm64 to make use of the same keyrings as x86 to
verify the signature kexec'ed kernel image.

Fixes: 732b7b93d8 ("arm64: kexec_file: add kernel signature verification support")
Cc: stable@vger.kernel.org # 105e10e2cf1c: kexec_file: drop weak attribute from functions
Cc: stable@vger.kernel.org # 34d5960af253: kexec: clean up arch_kexec_kernel_verify_sig
Cc: stable@vger.kernel.org # 83b7bb2d49ae: kexec, KEYS: make the code in bzImage64_verify_sig generic
Acked-by: Baoquan He <bhe@redhat.com>
Cc: kexec@lists.infradead.org
Cc: keyrings@vger.kernel.org
Cc: linux-security-module@vger.kernel.org
Co-developed-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Coiby Xu <coxu@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-21 15:18:56 +02:00
..
boot arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment 2022-08-17 14:40:40 +02:00
configs arm64: defconfig: reenable SM_DISPCC_8250 2022-06-09 10:30:22 +02:00
crypto crypto: arm64/gcm - Select AEAD for GHASH_ARM64_CE 2022-08-17 14:40:57 +02:00
hyperv
include kexec_file: drop weak attribute from functions 2022-08-17 14:42:23 +02:00
kernel arm64: kexec_file: use more system keyrings to verify kernel image signature 2022-08-21 15:18:56 +02:00
kvm KVM: arm64: Don't return from void function 2022-08-17 14:41:44 +02:00
lib Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2022-03-21 16:02:36 -07:00
mm arm64: kasan: Revert "arm64: mte: reset the page tag in page->flags" 2022-08-17 14:40:20 +02:00
net bpf, arm64: Clear prog->jited_len along prog->jited 2022-06-14 18:45:06 +02:00
tools arm64: errata: Remove AES hwcap for COMPAT tasks 2022-08-17 14:40:21 +02:00
xen
Kbuild
Kconfig arm64: select TRACE_IRQFLAGS_NMI_SUPPORT 2022-08-17 14:40:29 +02:00
Kconfig.debug
Kconfig.platforms irqchip/exiu: Fix acknowledgment of edge triggered interrupts 2022-06-09 10:30:06 +02:00
Makefile