понедельник

[Bug 2141314] [NEW] xhci_find_slot_id_by_port kernel panic on boot on arm64

Public bug reported:

On noble:linux 6.8.0-102.102 running on openstack arm64-vm the kernel panics and doesn't boot properly.
The commit inducing the regression is

xhci: fix stale flag preventig URBs after link state error is cleared

[ 3.942479] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 3.945493] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 1
[ 3.945585] virtio_net virtio0 enp3s0: renamed from eth0
[ 3.947045] xhci_hcd 0000:04:00.0: hcc params 0x00087001 hci version 0x100 quirks 0x0000000000000010
[ 3.954946] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 3.955625] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 2
[ 3.958265] xhci_hcd 0000:04:00.0: Host supports USB 3.0 SuperSpeed
[ 3.958951] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.08
[ 3.959702] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.960384] usb usb1: Product: xHCI Host Controller
[ 3.960823] usb usb1: Manufacturer: Linux 6.8.0-102-generic xhci-hcd
[ 3.961348] usb usb1: SerialNumber: 0000:04:00.0
[ 3.962227] hub 1-0:1.0: USB hub found
[ 3.962897] hub 1-0:1.0: 4 ports detected
[ 3.963674] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.964770] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.08
[ 3.966255] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.966994] usb usb2: Product: xHCI Host Controller
[ 3.967431] usb usb2: Manufacturer: Linux 6.8.0-102-generic xhci-hcd
[ 3.967988] usb usb2: SerialNumber: 0000:04:00.0
[ 3.969233] hub 2-0:1.0: USB hub found
[ 3.969858] hub 2-0:1.0: 4 ports detected
[ 4.009945] [drm] pci: virtio-gpu-pci detected at 0000:09:00.0
[ 4.010569] [drm] features: -virgl +edid -resource_blob -host_visible
[ 4.010571] [drm] features: -context_init
[ 4.018692] [drm] number of scanouts: 1
[ 4.019325] [drm] number of cap sets: 0
[ 4.020235] [drm] Initialized virtio_gpu 0.1.0 0 for 0000:09:00.0 on minor 0
[ 4.024718] Console: switching to colour frame buffer device 160x50
[ 4.033596] virtio-pci 0000:09:00.0: [drm] fb0: virtio_gpudrmfb frame buffer device
Begin: Loading essential drivers ... [ 4.091843] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0
[ 4.092765] Mem abort info:
[ 4.093051] ESR = 0x0000000096000004
[ 4.093401] EC = 0x25: DABT (current EL), IL = 32 bits
[ 4.093948] SET = 0, FnV = 0
[ 4.094235] EA = 0, S1PTW = 0
[ 4.094531] FSC = 0x04: level 0 translation fault
[ 4.094994] Data abort info:
[ 4.095264] ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[ 4.095834] CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[ 4.096349] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[ 4.096862] user pgtable: 4k pages, 48-bit VAs, pgdp=000000010864e000
[ 4.097456] [00000000000000a0] pgd=0000000000000000, p4d=0000000000000000
[ 4.098115] Internal error: Oops: 0000000096000004 [#1] SMP
[ 4.098629] Modules linked in: crct10dif_ce polyval_ce polyval_generic virtio_gpu ghash_ce virtio_dma_buf sm4 sha2_ce sha256_arm64 sha1_ce virtio_rng xhci_pci xhci_pci_renesas aes_neon_bs aes_neon_blk aes_ce_blk aes_ce_cipher
[ 4.100591] CPU: 0 PID: 185 Comm: init Not tainted 6.8.0-102-generic #102-Ubuntu
[ 4.101297] Hardware name: QEMU KVM Virtual Machine, BIOS 2025.02-8~22.04.0~ppa3 05/14/2025
[ 4.102096] pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 4.102738] pc : xhci_find_slot_id_by_port+0x80/0x150
[ 4.103224] lr : handle_port_status.isra.0+0xa8/0x9c0
[ 4.103692] sp : ffff800080003d80
[ 4.104020] x29: ffff800080003d80 x28: ffff0000c7d88000 x27: 0000000000000001
[ 4.104683] x26: 0000000000000001 x25: 0000000000000000 x24: ffff0000c7b6d3c0
[ 4.105743] x23: 0000000000000001 x22: ffff0000c4116800 x21: 0000000000000001
[ 4.106832] x20: ffff0000c86ec000 x19: 0000000000000001 x18: ffff800080005060
[ 4.107892] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 4.108945] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 4.109983] x11: ffff0000c6ea7908 x10: 0000000000000000 x9 : ffffcafdb9b9e4a0
[ 4.111016] x8 : ffff8000806d3d18 x7 : 0000000000000000 x6 : 0000000000000000
[ 4.112044] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000008801
[ 4.113071] x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
[ 4.114095] Call trace:
[ 4.114666] xhci_find_slot_id_by_port+0x80/0x150
[ 4.115454] handle_port_status.isra.0+0xa8/0x9c0
[ 4.116276] xhci_handle_event+0x1d8/0x2b8
[ 4.117045] xhci_irq+0xe8/0x588
[ 4.117693] xhci_msi_irq+0x20/0x48
[ 4.118358] __handle_irq_event_percpu+0x68/0x2c0
[ 4.119149] handle_irq_event+0x58/0xe8
[ 4.119904] handle_fasteoi_irq+0xb0/0x218
[ 4.120633] handle_irq_desc+0x58/0x98
[ 4.121459] generic_handle_domain_irq+0x28/0x50
[ 4.122278] __gic_handle_irq_from_irqson.isra.0+0x180/0x310
[ 4.123155] gic_handle_irq+0x2c/0xa0
[ 4.123831] call_on_irq_stack+0x48/0x68
[ 4.124523] do_interrupt_handler+0xb0/0xc0
[ 4.125308] el1_interrupt+0x48/0xf0
[ 4.125999] el1h_64_irq_handler+0x1c/0x40
[ 4.126694] el1h_64_irq+0x7c/0x80
[ 4.127346] percpu_counter_add_batch+0x7c/0x170
[ 4.128118] set_pte_range+0x100/0x2c8
[ 4.128846] filemap_map_pages+0x198/0x5e8
[ 4.129534] do_read_fault+0x150/0x2f0
[ 4.130196] do_pte_missing+0x208/0x3f8
[ 4.130874] handle_pte_fault+0x12c/0x1a0
[ 4.131549] __handle_mm_fault+0x24c/0x400
[ 4.132250] handle_mm_fault+0xac/0x2e0
[ 4.132919] do_page_fault+0x104/0x538
[ 4.133568] do_translation_fault+0x7c/0xd8
[ 4.134312] do_mem_abort+0x50/0xd0
[ 4.134952] el0_da+0x4c/0x178
[ 4.135526] el0t_64_sync_handler+0xdc/0x158
[ 4.136236] el0t_64_sync+0x1b0/0x1b8
[ 4.136911] Code: b4fffe76 f10402bf 54000542 b9401ec4 (b940a323)
[ 4.137740] ---[ end trace 0000000000000000 ]---
[ 4.138432] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[ 4.139334] SMP: stopping secondary CPUs
[ 4.140021] Kernel Offset: 0x4afd38a10000 from 0xffff800080000000
[ 4.140857] PHYS_OFFSET: 0x40000000
[ 4.141438] CPU features: 0x1,00000021,7002014a,2141720b
[ 4.142251] Memory Limit: none
[ 4.142788] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---

