Re: KAISER: kexec triggers a warning

From: Dave Hansen
Date: Fri Dec 01 2017 - 10:31:44 EST


On 12/01/2017 05:52 AM, Juerg Haefliger wrote:
> Loading a kexec kernel using today's linux-tip master with KAISER=y
> triggers the following warning:
>
> [ 18.054017] ------------[ cut here ]------------
> [ 18.054024] WARNING: CPU: 0 PID: 1183 at
> ./arch/x86/include/asm/pgtable_64.h:258 native_set_p4d+0x5f/0x80
> [ 18.054025] Modules linked in: nls_utf8 isofs ppdev nls_iso8859_1
> kvm_intel kvm irqbypass input_leds serio_raw i2c_piix4 parport_pc
> parport qemu_fw_cfg mac_hid 9p fscache ib_iser rdma_cm iw_cm ib_cm

This is kexec is messing with PTEs that map the kernel, which is OK for
kexec to do. The warning is harmless.

The only question is whether we want to preserve _some_ kind of warning
there, or just axe it entirely.