Sorry if this has already been reported. With gcc 10 and kernel 5.6.11,
I get:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
in: start_secondary+0x169/0x170

at early boot.
this has been reported upstream [1], who made a complicated patch,
mainly consisting of comments. It seems it occurs only when
CONFIG_STACKPROTECTOR_STRONG=y. I do not know which kernel will have
it. 5.6.12 doesn't.

Two possibilities: remove the STACK_PROTECTOR_STRONG config, or apply
this sed:

sed -e '/cpu_startup/a asm("");' -i arch/x86/kernel/smpboot.c

which does not fix xen kernel, but does everything else the patch does.

Pierre

[1] end of a long thread on lkml: 
https://lore.kernel.org/lkml/158798746828.28353.6010675315553653459.tip-bot2@tip-bot2/

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to