Vincent Mailhol
2023-Jun-15 12:18 UTC
[Libguestfs] libldm crashes in a linux-sandbox context
Hello, I am using libguestfs in a Bazel's linux-sandbox environment[1]. When executing in that sandbox environment, I got frequent crashes. Please find attached below the results of libguestfs-test-tool when run into that linux-sandbox environment. The most relevant part seems to be: [ 0.797233] ldmtool[164]: segfault at 0 ip 0000564a892506a5 sp 00007fff8ee5b900 error 4 in ldmtool[564a8924e000+3000] [ 0.798117] Code: 18 64 48 33 1c 25 28 00 00 00 75 5e 48 83 c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 e8 db fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 0b e1 ff ff 45 31 c0 4c 89 e1 /init: line 154: 164 Segmentation fault ldmtool create all So the root cause seems to be around libldm. This mailing list seems to cover both libguestfs and libldm, so hopefully, I am at the right place to ask :) Needless to say, when run outside of the sandbox environment, no crash were observed. [1] linux-sandbox.cc Link: https://github.com/bazelbuild/bazel/blob/master/src/main/tools/linux-sandbox.cc --- ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ TMPDIR=/tmp PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin SELinux: sh: 1: getenforce: not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /tmp guestfs_get_hv: /usr/bin/qemu-system-x86_64 guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_smp: 1 guestfs_get_sockdir: /tmp guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.40.2 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsART0fq libguestfs: launch: umask=0022 libguestfs: launch: euid=1001 libguestfs: begin building supermin appliance libguestfs: run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /tmp/.guestfs-1001/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d libguestfs: command: run: \ -o /tmp/.guestfs-1001/appliance.d supermin: version: 5.1.20 supermin: package handler: debian/dpkg supermin: acquiring lock on /tmp/.guestfs-1001/lock supermin: if-newer: output does not need rebuilding libguestfs: finished building supermin appliance libguestfs: begin testing qemu features libguestfs: checking for previously cached test results of /usr/bin/qemu-system-x86_64, in /tmp/.guestfs-1001 libguestfs: loading previously cached test results libguestfs: qemu version: 4.2 libguestfs: qemu mandatory locking: yes libguestfs: qemu KVM: enabled libguestfs: finished testing qemu features /usr/bin/qemu-system-x86_64 \ -global virtio-blk-pci.scsi=off \ -no-user-config \ -enable-fips \ -nodefaults \ -display none \ -machine accel=kvm:tcg \ -cpu host \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -no-hpet \ -global kvm-pit.lost_tick_policy=discard \ -kernel /tmp/.guestfs-1001/appliance.d/kernel \ -initrd /tmp/.guestfs-1001/appliance.d/initrd \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfsART0fq/scratch1.img,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/tmp/.guestfs-1001/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -device sga \ -chardev socket,path=/tmp/libguestfsx6wHdq/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append "panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=linux" libguestfs: responding to serial console Device Status Report \x1b[1;256r\x1b[256;256H\x1b[6n Google, Inc. Serial Graphics Adapter 12/12/19 SGABIOS $Id$ (build at debian) Thu Dec 12 18:22:50 UTC 2019 Term: 80x24 4 0 \x1b[2J SeaBIOS (version 1.13.0-1ubuntu1.1) Booting from ROM... \x1b[2J[ 0.000000] Linux version 5.15.0-73-generic (buildd at bos03-amd64-038) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #80~20.04.1-Ubuntu SMP Wed May 17 14:58:14 UTC 2023 (Ubuntu 5.15.0-73.80~20.04.1-generic 5.15.98) [ 0.000000] Command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=linux [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Hygon HygonGenuine [ 0.000000] Centaur CentaurHauls [ 0.000000] zhaoxin Shanghai [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers' [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64 [ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64 [ 0.000000] x86/fpu: xstate_offset[5]: 960, xstate_sizes[5]: 64 [ 0.000000] x86/fpu: xstate_offset[6]: 1024, xstate_sizes[6]: 512 [ 0.000000] x86/fpu: xstate_offset[7]: 1536, xstate_sizes[7]: 1024 [ 0.000000] x86/fpu: xstate_offset[9]: 2560, xstate_sizes[9]: 8 [ 0.000000] x86/fpu: Enabled xstate features 0x2ff, context size is 2568 bytes, using 'compacted' format. [ 0.000000] signal: max sigframe size: 3632 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000002ffdcfff] usable [ 0.000000] BIOS-e820: [mem 0x000000002ffdd000-0x000000002fffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.8 present. [ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 [ 0.000000] Hypervisor detected: KVM [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 [ 0.000000] kvm-clock: cpu 0, msr c601001, primary cpu clock [ 0.000001] kvm-clock: using sched offset of 152466177 cycles [ 0.000003] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.000006] tsc: Detected 2496.000 MHz processor [ 0.000253] last_pfn = 0x2ffdd max_arch_pfn = 0x400000000 [ 0.000307] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.006060] found SMP MP-table at [mem 0x000f5c90-0x000f5c9f] [ 0.006118] Using GB pages for direct mapping [ 0.006273] RAMDISK: [mem 0x2fcbc000-0x2ffcffff] [ 0.006295] ACPI: Early table checksum verification disabled [ 0.006300] ACPI: RSDP 0x00000000000F5AC0 000014 (v00 BOCHS ) [ 0.006305] ACPI: RSDT 0x000000002FFE1510 00002C (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) [ 0.006311] ACPI: FACP 0x000000002FFE1424 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) [ 0.006316] ACPI: DSDT 0x000000002FFE0040 0013E4 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001) [ 0.006320] ACPI: FACS 0x000000002FFE0000 000040 [ 0.006323] ACPI: APIC 0x000000002FFE1498 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001) [ 0.006326] ACPI: Reserving FACP table memory at [mem 0x2ffe1424-0x2ffe1497] [ 0.006328] ACPI: Reserving DSDT table memory at [mem 0x2ffe0040-0x2ffe1423] [ 0.006329] ACPI: Reserving FACS table memory at [mem 0x2ffe0000-0x2ffe003f] [ 0.006330] ACPI: Reserving APIC table memory at [mem 0x2ffe1498-0x2ffe150f] [ 0.006600] No NUMA configuration found [ 0.006601] Faking a node at [mem 0x0000000000000000-0x000000002ffdcfff] [ 0.006607] NODE_DATA(0) allocated [mem 0x2fc92000-0x2fcbbfff] [ 0.006786] Zone ranges: [ 0.006788] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.006790] DMA32 [mem 0x0000000001000000-0x000000002ffdcfff] [ 0.006792] Normal empty [ 0.006793] Device empty [ 0.006794] Movable zone start for each node [ 0.006796] Early memory node ranges [ 0.006797] node 0: [mem 0x0000000000001000-0x000000000009efff] [ 0.006798] node 0: [mem 0x0000000000100000-0x000000002ffdcfff] [ 0.006800] Initmem setup node 0 [mem 0x0000000000001000-0x000000002ffdcfff] [ 0.007042] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.007053] On node 0, zone DMA: 97 pages in unavailable ranges [ 0.008702] On node 0, zone DMA32: 35 pages in unavailable ranges [ 0.008994] ACPI: PM-Timer IO Port: 0x608 [ 0.009005] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.009037] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.009040] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.009042] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.009043] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.009045] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.009046] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.009049] ACPI: Using ACPI (MADT) for SMP configuration information [ 0.009051] TSC deadline timer available [ 0.009052] smpboot: Allowing 1 CPUs, 0 hotplug CPUs [ 0.009081] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.009083] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.009084] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.009085] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.009087] [mem 0x30000000-0xfeffbfff] available for PCI devices [ 0.009088] Booting paravirtualized kernel on KVM [ 0.009090] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns [ 0.009098] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1 [ 0.009406] percpu: Embedded 60 pages/cpu s208896 r8192 d28672 u2097152 [ 0.009435] kvm-guest: stealtime: cpu 0, msr 2ee32080 [ 0.009440] kvm-guest: PV spinlocks disabled, single CPU [ 0.009446] Built 1 zonelists, mobility grouping on. Total pages: 193245 [ 0.009448] Policy zone: DMA32 [ 0.009449] Kernel command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=linux [ 0.009582] cgroup: Disabling memory control group subsystem [ 0.009646] Unknown kernel command line parameters "edd=off udevtimeout=6000 guestfs_verbose=1", will be passed to user space. [ 0.009681] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.009703] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.009743] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.010921] Memory: 722448K/785900K available (16393K kernel code, 4378K rwdata, 10812K rodata, 3244K init, 6560K bss, 63192K reserved, 0K cma-reserved) [ 0.011337] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.011355] ftrace: allocating 50094 entries in 196 pages [ 0.033853] ftrace: allocated 196 pages with 3 groups [ 0.034201] rcu: Hierarchical RCU implementation. [ 0.034203] rcu: \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1. [ 0.034205] \tRude variant of Tasks RCU enabled. [ 0.034206] \tTracing variant of Tasks RCU enabled. [ 0.034207] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.034208] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.037911] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16 [ 0.038082] random: crng init done [ 0.038169] Console: colour *CGA 80x25 [ 0.101701] printk: console [ttyS0] enabled [ 0.102078] ACPI: Core revision 20210730 [ 0.102446] APIC: Switch to symmetric I/O mode setup [ 0.103058] x2apic enabled [ 0.103495] Switched APIC routing to physical x2apic. [ 0.104684] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x23fa772cf26, max_idle_ns: 440795269835 ns [ 0.105559] Calibrating delay loop (skipped) preset value.. 4992.00 BogoMIPS (lpj=9984000) [ 0.106240] pid_max: default: 32768 minimum: 301 [ 0.106645] LSM: Security Framework initializing [ 0.107042] landlock: Up and running. [ 0.107351] Yama: becoming mindful. [ 0.107903] AppArmor: AppArmor initialized [ 0.108282] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.108900] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.109556] x86/cpu: User Mode Instruction Prevention (UMIP) activated [ 0.109556] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 [ 0.109556] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 [ 0.109556] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.109556] Spectre V2 : Mitigation: Enhanced IBRS [ 0.109556] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 0.109556] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT [ 0.109556] RETBleed: Mitigation: Enhanced IBRS [ 0.109556] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 0.109556] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp [ 0.109556] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode [ 0.109556] Freeing SMP alternatives memory: 40K [ 0.109556] smpboot: CPU0: 11th Gen Intel(R) Core(TM) i9-11900 @ 2.50GHz (family: 0x6, model: 0xa7, stepping: 0x1) [ 0.109556] Performance Events: Icelake events, 32-deep LBR, full-width counters, Intel PMU driver. [ 0.110377] ... version: 2 [ 0.110693] ... bit width: 48 [ 0.111002] ... generic registers: 8 [ 0.111303] ... value mask: 0000ffffffffffff [ 0.111701] ... max period: 00007fffffffffff [ 0.112103] ... fixed-purpose events: 3 [ 0.112404] ... event mask: 00000007000000ff [ 0.112918] rcu: Hierarchical SRCU implementation. [ 0.113677] smp: Bringing up secondary CPUs ... [ 0.114027] smp: Brought up 1 node, 1 CPU [ 0.114335] smpboot: Max logical packages: 1 [ 0.114660] smpboot: Total of 1 processors activated (4992.00 BogoMIPS) [ 0.115289] devtmpfs: initialized [ 0.115582] x86/mm: Memory block size: 128MB [ 0.116103] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.116838] futex hash table entries: 256 (order: 2, 16384 bytes, linear) [ 0.117382] pinctrl core: initialized pinctrl subsystem [ 0.117663] PM: RTC time: 11:58:49, date: 2023-06-15 [ 0.118128] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.118666] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.119253] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.119835] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.120428] audit: initializing netlink subsys (disabled) [ 0.120934] thermal_sys: Registered thermal governor 'fair_share' [ 0.120935] thermal_sys: Registered thermal governor 'bang_bang' [ 0.121404] thermal_sys: Registered thermal governor 'step_wise' [ 0.121563] audit: type=2000 audit(1686830330.027:1): state=initialized audit_enabled=0 res=1 [ 0.122647] thermal_sys: Registered thermal governor 'user_space' [ 0.122647] thermal_sys: Registered thermal governor 'power_allocator' [ 0.123105] EISA bus registered [ 0.123828] cpuidle: using governor ladder [ 0.124138] cpuidle: using governor menu [ 0.124496] ACPI: bus type PCI registered [ 0.124799] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 0.125361] PCI: Using configuration type 1 for base access [ 0.126487] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible. [ 0.127450] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.127962] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.128982] ACPI: Added _OSI(Module Device) [ 0.129308] ACPI: Added _OSI(Processor Device) [ 0.129560] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.129912] ACPI: Added _OSI(Processor Aggregator Device) [ 0.130322] ACPI: Added _OSI(Linux-Dell-Video) [ 0.130654] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) [ 0.131050] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) [ 0.132108] ACPI: 1 ACPI AML tables successfully acquired and loaded [ 0.133240] ACPI: Interpreter enabled [ 0.133548] ACPI: PM: (supports S0 S3 S4 S5) [ 0.133562] ACPI: Using IOAPIC for interrupt routing [ 0.133955] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.134663] PCI: Using E820 reservations for host bridge windows [ 0.135190] ACPI: Enabled 2 GPEs in block 00 to 0F [ 0.137271] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.137601] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI EDR HPX-Type3] [ 0.138211] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.139242] acpiphp: Slot [2] registered [ 0.139556] acpiphp: Slot [3] registered [ 0.139860] acpiphp: Slot [4] registered [ 0.140168] acpiphp: Slot [5] registered [ 0.140474] acpiphp: Slot [6] registered [ 0.140783] acpiphp: Slot [7] registered [ 0.141084] acpiphp: Slot [8] registered [ 0.141449] acpiphp: Slot [9] registered [ 0.141587] acpiphp: Slot [10] registered [ 0.141943] acpiphp: Slot [11] registered [ 0.142273] acpiphp: Slot [12] registered [ 0.142614] acpiphp: Slot [13] registered [ 0.142955] acpiphp: Slot [14] registered [ 0.143274] acpiphp: Slot [15] registered [ 0.143588] acpiphp: Slot [16] registered [ 0.143960] acpiphp: Slot [17] registered [ 0.144280] acpiphp: Slot [18] registered [ 0.144600] acpiphp: Slot [19] registered [ 0.144914] acpiphp: Slot [20] registered [ 0.145225] acpiphp: Slot [21] registered [ 0.145537] acpiphp: Slot [22] registered [ 0.145577] acpiphp: Slot [23] registered [ 0.145893] acpiphp: Slot [24] registered [ 0.146203] acpiphp: Slot [25] registered [ 0.146517] acpiphp: Slot [26] registered [ 0.146830] acpiphp: Slot [27] registered [ 0.147152] acpiphp: Slot [28] registered [ 0.147468] acpiphp: Slot [29] registered [ 0.147794] acpiphp: Slot [30] registered [ 0.148115] acpiphp: Slot [31] registered [ 0.148431] PCI host bridge to bus 0000:00 [ 0.148742] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.149152] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.149559] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.150058] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.150616] pci_bus 0000:00: root bus resource [mem 0x30000000-0xfebfffff window] [ 0.151169] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window] [ 0.151847] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 [ 0.152872] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 [ 0.153715] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180 [ 0.155538] pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af] [ 0.156566] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] [ 0.157103] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] [ 0.157559] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] [ 0.158092] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] [ 0.158770] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000 [ 0.159509] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI [ 0.160050] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB [ 0.161063] pci 0000:00:02.0: [1af4:1005] type 00 class 0x00ff00 [ 0.161819] pci 0000:00:02.0: reg 0x10: [io 0xc080-0xc09f] [ 0.163997] pci 0000:00:02.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff 64bit pref] [ 0.165753] pci 0000:00:03.0: [1af4:1004] type 00 class 0x010000 [ 0.167227] pci 0000:00:03.0: reg 0x10: [io 0xc000-0xc03f] [ 0.168599] pci 0000:00:03.0: reg 0x14: [mem 0xfebfe000-0xfebfefff] [ 0.171451] pci 0000:00:03.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff 64bit pref] [ 0.174177] pci 0000:00:04.0: [1af4:1003] type 00 class 0x078000 [ 0.175180] pci 0000:00:04.0: reg 0x10: [io 0xc040-0xc07f] [ 0.176222] pci 0000:00:04.0: reg 0x14: [mem 0xfebff000-0xfebfffff] [ 0.178083] pci 0000:00:04.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff 64bit pref] [ 0.186458] ACPI: PCI: Interrupt link LNKA configured for IRQ 10 [ 0.186993] ACPI: PCI: Interrupt link LNKB configured for IRQ 10 [ 0.187511] ACPI: PCI: Interrupt link LNKC configured for IRQ 11 [ 0.188031] ACPI: PCI: Interrupt link LNKD configured for IRQ 11 [ 0.188516] ACPI: PCI: Interrupt link LNKS configured for IRQ 9 [ 0.189120] iommu: Default domain type: Translated [ 0.189495] iommu: DMA domain TLB invalidation policy: lazy mode [ 0.189674] SCSI subsystem initialized [ 0.190012] vgaarb: loaded [ 0.190259] usbcore: USB support disabled [ 0.190576] pps_core: LinuxPPS API ver. 1 registered [ 0.190950] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it> [ 0.191624] PTP clock support registered [ 0.191949] EDAC MC: Ver: 3.0.0 [ 0.192427] NetLabel: Initializing [ 0.192732] NetLabel: domain hash size = 128 [ 0.193072] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.193505] NetLabel: unlabeled traffic allowed by default [ 0.193580] PCI: Using ACPI for IRQ routing [ 0.194073] clocksource: Switched to clocksource kvm-clock [ 0.200912] VFS: Disk quotas dquot_6.6.0 [ 0.201260] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.201866] AppArmor: AppArmor Filesystem Enabled [ 0.202260] pnp: PnP ACPI init [ 0.202830] pnp: PnP ACPI: found 5 devices [ 0.212650] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 0.213359] NET: Registered PF_INET protocol family [ 0.213990] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.215394] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear) [ 0.216030] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.216610] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.217196] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear) [ 0.217759] TCP: Hash tables configured (established 8192 bind 8192) [ 0.218256] MPTCP token hash table entries: 1024 (order: 2, 24576 bytes, linear) [ 0.218815] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.219314] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.219862] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.220295] NET: Registered PF_XDP protocol family [ 0.220660] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window] [ 0.221125] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window] [ 0.221593] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window] [ 0.222103] pci_bus 0000:00: resource 7 [mem 0x30000000-0xfebfffff window] [ 0.222614] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window] [ 0.223181] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.223621] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.224067] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.224560] PCI: CLS 0 bytes, default 64 [ 0.224882] Trying to unpack rootfs image as initramfs... [ 0.226658] Freeing initrd memory: 3152K [ 0.227050] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x23fa772cf26, max_idle_ns: 440795269835 ns [ 0.228060] Initialise system trusted keyrings [ 0.228442] Key type blacklist registered [ 0.228790] workingset: timestamp_bits=36 max_order=18 bucket_order=0 [ 0.230020] zbud: loaded [ 0.230389] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.230904] fuse: init (API version 7.34) [ 0.231309] integrity: Platform Keyring initialized [ 0.239645] Key type asymmetric registered [ 0.239959] Asymmetric key parser 'x509' registered [ 0.240338] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 0.240915] io scheduler mq-deadline registered [ 0.241336] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 0.241953] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.242559] ACPI: button: Power Button [PWRF] [ 0.259519] ACPI: \_SB_.LNKB: Enabled at IRQ 10 [ 0.277044] ACPI: \_SB_.LNKC: Enabled at IRQ 11 [ 0.294259] ACPI: \_SB_.LNKD: Enabled at IRQ 11 [ 0.295373] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 0.318784] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.358711] Linux agpgart interface v0.103 [ 0.359880] loop: module loaded [ 0.360681] scsi host0: ata_piix [ 0.361013] scsi host1: ata_piix [ 0.361349] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14 [ 0.361906] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15 [ 0.362669] tun: Universal TUN/TAP device driver, 1.6 [ 0.363078] PPP generic driver version 2.4.2 [ 0.363467] VFIO - User Level meta-driver version: 0.3 [ 0.363933] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 0.365083] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.365473] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.366091] mousedev: PS/2 mouse device common for all mice [ 0.366673] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 0.367464] rtc_cmos 00:00: RTC can wake from S4 [ 0.368058] rtc_cmos 00:00: registered as rtc0 [ 0.368438] rtc_cmos 00:00: setting system clock to 2023-06-15T11:58:49 UTC (1686830329) [ 0.369079] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram [ 0.369604] i2c_dev: i2c /dev entries driver [ 0.369946] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log. [ 0.370886] device-mapper: uevent: version 1.0.3 [ 0.371270] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel at redhat.com [ 0.371919] platform eisa.0: Probing EISA bus 0 [ 0.372267] platform eisa.0: EISA: Cannot allocate resource for mainboard [ 0.372782] platform eisa.0: Cannot allocate resource for EISA slot 1 [ 0.373282] platform eisa.0: Cannot allocate resource for EISA slot 2 [ 0.373783] platform eisa.0: Cannot allocate resource for EISA slot 3 [ 0.374270] platform eisa.0: Cannot allocate resource for EISA slot 4 [ 0.374754] platform eisa.0: Cannot allocate resource for EISA slot 5 [ 0.375242] platform eisa.0: Cannot allocate resource for EISA slot 6 [ 0.375727] platform eisa.0: Cannot allocate resource for EISA slot 7 [ 0.376216] platform eisa.0: Cannot allocate resource for EISA slot 8 [ 0.376701] platform eisa.0: EISA: Detected 0 cards [ 0.377074] intel_pstate: CPU model not supported [ 0.377450] ledtrig-cpu: registered to indicate activity on CPUs [ 0.377959] drop_monitor: Initializing network drop monitor service [ 0.378542] NET: Registered PF_INET6 protocol family [ 0.379255] Segment Routing with IPv6 [ 0.379564] In-situ OAM (IOAM) with IPv6 [ 0.379886] NET: Registered PF_PACKET protocol family [ 0.380310] Key type dns_resolver registered [ 0.380765] IPI shorthand broadcast: enabled [ 0.381110] sched_clock: Marking stable (310424358, 67484914)->(436994679, -59085407) [ 0.381791] registered taskstats version 1 [ 0.382142] Loading compiled-in X.509 certificates [ 0.382992] Loaded X.509 cert 'Build time autogenerated kernel key: 2a93a999cc26ede1fce61bd86bb978e3d6e72543' [ 0.384179] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969' [ 0.385329] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19' [ 0.386082] blacklist: Loading compiled-in revocation X.509 certificates [ 0.386609] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0' [ 0.387351] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2017): 242ade75ac4a15e50d50c84b0d45ff3eae707a03' [ 0.388137] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (ESM 2018): 365188c1d374d6b07c3c8f240f8ef722433d6a8b' [ 0.388942] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2019): c0746fd6c5da3ae827864651ad66ae47fe24b3e8' [ 0.389760] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v1): a8d54bbb3825cfb94fa13c9f8a594a195c107b8d' [ 0.390576] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v2): 4cf046892d6fd3c9a5b03f98d845f90851dc6a8c' [ 0.391390] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v3): 100437bb6de6e469b581e61cd66bce3ef4ed53af' [ 0.392201] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (Ubuntu Core 2019): c1d57b8f6b743f23ee41f4f7ee292f06eecadfb9' [ 0.393325] zswap: loaded using pool lzo/zbud [ 0.393739] Key type .fscrypt registered [ 0.394063] Key type fscrypt-provisioning registered [ 0.394570] Key type encrypted registered [ 0.394894] AppArmor: AppArmor sha1 policy hashing enabled [ 0.395322] ima: No TPM chip found, activating TPM-bypass! [ 0.395758] Loading compiled-in module X.509 certificates [ 0.396607] Loaded X.509 cert 'Build time autogenerated kernel key: 2a93a999cc26ede1fce61bd86bb978e3d6e72543' [ 0.397356] ima: Allocated hash algorithm: sha1 [ 0.397720] ima: No architecture policies found [ 0.398075] evm: Initialising EVM extended attributes: [ 0.398459] evm: security.selinux [ 0.398711] evm: security.SMACK64 [ 0.398963] evm: security.SMACK64EXEC [ 0.399240] evm: security.SMACK64TRANSMUTE [ 0.399550] evm: security.SMACK64MMAP [ 0.399827] evm: security.apparmor [ 0.400086] evm: security.ima [ 0.400313] evm: security.capability [ 0.400586] evm: HMAC attrs: 0x1 [ 0.401009] PM: Magic number: 11:734:984 [ 0.401438] RAS: Correctable Errors collector initialized. [ 0.536932] Freeing unused decrypted memory: 2036K [ 0.538239] Freeing unused kernel image (initmem) memory: 3244K [ 0.539157] Write protecting the kernel read-only data: 30720k [ 0.540485] Freeing unused kernel image (text/rodata gap) memory: 2036K [ 0.541771] Freeing unused kernel image (rodata/data gap) memory: 1476K [ 0.564008] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 0.565082] Run /init as init process supermin: mounting /proc supermin: ext2 mini initrd starting up: 5.1.20 supermin: cmdline: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=linux supermin: uptime: 0.50 0.12 supermin: mounting /sys supermin: internal insmod crc32-pclmul.ko supermin: internal insmod crct10dif-pclmul.ko supermin: internal insmod crc32_generic.ko supermin: internal insmod nfit.ko supermin: internal insmod virtio_blk.ko supermin: internal insmod ecc.ko supermin: internal insmod ecdh_generic.ko supermin: internal insmod bluetooth.ko [ 0.605172] Bluetooth: Core ver 2.22 [ 0.605482] NET: Registered PF_BLUETOOTH protocol family [ 0.605899] Bluetooth: HCI device and connection manager initialized [ 0.606388] Bluetooth: HCI socket layer initialized [ 0.606762] Bluetooth: L2CAP socket layer initialized [ 0.607150] Bluetooth: SCO socket layer initialized supermin: internal insmod virtio_bt.ko supermin: internal insmod virtio-rng.ko supermin: internal insmod crypto_engine.ko supermin: internal insmod virtio_crypto.ko supermin: internal insmod failover.ko supermin: internal insmod net_failover.ko supermin: internal insmod virtio_net.ko supermin: internal insmod nd_btt.ko supermin: internal insmod nd_pmem.ko supermin: internal insmod nd_virtio.ko supermin: internal insmod virtio_pmem.ko supermin: internal insmod rpmsg_core.ko supermin: internal insmod rpmsg_ns.ko supermin: internal insmod virtio_rpmsg_bus.ko supermin: internal insmod virtio_scsi.ko [ 0.622564] scsi host2: Virtio SCSI HBA [ 0.623485] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.624333] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.633329] sd 2:0:0:0: Power-on or device reset occurred [ 0.633839] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 0.634398] sd 2:0:1:0: Power-on or device reset occurred [ 0.634852] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (105 MB/100 MiB) [ 0.635447] sd 2:0:1:0: Attached scsi generic sg1 type 0 [ 0.635916] sd 2:0:0:0: [sda] Write Protect is off [ 0.636326] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.637096] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 0.637899] sd 2:0:1:0: [sdb] Write Protect is off [ 0.638670] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.657743] sd 2:0:0:0: [sda] Attached SCSI disk [ 0.658147] sd 2:0:1:0: [sdb] Attached SCSI disk supermin: internal insmod virtio_dma_buf.ko supermin: internal insmod virtio_input.ko supermin: internal insmod virtio_mem.ko supermin: internal insmod vdpa.ko supermin: internal insmod virtio_vdpa.ko supermin: internal insmod virtiofs.ko supermin: internal insmod crc-itu-t.ko supermin: internal insmod crc4.ko supermin: internal insmod crc64.ko supermin: internal insmod crc7.ko supermin: internal insmod crc8.ko supermin: internal insmod libcrc32c.ko supermin: internal insmod soundcore.ko supermin: internal insmod snd.ko supermin: internal insmod snd-timer.ko supermin: internal insmod snd-pcm.ko supermin: internal insmod virtio_snd.ko supermin: picked /sys/block/sdb/dev (8:16) as root device supermin: creating /dev/root as block special 8:16 supermin: mounting new root on /root [ 0.678248] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem [ 0.679832] EXT4-fs (sdb): mounted filesystem without journal. Opts: . Quota mode: none. supermin: deleting initramfs files supermin: chroot Starting /init script ... mount: only root can use "--types" option (effective UID is 65534) /init: line 38: /proc/cmdline: No such file or directory mount: only root can use "--types" option (effective UID is 65534) mount: only root can use "--options" option (effective UID is 65534) mount: only root can use "--types" option (effective UID is 65534) mount: only root can use "--types" option (effective UID is 65534) mount: only root can use "--options" option (effective UID is 65534) dd: failed to open '/dev/urandom': No such file or directory [/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to replace specifiers: /var/log/journal/%m [/usr/lib/tmpfiles.d/static-nodes-permissions.conf:12] Unknown group 'audio'. [/usr/lib/tmpfiles.d/static-nodes-permissions.conf:13] Unknown group 'audio'. [/usr/lib/tmpfiles.d/static-nodes-permissions.conf:14] Unknown group 'disk'. [/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17] Unknown group 'kvm'. [/usr/lib/tmpfiles.d/systemd-tmp.conf:11] Failed to replace specifiers: /tmp/systemd-private-%b-* [/usr/lib/tmpfiles.d/systemd-tmp.conf:12] Failed to replace specifiers: /tmp/systemd-private-%b-*/tmp [/usr/lib/tmpfiles.d/systemd-tmp.conf:13] Failed to replace specifiers: /var/tmp/systemd-private-%b-* [/usr/lib/tmpfiles.d/systemd-tmp.conf:14] Failed to replace specifiers: /var/tmp/systemd-private-%b-*/tmp [/usr/lib/tmpfiles.d/systemd-tmp.conf:22] Failed to replace specifiers: /var/lib/systemd/coredump/.#core*.%b* [/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'. [/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:22] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'. [/usr/lib/tmpfiles.d/systemd.conf:27] Failed to replace specifiers: /run/log/journal/%m Failed to parse ACL "d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x": No such file or directory. Ignoring [/usr/lib/tmpfiles.d/systemd.conf:30] Failed to replace specifiers: /run/log/journal/%m [/usr/lib/tmpfiles.d/systemd.conf:31] Failed to replace specifiers: /run/log/journal/%m/*.journal* [/usr/lib/tmpfiles.d/systemd.conf:34] Failed to replace specifiers: /var/log/journal/%m [/usr/lib/tmpfiles.d/systemd.conf:35] Failed to replace specifiers: /var/log/journal/%m/system.journal Failed to parse ACL "d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x": No such file or directory. Ignoring [/usr/lib/tmpfiles.d/systemd.conf:38] Failed to replace specifiers: /var/log/journal/%m [/usr/lib/tmpfiles.d/systemd.conf:39] Failed to replace specifiers: /var/log/journal/%m/system.journal Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /dev/snd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /dev/snd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Detected unsafe path transition (null) \xe2\x86\x92 (null) during canonicalization of /run/systemd. Failed to parse kernel command line, ignoring: No such file or directory Starting version 245.4-4ubuntu3.22 Failed to redirect standard streams to /dev/null: No such file or directory /lib/udev/rules.d/50-udev-default.rules:18 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:19 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:20 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:21 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:22 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:23 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:24 Unknown group 'tty', ignoring /lib/udev/rules.d/50-udev-default.rules:25 Unknown group 'dialout', ignoring /lib/udev/rules.d/50-udev-default.rules:27 Unknown group 'kmem', ignoring /lib/udev/rules.d/50-udev-default.rules:29 Unknown group 'input', ignoring /lib/udev/rules.d/50-udev-default.rules:32 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:33 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:34 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:35 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:36 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:37 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:39 Unknown group 'render', ignoring /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring Failed to scan devices: No such file or directory /lib/udev/rules.d/50-udev-default.rules:46 Unknown group 'audio', ignoring /lib/udev/rules.d/50-udev-default.rules:50 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:51 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:52 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:53 Unknown group 'video', ignoring /lib/udev/rules.d/50-udev-default.rules:55 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:56 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:57 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:58 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:59 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:60 Unknown group 'lp', ignoring /lib/udev/rules.d/50-udev-default.rules:62 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:63 Unknown group 'cdrom', ignoring /lib/udev/rules.d/50-udev-default.rules:64 Unknown group 'cdrom', ignoring /lib/udev/rules.d/50-udev-default.rules:65 Unknown group 'cdrom', ignoring /lib/udev/rules.d/50-udev-default.rules:66 Unknown group 'cdrom', ignoring /lib/udev/rules.d/50-udev-default.rules:67 Unknown group 'cdrom', ignoring /lib/udev/rules.d/50-udev-default.rules:69 Unknown group 'tape', ignoring /lib/udev/rules.d/50-udev-default.rules:70 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:71 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:72 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:73 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:74 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:75 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:76 Unknown group 'disk', ignoring /lib/udev/rules.d/50-udev-default.rules:85 Unknown group 'kvm', ignoring /lib/udev/rules.d/50-udev-default.rules:87 Unknown group 'kvm', ignoring /lib/udev/rules.d/80-debian-compat.rules:7 Unknown group 'dialout', ignoring /lib/udev/rules.d/80-debian-compat.rules:8 Unknown group 'dialout', ignoring /lib/udev/rules.d/80-debian-compat.rules:9 Unknown group 'kmem', ignoring /lib/udev/rules.d/80-debian-compat.rules:10 Unknown group 'cdrom', ignoring /lib/udev/rules.d/80-debian-compat.rules:11 Unknown group 'video', ignoring mdadm: cannot open /proc/partitions mdadm: No devices listed in conf file were found. /init: line 144: lvmetad: command not found /proc/mounts: _get_sysfs_dir fopen failed: No such file or directory /proc/devices: fopen failed: No such file or directory mdadm: cannot open /proc/partitions mdadm: No devices listed in conf file were found. Unable to open /sys/block: No such file or directory [ 0.797233] ldmtool[164]: segfault at 0 ip 0000564a892506a5 sp 00007fff8ee5b900 error 4 in ldmtool[564a8924e000+3000] [ 0.798117] Code: 18 64 48 33 1c 25 28 00 00 00 75 5e 48 83 c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 e8 db fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 0b e1 ff ff 45 31 c0 4c 89 e1 /init: line 154: 164 Segmentation fault ldmtool create all Linux (none) 5.15.0-73-generic #80~20.04.1-Ubuntu SMP Wed May 17 14:58:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux /dev: total 12 crw------- 1 0 0 10, 235 Jun 15 11:58 autofs crw------- 1 0 0 10, 234 Jun 15 11:58 btrfs-control crw------- 1 0 0 10, 203 Jun 15 11:58 cuse lrwxrwxrwx 1 0 0 13 Jun 15 11:58 fd -> /proc/self/fd crw------- 1 0 0 10, 144 Jun 15 11:58 nvram drwxr-xr-x 2 0 0 4096 Jun 15 11:58 pts drwxr-xr-x 2 0 0 4096 Jun 15 11:58 shm drwxr-xr-x 2 0 0 4096 Jun 15 11:58 snd lrwxrwxrwx 1 0 0 15 Jun 15 11:58 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 0 0 15 Jun 15 11:58 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 0 0 15 Jun 15 11:58 stdout -> /proc/self/fd/1 crw------- 1 0 0 10, 239 Jun 15 11:58 uhid crw------- 1 0 0 10, 240 Jun 15 11:58 userio crw------- 1 0 0 10, 137 Jun 15 11:58 vhci crw------- 1 0 0 10, 238 Jun 15 11:58 vhost-net crw------- 1 0 0 10, 241 Jun 15 11:58 vhost-vsock crw------- 1 0 0 10, 249 Jun 15 11:58 zfs /dev/pts: total 0 /dev/shm: total 0 /dev/snd: total 0 cat: /proc/mounts: No such file or directory cat: /proc/mdstat: No such file or directory /proc/mounts: _get_sysfs_dir fopen failed: No such file or directory /proc/devices: fopen failed: No such file or directory /proc/mounts: _get_sysfs_dir fopen failed: No such file or directory /proc/devices: fopen failed: No such file or directory /proc/mounts: _get_sysfs_dir fopen failed: No such file or directory /proc/devices: fopen failed: No such file or directory /proc/mounts: _get_sysfs_dir fopen failed: No such file or directory /proc/devices: fopen failed: No such file or directory 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever cat: /etc/resolv.conf: No such file or directory libkmod: ERROR ../libkmod/libkmod-module.c:1668 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: could not get list of modules: No such file or directory Thu Jun 15 11:58:49 UTC 2023 clocksource: cat: /sys/devices/system/clocksource/clocksource0/current_clocksource: No such file or directory uptime: cat: /proc/uptime: No such file or directory grep: /proc/cmdline: No such file or directory guestfsd --verbose lvm_system_dir = /tmp/lvm OCaml daemon loaded trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' Failed to connect to virtio-serial channel. This is a fatal error and the appliance will now exit. Usually this error is caused by either QEMU or the appliance kernel not supporting the vmchannel method that the libguestfs library chose to use. Please run 'libguestfs-test-tool' and provide the complete, unedited output to the libguestfs developers, either in a bug report or on the libguestfs redhat com mailing list. guestfsd: open: /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory Rebooting. [ 0.865289] sd 2:0:1:0: [sdb] Synchronizing SCSI cache [ 0.865794] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 0.866349] reboot: Restarting system [ 0.866638] reboot: machine restart libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages libguestfs: child_cleanup: 0x564d39d94300: child process died libguestfs: sending SIGTERM to process 10 libguestfs: qemu maxrss 215456K libguestfs: error: guestfs_launch failed, see earlier error messages libguestfs: closing guestfs handle 0x564d39d94300 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsART0fq libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsx6wHdq
Richard W.M. Jones
2023-Jun-15 18:08 UTC
[Libguestfs] libldm crashes in a linux-sandbox context
On Thu, Jun 15, 2023 at 09:18:38PM +0900, Vincent Mailhol wrote:> Hello, > > I am using libguestfs in a Bazel's linux-sandbox environment[1]. > > When executing in that sandbox environment, I got frequent crashes. > > Please find attached below the results of libguestfs-test-tool when > run into that linux-sandbox environment. The most relevant part seems > to be: > > [ 0.797233] ldmtool[164]: segfault at 0 ip 0000564a892506a5 sp 00007fff8ee5b900 error 4 in ldmtool[564a8924e000+3000] > [ 0.798117] Code: 18 64 48 33 1c 25 28 00 00 00 75 5e 48 83 c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 e8 db fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 0b e1 ff ff 45 31 c0 4c 89 e1 > /init: line 154: 164 Segmentation fault ldmtool create all > > So the root cause seems to be around libldm. This mailing list seems > to cover both libguestfs and libldm, so hopefully, I am at the right > place to ask :) > > Needless to say, when run outside of the sandbox environment, no crash > were observed. > > [1] linux-sandbox.cc > Link: https://github.com/bazelbuild/bazel/blob/master/src/main/tools/linux-sandbox.cc > > ---...> supermin: picked /sys/block/sdb/dev (8:16) as root device > supermin: creating /dev/root as block special 8:16 > supermin: mounting new root on /root > [ 0.678248] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem > [ 0.679832] EXT4-fs (sdb): mounted filesystem without journal. Opts: . Quota mode: none. > supermin: deleting initramfs files > supermin: chroot > Starting /init script ... > mount: only root can use "--types" option (effective UID is 65534) > /init: line 38: /proc/cmdline: No such file or directory > mount: only root can use "--types" option (effective UID is 65534) > mount: only root can use "--options" option (effective UID is 65534) > mount: only root can use "--types" option (effective UID is 65534) > mount: only root can use "--types" option (effective UID is 65534) > mount: only root can use "--options" option (effective UID is 65534)It really goes wrong from here, where apparently it's not running as root (instead UID 65534), even though we're supposed to be running inside a Linux appliance virtual machine. Any idea why that would be? I looked at the sandbox and that would run the qemu process as UID "nobody" (which might be 65534). However I don't understand why that would affect anything running on the new kernel inside the appliance. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org