Bug 216385
Summary: | 5.19 regression: CONFIG_RETPOLINE=n CONFIG_AMD_MEM_ENCRYPT=y crashes on boot | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Chris Harrington (chris) |
Component: | x86-64 | Assignee: | platform_x86_64 (platform_x86_64) |
Status: | NEW --- | ||
Severity: | low | CC: | bp, kernel, regressions, thomas.lendacky |
Priority: | P1 | ||
Hardware: | AMD | ||
OS: | Linux | ||
Kernel Version: | 5.19 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Chris Harrington
2022-08-19 22:47:44 UTC
Does that fix it: https://git.kernel.org/tip/cdaa0a407f1acd3a44861e3aea6e3c7349e668f1 ? (In reply to Borislav Petkov from comment #1) > Does that fix it: > > https://git.kernel.org/tip/cdaa0a407f1acd3a44861e3aea6e3c7349e668f1 > > ? Yes. Tested by cloning https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git , checking out v5.19, build, install, reboot, and validating that the issue is still present. Then doing: curl 'https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/patch/?id=cdaa0a407f1acd3a44861e3aea6e3c7349e668f1' | patch -p1 followed by build, install, reboot, with success. $ dmesg | grep -iE '(encrypt|command|retpoline)' [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.19.0-shore-dirty root=/dev/nvme0n1p2 ro rootwait mitigations=off [ 0.063658] Kernel command line: BOOT_IMAGE=/vmlinuz-5.19.0-shore-dirty root=/dev/nvme0n1p2 ro rootwait mitigations=off [ 0.063679] Unknown kernel command line parameters "BOOT_IMAGE=/vmlinuz-5.19.0-shore-dirty", will be passed to user space. [ 0.154478] Memory Encryption Features active: AMD SME $ zcat /proc/config.gz | grep -E '(RETPOLINE|AMD_MEM_ENCRYPT)' CONFIG_AMD_MEM_ENCRYPT=y CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y |