projectacrn/acrn-kernel

SOS hang and kernel panic after reboot SOS by PDU.

xiaoguangwu opened this issue · 1 comments

Environment:

HW: WHL

Bug detailed description:

SOS hang and kernel panic after reboot SOS by PDU.

Reproduce steps:

1.Boot up into Yocto SOS
2.In Yocto SOS, update sos kernel and HV
3.Reboot SOS by PDU

Current result:

SOS hang and kernel panic after reboot SOS by PDU.

Expected result:

SOS can work normally after reboot SOS by PDU.

Attachments:

ACRN:>
ACRN:>vm_console

----- Entering VM 0 Shell -----
ata3: SATA max UDMA/133 abar m2048@0xa141a000 port 0xa141a200 irq 124
tun: Universal TUN/TAP device driver, 1.6
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
igb: Copyright (c) 2007-2014 Intel Corporation.
pps pps0: new PPS source ptp0
igb 0000:03:00.0: added PHC on eth0
igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:03:00.0: eth0: (PCIe:2.5Gb/s:Width x1) b0:41:6f:04:8e:f9
igb 0000:03:00.0: eth0: PBA No: FFFFFF-0FF
igb 0000:03:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
pps pps1: new PPS source ptp1
igb 0000:04:00.0: added PHC on eth1
igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:04:00.0: eth1: (PCIe:2.5Gb/s:Width x1) b0:41:6f:04:8e:fa
igb 0000:04:00.0: eth1: PBA No: FFFFFF-0FF
igb 0000:04:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
uhci_hcd: USB Universal Host Controller Interface driver
xhci_hcd 0000:00:14.0: xHCI Host Controller
xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x110 quirks 0x0000000000009810
xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 12 ports detected
xhci_hcd 0000:00:14.0: xHCI Host Controller
xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:14.0: Host supports USB 3.1 Enhanced SuperSpeed
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
tsc: Refined TSC clocksource calibration: 1800.002 MHz
clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x19f22b76be8, max_idle_ns: 440795216487 ns
clocksource: Switched to clocksource tsc
i8042: Can't read CTR while initializing i8042
i8042: probe of i8042 failed with error -5
mousedev: PS/2 mouse device common for all mice
rtc_cmos rtc_cmos: RTC can wake from S4
rtc_cmos rtc_cmos: registered as rtc0
ata1: SATA link down (SStatus 4 SControl 300)
rtc_cmos rtc_cmos: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata3: SATA link down (SStatus 4 SControl 300)
i801_smbus 0000:00:1f.4: SPD Write Disable is set
ata2.00: ATA-10: KINGSTON RBUSNS8180S3128GJ, SBFK61D1, max UDMA/133
i801_smbus 0000:00:1f.4: SMBus using PCI interrupt
ata2.00: 250069680 sectors, multi 1: LBA48 NCQ (depth 32), AA
ata2.00: configured for UDMA/133
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
iTCO_wdt: Found a Intel PCH TCO device (Version=6, TCOBASE=0x0400)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
intel_pstate: Intel P-state driver initializing
intel_pstate: HWP enabled
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pci 0000:00:1a.0: SDHCI controller found [8086:9dc4] (rev 30)
mmc0: CQHCI version 5.10
mmc0: SDHCI controller on PCI [0000:00:1a.0] using ADMA 64-bit
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
intel_telemetry_core Init
SBuf: ele_num=0x1fffe, ele_size=0x20 allocated!
SBuf: ele_num=0x1fffe, ele_size=0x20 allocated!
SBuf: ele_num=0x1fffe, ele_size=0x20 allocated!
SBuf: ele_num=0x1fffe, ele_size=0x20 allocated!
SBuf: setup phys add = 0x260400000
SBuf: setup phys add = 0x260000000
SBuf: setup phys add = 0x25fc00000
SBuf: setup phys add = 0x25f800000
ACRNTrace: Initialized acrn trace module with 4 cpu
SBuf: construct sbuf at 0xffffa3ee00c00000.
SBuf: setup phys add = 0x1fe00000
SBuf: construct sbuf at 0xffffa3ee00c40000.
SBuf: setup phys add = 0x1fe40000
SBuf: construct sbuf at 0xffffa3ee00c80000.
SBuf: setup phys add = 0x1fe80000
SBuf: construct sbuf at 0xffffa3ee00cc0000.
SBuf: setup phys add = 0x1fec0000
ACRN HVLog: Failed to init last hvlog devs, errno -19
ACRN HVLog: Initialized hvlog module with 4 cpu
drop_monitor: Initializing network drop monitor service
u32 classifier
input device check on
Actions configured
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
Bridge firewalling registered
NET: Registered protocol family 36
Key type dns_resolver registered
IPI shorthand broadcast: enabled
AVX2 version of gcm_enc/dec engaged.
AES CTR mode by8 optimization enabled
sched_clock: Marking stable (3054456462, 92750674)->(3200106165, -52899029)
Loading compiled-in X.509 certificates
Key type ._fscrypt registered
Key type .fscrypt registered
Btrfs loaded, crc32c=crc32c-generic
Key type encrypted registered
BUG: kernel NULL pointer dereference, address: 00000000000008f8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 1 PREEMPT SMP NOPTI
CPU: 3 PID: 1 Comm: swapper/0 Tainted: G U W 5.4.48-acrn-kernel-sos #1
Hardware name: Maxtang WL10/WL10, BIOS WL10R104 09/12/2019
RIP: 0010:intel_gvt_register_hypervisor+0x40/0x90
Code: 48 89 fb 77 52 31 ff e8 2e 3f 8f ff 84 c0 74 4e 48 89 1d 53 a5 19 01 48 8b 3d 3c a5 19 01 8b 03 89 05 40 a5 19 01 48 8b 47 78 <48> 8b b0 f8 08 00 00 48 8b 43 08 48 85 c0 0f 84 4a 06 00 00 48 c7
RSP: 0000:ffffa3ee00037e80 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffffffffabeef980 RCX: 0000000000000000
RDX: ffffa133a4e00d00 RSI: 0000000000000100 RDI: ffffa133a47740b0
RBP: ffffa3ee00037e88 R08: ffffa133a3932ce0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffac010beb
R13: ffffffffac131040 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffffa133a5f80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000008f8 CR3: 0000000030e0a001 CR4: 00000000003606e0
Call Trace:
acrngt_init+0x15/0x1d
do_one_initcall+0x4a/0x21a
kernel_init_freeable+0x165/0x1f4
? rest_init+0xc1/0xc1
kernel_init+0xe/0xff
ret_from_fork+0x35/0x40
Modules linked in:
CR2: 00000000000008f8
--[ end trace da0dc02630e2ef53 ]--
RIP: 0010:intel_gvt_register_hypervisor+0x40/0x90
Code: 48 89 fb 77 52 31 ff e8 2e 3f 8f ff 84 c0 74 4e 48 89 1d 53 a5 19 01 48 8b 3d 3c a5 19 01 8b 03 89 05 40 a5 19 01 48 8b 47 78 <48> 8b b0 f8 08 00 00 48 8b 43 08 48 85 c0 0f 84 4a 06 00 00 48 c7
RSP: 0000:ffffa3ee00037e80 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffffffffabeef980 RCX: 0000000000000000
RDX: ffffa133a4e00d00 RSI: 0000000000000100 RDI: ffffa133a47740b0
RBP: ffffa3ee00037e88 R08: ffffa133a3932ce0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffac010beb
R13: ffffffffac131040 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffffa133a5f80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000008f8 CR3: 0000000030e0a001 CR4: 00000000003606e0
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Kernel Offset: 0x29800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
--[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]--

[External_System_ID] ACRN-6509