aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-10-15 09:36:50 +0200
committerKees Cook <keescook@google.com>2015-10-07 13:12:59 -0700
commit7226149fe3fee527c7f3f43a75057c930745a022 (patch)
tree6756e2d97b1b437a89b8a4f78c60e5e9fa6aa156
parent0b188d5788e798cacb727b36fad69dc1e3dec1a8 (diff)
downloadlinux-linaro-stable-7226149fe3fee527c7f3f43a75057c930745a022.tar.gz
UPSTREAM: arm64: dmi: set DMI string as dump stack arch description
This sets the DMI string, containing system type, serial number, firmware version etc. as dump stack arch description, so that oopses and other kernel stack dumps automatically have this information included, if available. Tested-by: Leif Lindholm <leif.lindholm@linaro.org> Acked-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> (cherry picked from commit b07bfaa3c126e4e36a2b59350b3b930aa1b121ac) Signed-off-by: Tomasz Figa <tfiga@chromium.org> Bug: 24475017 Change-Id: I9921f1247322d5b1594c9f381069c77c5643f14d Signed-off-by: Kees Cook <keescook@google.com>
-rw-r--r--arch/arm64/kernel/efi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
index 9ae5e7918b8f..6fac253bc783 100644
--- a/arch/arm64/kernel/efi.c
+++ b/arch/arm64/kernel/efi.c
@@ -479,6 +479,8 @@ static int __init arm64_dmi_init(void)
* itself, depends on dmi_scan_machine() having been called already.
*/
dmi_scan_machine();
+ if (dmi_available)
+ dmi_set_dump_stack_arch_desc();
return 0;
}
core_initcall(arm64_dmi_init);