FS#57500 - [linux] kernel 4.15.3 fails to boot as Xen 4.10 dom0 & Xen PV domU

Attached to Project: Arch Linux
Opened by John Thomson (johnth) - Wednesday, 14 February 2018, 03:35 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 18 February 2018, 01:59 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Arch Linux kernel 4.15.2-2, 4.15.3-1
Xen 4.10.0

Arch Linux as Xen dom0 with Linux kernel 4.15 fails to boot with:
Unhandled page fault fault/trap
x86_64/entry.S#create_bounce_frame
This same bug also prevents boot of Arch Linux as Xen PV domU
Xen list details
https://lists.xenproject.org/archives/html/xen-devel/2018-02/msg00010.html

Fix is merged for Linux 4.16rc1: x86/xen: init %gs very early to avoid page faults with stack protector
https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git/patch/?id=4f277295e54c5b7340e48efea3fc5cc21a2872b7

With this patch applied, Arch Linux kernel 4.15.3 boots as Xen dom0 & xen PV domU.

Reproduce in working Xen environment:
cat arch_minimal.cfg
name='arch_minimal.cfg'
memory=1024
disk=['/dev/mapper/media01-xentest,raw,xvda']
# linux 4.15
kernel='/boot/vmlinuz-linux'
ramdisk='/boot/initramfs-linux.img'
cmdline='root=/dev/xvda rw'

sudo xl create arch_minimal.cfg

sudo xl dmesg | grep fault
(XEN) [2018-02-13 22:23:02] d12v0 Unhandled page fault fault/trap [#14, ec=0000](XEN) [2018-02-13 22:23:02] Pagetable walk from 0000000000000028:
(XEN) [2018-02-13 22:23:02] domain_crash_sync called from entry.S: fault at ffff82d08034d5c8 x86_64/entry.S#create_bounce_frame+0x135/0x14d
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 18 February 2018, 01:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 4.15.3-2
Comment by John Thomson (johnth) - Sunday, 18 February 2018, 01:52 GMT
With Arch Linux kernel package 4.15.3-2,
Xen dom0 and Xen PV domU working for me.

Thanks for including the fix!
https://git.archlinux.org/svntogit/packages.git/commit/?h=packages/linux&id=0f968199092f29a953058013c90a2a828bf7caf3

Cheers

Loading...