linux-kernelorg-stable/arch
Miroslav Benes 2f62f36e62 x86/xen: Make the boot CPU idle task reliable
The unwinder reports the boot CPU idle task's stack on XEN PV as
unreliable, which affects at least live patching. There are two reasons
for this. First, the task does not follow the x86 convention that its
stack starts at the offset right below saved pt_regs. It allows the
unwinder to easily detect the end of the stack and verify it. Second,
startup_xen() function does not store the return address before jumping
to xen_start_kernel() which confuses the unwinder.

Amend both issues by moving the starting point of initial stack in
startup_xen() and storing the return address before the jump, which is
exactly what call instruction does.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2020-03-30 17:32:04 +02:00
..
alpha
arc ARC: define __ALIGN_STR and __ALIGN symbols for ARC 2020-03-11 10:07:15 -07:00
arm ARM: DT and driver fixes for v5.6 2020-03-27 13:52:32 -07:00
arm64 ARM: DT and driver fixes for v5.6 2020-03-27 13:52:32 -07:00
c6x
csky
h8300
hexagon
ia64
m68k
microblaze
mips MIPS: DTS: CI20: fix interrupt for pcf8563 RTC 2020-03-07 09:54:24 +01:00
nds32
nios2
openrisc
parisc parisc: Fix defconfig selection 2020-03-27 15:37:24 +01:00
powerpc KVM: PPC: Fix kernel crash with PR KVM 2020-03-20 13:39:10 +11:00
riscv RISC-V: Move all address space definition macros to one place 2020-03-26 19:26:11 -07:00
s390 Bugfixes, x86+s390. 2020-03-14 15:45:26 -07:00
sh
sparc
um
unicore32
x86 x86/xen: Make the boot CPU idle task reliable 2020-03-30 17:32:04 +02:00
xtensa
.gitignore
Kconfig arch/Kconfig: update HAVE_RELIABLE_STACKTRACE description 2020-03-06 07:06:09 -06:00