** Affects: linux (Ubuntu)
Importance: Undecided
Status: New

** Affects: linux (Ubuntu Noble)
Importance: Undecided
Assignee: Edoardo Canepa (ecanepa)
Status: Triaged

** Also affects: linux (Ubuntu Noble)
Importance: Undecided
Status: New

** Changed in: linux (Ubuntu Noble)
Status: New => Triaged

** Changed in: linux (Ubuntu Noble)
Assignee: (unassigned) => Edoardo Canepa (ecanepa)

** Summary changed:

- Kernel panic on boot on arm64
+ xhci_find_slot_id_by_port kernel panic on boot on arm64

--
You received this bug notification because you are subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/2141314

Title:
xhci_find_slot_id_by_port kernel panic on boot on arm64

Status in linux package in Ubuntu:
New
Status in linux source package in Noble:
Triaged

Bug description:
On noble:linux 6.8.0-102.102 running on openstack arm64-vm the kernel panics and doesn't boot properly.
The commit inducing the regression is

xhci: fix stale flag preventig URBs after link state error is cleared

[ 3.942479] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 3.945493] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 1
[ 3.945585] virtio_net virtio0 enp3s0: renamed from eth0
[ 3.947045] xhci_hcd 0000:04:00.0: hcc params 0x00087001 hci version 0x100 quirks 0x0000000000000010
[ 3.954946] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 3.955625] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 2
[ 3.958265] xhci_hcd 0000:04:00.0: Host supports USB 3.0 SuperSpeed
[ 3.958951] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.08
[ 3.959702] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.960384] usb usb1: Product: xHCI Host Controller
[ 3.960823] usb usb1: Manufacturer: Linux 6.8.0-102-generic xhci-hcd
[ 3.961348] usb usb1: SerialNumber: 0000:04:00.0
[ 3.962227] hub 1-0:1.0: USB hub found
[ 3.962897] hub 1-0:1.0: 4 ports detected
[ 3.963674] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.964770] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.08
[ 3.966255] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.966994] usb usb2: Product: xHCI Host Controller
[ 3.967431] usb usb2: Manufacturer: Linux 6.8.0-102-generic xhci-hcd
[ 3.967988] usb usb2: SerialNumber: 0000:04:00.0
[ 3.969233] hub 2-0:1.0: USB hub found
[ 3.969858] hub 2-0:1.0: 4 ports detected
[ 4.009945] [drm] pci: virtio-gpu-pci detected at 0000:09:00.0
[ 4.010569] [drm] features: -virgl +edid -resource_blob -host_visible
[ 4.010571] [drm] features: -context_init
[ 4.018692] [drm] number of scanouts: 1
[ 4.019325] [drm] number of cap sets: 0
[ 4.020235] [drm] Initialized virtio_gpu 0.1.0 0 for 0000:09:00.0 on minor 0
[ 4.024718] Console: switching to colour frame buffer device 160x50
[ 4.033596] virtio-pci 0000:09:00.0: [drm] fb0: virtio_gpudrmfb frame buffer device
Begin: Loading essential drivers ... [ 4.091843] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0
[ 4.092765] Mem abort info:
[ 4.093051] ESR = 0x0000000096000004
[ 4.093401] EC = 0x25: DABT (current EL), IL = 32 bits
[ 4.093948] SET = 0, FnV = 0
[ 4.094235] EA = 0, S1PTW = 0
[ 4.094531] FSC = 0x04: level 0 translation fault
[ 4.094994] Data abort info:
[ 4.095264] ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[ 4.095834] CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[ 4.096349] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[ 4.096862] user pgtable: 4k pages, 48-bit VAs, pgdp=000000010864e000
[ 4.097456] [00000000000000a0] pgd=0000000000000000, p4d=0000000000000000
[ 4.098115] Internal error: Oops: 0000000096000004 [#1] SMP
[ 4.098629] Modules linked in: crct10dif_ce polyval_ce polyval_generic virtio_gpu ghash_ce virtio_dma_buf sm4 sha2_ce sha256_arm64 sha1_ce virtio_rng xhci_pci xhci_pci_renesas aes_neon_bs aes_neon_blk aes_ce_blk aes_ce_cipher
[ 4.100591] CPU: 0 PID: 185 Comm: init Not tainted 6.8.0-102-generic #102-Ubuntu
[ 4.101297] Hardware name: QEMU KVM Virtual Machine, BIOS 2025.02-8~22.04.0~ppa3 05/14/2025
[ 4.102096] pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 4.102738] pc : xhci_find_slot_id_by_port+0x80/0x150
[ 4.103224] lr : handle_port_status.isra.0+0xa8/0x9c0
[ 4.103692] sp : ffff800080003d80
[ 4.104020] x29: ffff800080003d80 x28: ffff0000c7d88000 x27: 0000000000000001
[ 4.104683] x26: 0000000000000001 x25: 0000000000000000 x24: ffff0000c7b6d3c0
[ 4.105743] x23: 0000000000000001 x22: ffff0000c4116800 x21: 0000000000000001
[ 4.106832] x20: ffff0000c86ec000 x19: 0000000000000001 x18: ffff800080005060
[ 4.107892] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 4.108945] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 4.109983] x11: ffff0000c6ea7908 x10: 0000000000000000 x9 : ffffcafdb9b9e4a0
[ 4.111016] x8 : ffff8000806d3d18 x7 : 0000000000000000 x6 : 0000000000000000
[ 4.112044] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000008801
[ 4.113071] x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
[ 4.114095] Call trace:
[ 4.114666] xhci_find_slot_id_by_port+0x80/0x150
[ 4.115454] handle_port_status.isra.0+0xa8/0x9c0
[ 4.116276] xhci_handle_event+0x1d8/0x2b8
[ 4.117045] xhci_irq+0xe8/0x588
[ 4.117693] xhci_msi_irq+0x20/0x48
[ 4.118358] __handle_irq_event_percpu+0x68/0x2c0
[ 4.119149] handle_irq_event+0x58/0xe8
[ 4.119904] handle_fasteoi_irq+0xb0/0x218
[ 4.120633] handle_irq_desc+0x58/0x98
[ 4.121459] generic_handle_domain_irq+0x28/0x50
[ 4.122278] __gic_handle_irq_from_irqson.isra.0+0x180/0x310
[ 4.123155] gic_handle_irq+0x2c/0xa0
[ 4.123831] call_on_irq_stack+0x48/0x68
[ 4.124523] do_interrupt_handler+0xb0/0xc0
[ 4.125308] el1_interrupt+0x48/0xf0
[ 4.125999] el1h_64_irq_handler+0x1c/0x40
[ 4.126694] el1h_64_irq+0x7c/0x80
[ 4.127346] percpu_counter_add_batch+0x7c/0x170
[ 4.128118] set_pte_range+0x100/0x2c8
[ 4.128846] filemap_map_pages+0x198/0x5e8
[ 4.129534] do_read_fault+0x150/0x2f0
[ 4.130196] do_pte_missing+0x208/0x3f8
[ 4.130874] handle_pte_fault+0x12c/0x1a0
[ 4.131549] __handle_mm_fault+0x24c/0x400
[ 4.132250] handle_mm_fault+0xac/0x2e0
[ 4.132919] do_page_fault+0x104/0x538
[ 4.133568] do_translation_fault+0x7c/0xd8
[ 4.134312] do_mem_abort+0x50/0xd0
[ 4.134952] el0_da+0x4c/0x178
[ 4.135526] el0t_64_sync_handler+0xdc/0x158
[ 4.136236] el0t_64_sync+0x1b0/0x1b8
[ 4.136911] Code: b4fffe76 f10402bf 54000542 b9401ec4 (b940a323)
[ 4.137740] ---[ end trace 0000000000000000 ]---
[ 4.138432] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[ 4.139334] SMP: stopping secondary CPUs
[ 4.140021] Kernel Offset: 0x4afd38a10000 from 0xffff800080000000
[ 4.140857] PHYS_OFFSET: 0x40000000
[ 4.141438] CPU features: 0x1,00000021,7002014a,2141720b
[ 4.142251] Memory Limit: none
[ 4.142788] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2141314/+subscriptions

Комментариев нет:

Отправить комментарий