[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAObFT-SqdcM2Xo7P3FqgwTABao5uoWrb+A3bXy9vKt5rBffSwA@mail.gmail.com>
Date: Tue, 3 Sep 2019 08:50:25 -0700
From: Andreas Smas <andreas@...elycoder.com>
To: linux-kernel@...r.kernel.org
Subject: x86/purgatory: undefined symbol __stack_chk_fail
Hi,
For me, kernels built including this commit
b059f801a937 (x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS)
results in kexec() failing to load the kernel:
kexec: Undefined symbol: __stack_chk_fail
kexec-bzImage64: Loading purgatory failed
Can be seen:
$ readelf -a arch/x86/purgatory/purgatory.ro | grep UND
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
51: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __stack_chk_fail
Using: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
Adding -ffreestanding or -fno-stack-protector to ccflags-y in
arch/x86/purgatory/Makefile
fixes the problem. Not sure which would be preferred.
Powered by blists - more mailing lists