Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2024 05:21:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 282927] bhyve: recent Arch Linux Live ISO crash
Message-ID:  <bug-282927-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282927

            Bug ID: 282927
           Summary: bhyve: recent Arch Linux Live ISO crash
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: 2khramtsov@gmail.com

Host: Zen 3 (AMD Ryzen 5600G), base e8263ace39c8

Various parts of guest boot process, as well as starting python3.12 from
prompt, all commonly fail with this in Guest Linux dmesg:

[   22.516086] Code: 8b f0 ff 48 89 da 4c 89 f3 4c 8b b5 68 ef ff ff e9 cf =
8a
f0 ff 66 0f 1f 44 00 00 f3 0f 1e fa 55 48 89 e5 41 54 53 4c 8b 67 10 <48> 8=
b 5e
10 0f b6 46 20 49 39 dc 48 89 da 49 0f 4e d4 a8 20 0f 84

"f3 0f 1e fa" is ENDBR64 (IBT).

CET is on in host CPUID, off in guest CPUID. IBT isn't supported by CPU and=
 is
off everywhere, though ENDBR64 should be handled similar to a NOP.

GCC 8 seems to generate endbrXX by default (see
https://stackoverflow.com/a/69226244), so I have no idea if this is ENDBR64
related or not. ENDBR64 handling as a reason is only my uneducated guess.

I start my VM with:

#!/bin/sh

UEFI=3D/usr/local/share/uefi-firmware/BHYVE_UEFI.fd
MEM=3D2G
VM=3D"repro"
IF=3D"$(ifconfig tap create up)"
DPY=3D"w=3D1920,h=3D1080"

ifconfig bridge0 addm $IF up

while true ; do
        bhyve \
                -S -H \
                -s 0,amd_hostbridge \
                -s 2,ahci-cd,/tmp/archlinux-2024.11.01-x86_64.iso \
                -s 10,virtio-net,$IF \
                -s 29,fbuf,tcp=3D[::1]:5900,$DPY \
                -s 31,lpc \
                -l bootrom,$UEFI \
                -m $MEM \
                $VM
        RES=3D$?
        bhyvectl --destroy --vm=3D$VM
        if [ $RES -eq 1 ] ; then
                ifconfig $IF destroy
                exit 1
        fi
        sleep 1
done

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282927-227>