Using Ubuntu 22.04's LWE (linux-generic-hwe-22.04) package, it recently
was updated from 6.3.0 -> 6.5.0 and am now getting very odd output in my
dmesg. It is very similar to what was seen in #2039384 but it was closed
as a duplicate for this particular bug.

I'm not using mainline @juergh, so I suspect (given the use of hwe) that
this will eventually make it into 24.04's development.

[    3.133061] mpt2sas_cm0: hba_port entry: 0000000060104c9a, port: 255 is 
added to hba_port list
[    3.133694] 
================================================================================
[    3.134084] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6810:36
[    3.134823] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'
[    3.135201] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    3.135578] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    3.135968] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    3.136380] Call Trace:
[    3.136769]  <TASK>
[    3.137139]  dump_stack_lvl+0x48/0x70
[    3.137512]  dump_stack+0x10/0x20
[    3.137875]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    3.138244]  _scsih_sas_host_add+0x669/0x700 [mpt3sas]
[    3.138620]  _mpt3sas_fw_work+0x753/0xbc0 [mpt3sas]
[    3.138989]  ? srso_alias_return_thunk+0x5/0x7f
[    3.139332]  ? raw_spin_rq_unlock+0x10/0x40
[    3.139681]  ? srso_alias_return_thunk+0x5/0x7f
[    3.140024]  ? finish_task_switch.isra.0+0x85/0x2a0
[    3.140364]  ? srso_alias_return_thunk+0x5/0x7f
[    3.140701]  ? __schedule+0x2d4/0x750
[    3.141035]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    3.141375]  process_one_work+0x240/0x450
[    3.141705]  worker_thread+0x50/0x3f0
[    3.142033]  ? __pfx_worker_thread+0x10/0x10
[    3.142370]  kthread+0xf2/0x120
[    3.142696]  ? __pfx_kthread+0x10/0x10
[    3.143016]  ret_from_fork+0x47/0x70
[    3.143332]  ? __pfx_kthread+0x10/0x10
[    3.143647]  ret_from_fork_asm+0x1b/0x30
[    3.143960]  </TASK>
[    3.144265] 
================================================================================
[    3.146001] mpt2sas_cm0: host_add: handle(0x0001), 
sas_addr(0x51866da07302e300), phys(8)
[    3.146590] 
================================================================================
[    3.146933] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6598:38
[    3.147648] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'
[    3.148013] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    3.148385] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    3.148753] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    3.149122] Call Trace:
[    3.149470]  <TASK>
[    3.149803]  dump_stack_lvl+0x48/0x70
[    3.150133]  dump_stack+0x10/0x20
[    3.150449]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    3.150767]  _scsih_sas_host_refresh+0x51f/0x590 [mpt3sas]
[    3.151100]  _scsih_sas_topology_change_event.isra.0+0x251/0x690 [mpt3sas]
[    3.151442]  ? _mpt3sas_fw_work+0x538/0xbc0 [mpt3sas]
[    3.151784]  ? srso_alias_return_thunk+0x5/0x7f
[    3.152120]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    3.152462]  ? srso_alias_return_thunk+0x5/0x7f
[    3.152797]  ? raw_spin_rq_unlock+0x10/0x40
[    3.153130]  ? srso_alias_return_thunk+0x5/0x7f
[    3.153463]  ? finish_task_switch.isra.0+0x85/0x2a0
[    3.153798]  ? srso_alias_return_thunk+0x5/0x7f
[    3.154132]  ? __schedule+0x2d4/0x750
[    3.154464]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    3.154807]  process_one_work+0x240/0x450
[    3.155141]  worker_thread+0x50/0x3f0
[    3.155474]  ? __pfx_worker_thread+0x10/0x10
[    3.155809]  kthread+0xf2/0x120
[    3.156141]  ? __pfx_kthread+0x10/0x10
[    3.156475]  ret_from_fork+0x47/0x70
[    3.156808]  ? __pfx_kthread+0x10/0x10
[    3.157140]  ret_from_fork_asm+0x1b/0x30
[    3.157476]  </TASK>
[    3.157807] 
================================================================================
[    3.158159] 
================================================================================
[    3.158496] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6602:36
[    3.159161] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'
[    3.159496] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    3.159834] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    3.160173] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    3.160514] Call Trace:
[    3.160834]  <TASK>
[    3.161141]  dump_stack_lvl+0x48/0x70
[    3.161447]  dump_stack+0x10/0x20
[    3.161752]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    3.162065]  _scsih_sas_host_refresh+0x4e7/0x590 [mpt3sas]
[    3.162391]  _scsih_sas_topology_change_event.isra.0+0x251/0x690 [mpt3sas]
[    3.162721]  ? _mpt3sas_fw_work+0x538/0xbc0 [mpt3sas]
[    3.163048]  ? srso_alias_return_thunk+0x5/0x7f
[    3.163367]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    3.163686]  ? srso_alias_return_thunk+0x5/0x7f
[    3.163998]  ? raw_spin_rq_unlock+0x10/0x40
[    3.164307]  ? srso_alias_return_thunk+0x5/0x7f
[    3.164614]  ? finish_task_switch.isra.0+0x85/0x2a0
[    3.164923]  ? srso_alias_return_thunk+0x5/0x7f
[    3.165231]  ? __schedule+0x2d4/0x750
[    3.165540]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    3.165859]  process_one_work+0x240/0x450
[    3.166172]  worker_thread+0x50/0x3f0
[    3.166482]  ? __pfx_worker_thread+0x10/0x10
[    3.166792]  kthread+0xf2/0x120
[    3.167100]  ? __pfx_kthread+0x10/0x10
[    3.167409]  ret_from_fork+0x47/0x70
[    3.167716]  ? __pfx_kthread+0x10/0x10
[    3.168022]  ret_from_fork_asm+0x1b/0x30
[    3.168330]  </TASK>
[    3.168636] 
================================================================================
[    3.168962] 
================================================================================
[    3.169282] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6619:7
[    3.169931] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'
[    3.170263] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    3.170599] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    3.170936] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    3.171274] Call Trace:
[    3.171592]  <TASK>
[    3.171904]  dump_stack_lvl+0x48/0x70
[    3.172208]  dump_stack+0x10/0x20
[    3.172512]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    3.172824]  _scsih_sas_host_refresh+0x503/0x590 [mpt3sas]
[    3.173147]  _scsih_sas_topology_change_event.isra.0+0x251/0x690 [mpt3sas]
[    3.173480]  ? _mpt3sas_fw_work+0x538/0xbc0 [mpt3sas]
[    3.173808]  ? srso_alias_return_thunk+0x5/0x7f
[    3.174127]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    3.174448]  ? srso_alias_return_thunk+0x5/0x7f
[    3.174763]  ? raw_spin_rq_unlock+0x10/0x40
[    3.175079]  ? srso_alias_return_thunk+0x5/0x7f
[    3.175391]  ? finish_task_switch.isra.0+0x85/0x2a0
[    3.175704]  ? srso_alias_return_thunk+0x5/0x7f
[    3.176017]  ? __schedule+0x2d4/0x750
[    3.176329]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    3.176650]  process_one_work+0x240/0x450
[    3.176964]  worker_thread+0x50/0x3f0
[    3.177279]  ? __pfx_worker_thread+0x10/0x10
[    3.177591]  kthread+0xf2/0x120
[    3.177900]  ? __pfx_kthread+0x10/0x10
[    3.178211]  ret_from_fork+0x47/0x70
[    3.178518]  ? __pfx_kthread+0x10/0x10
[    3.178826]  ret_from_fork_asm+0x1b/0x30
[    3.179136]  </TASK>
[    3.179445] 
================================================================================
[    3.179775] 
================================================================================
[    3.180098] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6666:21
[    3.180751] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'
[    3.181084] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    3.181422] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    3.181760] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    3.182100] Call Trace:
[    3.182419]  <TASK>
[    3.182724]  dump_stack_lvl+0x48/0x70
[    3.183033]  dump_stack+0x10/0x20
[    3.183338]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    3.183655]  _scsih_sas_host_refresh+0x53b/0x590 [mpt3sas]
[    3.183979]  _scsih_sas_topology_change_event.isra.0+0x251/0x690 [mpt3sas]
[    3.184306]  ? _mpt3sas_fw_work+0x538/0xbc0 [mpt3sas]
[    3.184633]  ? srso_alias_return_thunk+0x5/0x7f
[    3.184950]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    3.185269]  ? srso_alias_return_thunk+0x5/0x7f
[    3.185582]  ? raw_spin_rq_unlock+0x10/0x40
[    3.185895]  ? srso_alias_return_thunk+0x5/0x7f
[    3.186204]  ? finish_task_switch.isra.0+0x85/0x2a0
[    3.186515]  ? srso_alias_return_thunk+0x5/0x7f
[    3.186826]  ? __schedule+0x2d4/0x750
[    3.187134]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    3.187454]  process_one_work+0x240/0x450
[    3.187768]  worker_thread+0x50/0x3f0
[    3.188077]  ? __pfx_worker_thread+0x10/0x10
[    3.188388]  kthread+0xf2/0x120
[    3.188696]  ? __pfx_kthread+0x10/0x10
[    3.189004]  ret_from_fork+0x47/0x70
[    3.189312]  ? __pfx_kthread+0x10/0x10
[    3.189618]  ret_from_fork_asm+0x1b/0x30
[    3.189927]  </TASK>
[    3.190232] 
================================================================================
[    3.190877] mpt2sas_cm0: handle(0x9) sas_address(0x4433221104000000) 
port_type(0x1)
[    3.636784] scsi 7:0:0:0: Direct-Access     ATA      ST4000DM004-2CV1 0001 
PQ: 0 ANSI: 6
[    3.637174] scsi 7:0:0:0: SATA: handle(0x0009), 
sas_addr(0x4433221104000000), phy(4), device_name(0x0000000000000000)
[    3.637939] scsi 7:0:0:0: enclosure logical id (0x51866da07302e300), slot(7)
[    3.638417] scsi 7:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), 
fua(y), sw_preserve(y)
[    3.638800] scsi 7:0:0:0: qdepth(32), tagged(1), scsi_level(7), cmd_que(1)
[    3.669652] scsi 7:0:0:0: Power-on or device reset occurred
[    3.670128]  end_device-7:0: add: handle(0x0009), 
sas_addr(0x4433221104000000)
[    3.671201] mpt2sas_cm0: handle(0xa) sas_address(0x4433221105000000) 
port_type(0x1)
[    3.886726] scsi 7:0:1:0: Direct-Access     ATA      ST4000DM004-2CV1 0001 
PQ: 0 ANSI: 6
[    3.887121] scsi 7:0:1:0: SATA: handle(0x000a), 
sas_addr(0x4433221105000000), phy(5), device_name(0x0000000000000000)
[    3.887931] scsi 7:0:1:0: enclosure logical id (0x51866da07302e300), slot(6)
[    3.888441] scsi 7:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), 
fua(y), sw_preserve(y)
[    3.888851] scsi 7:0:1:0: qdepth(32), tagged(1), scsi_level(7), cmd_que(1)
[    3.919644] scsi 7:0:1:0: Power-on or device reset occurred
[    3.920158]  end_device-7:1: add: handle(0x000a), 
sas_addr(0x4433221105000000)
[    3.921292] mpt2sas_cm0: handle(0xb) sas_address(0x4433221106000000) 
port_type(0x1)
[    4.132643] 
================================================================================
[    4.133084] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:4667:12
[    4.133985] index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY 
[1]'
[    4.134434] CPU: 15 PID: 0 Comm: swapper/15 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    4.134906] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    4.135379] Call Trace:
[    4.135850]  <IRQ>
[    4.136314]  dump_stack_lvl+0x48/0x70
[    4.136789]  dump_stack+0x10/0x20
[    4.137254]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    4.137729]  _scsih_check_topo_delete_events+0x2dc/0x350 [mpt3sas]
[    4.138222]  mpt3sas_scsih_event_callback+0x21f/0x630 [mpt3sas]
[    4.138720]  _base_async_event.isra.0+0x73/0x190 [mpt3sas]
[    4.139194]  _base_process_reply_queue+0x3a0/0x720 [mpt3sas]
[    4.139658]  _base_interrupt+0x4e/0x70 [mpt3sas]
[    4.140120]  __handle_irq_event_percpu+0x4f/0x1c0
[    4.140568]  handle_irq_event+0x39/0x80
[    4.141006]  handle_edge_irq+0x8c/0x250
[    4.141435]  __common_interrupt+0x56/0x110
[    4.141858]  common_interrupt+0x9f/0xb0
[    4.142266]  </IRQ>
[    4.142663]  <TASK>
[    4.143049]  asm_common_interrupt+0x27/0x40
[    4.143437] RIP: 0010:pv_native_safe_halt+0xb/0x10
[    4.143824] Code: 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 
90 90 90 90 90 90 90 90 90 90 90 90 eb 07 0f 00 2d d9 1f 2f 00 fb f4 <e9> 30 9b 
01 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55
[    4.144995] RSP: 0018:ffffab2180157db0 EFLAGS: 00000246
[    4.145384] RAX: 0000000000004000 RBX: ffff911a4162ac64 RCX: 0000000000000000
[    4.145769] RDX: 0000000000000001 RSI: ffff911a4162ac00 RDI: 0000000000000001
[    4.146142] RBP: ffffab2180157db8 R08: 0000000000000000 R09: 0000000000000000
[    4.146511] R10: 0000000000000000 R11: 0000000000000000 R12: ffff911a4162ac64
[    4.146874] R13: 000000000000000f R14: ffffffffb14e52e0 R15: ffff91293e5c0000
[    4.147237]  ? acpi_safe_halt+0x19/0x60
[    4.147595]  acpi_idle_do_entry+0x40/0x80
[    4.147946]  acpi_idle_enter+0xb6/0x180
[    4.148287]  cpuidle_enter_state+0x91/0x720
[    4.148615]  cpuidle_enter+0x2e/0x50
[    4.148929]  call_cpuidle+0x23/0x60
[    4.149234]  cpuidle_idle_call+0x11d/0x190
[    4.149529]  do_idle+0x82/0xf0
[    4.149815]  cpu_startup_entry+0x1d/0x20
[    4.150093]  start_secondary+0x129/0x160
[    4.150375]  secondary_startup_64_no_verify+0x17e/0x18b
[    4.150665]  </TASK>
[    4.150948] 
================================================================================
[    4.151249] 
================================================================================
[    4.151542] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:4023:12
[    4.152137] index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY 
[1]'
[    4.152447] CPU: 15 PID: 0 Comm: swapper/15 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    4.152768] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    4.153096] Call Trace:
[    4.153414]  <IRQ>
[    4.153731]  dump_stack_lvl+0x48/0x70
[    4.154052]  dump_stack+0x10/0x20
[    4.154370]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    4.154696]  _scsih_check_topo_delete_events+0x318/0x350 [mpt3sas]
[    4.155039]  mpt3sas_scsih_event_callback+0x21f/0x630 [mpt3sas]
[    4.155386]  _base_async_event.isra.0+0x73/0x190 [mpt3sas]
[    4.155732]  _base_process_reply_queue+0x3a0/0x720 [mpt3sas]
[    4.156072]  _base_interrupt+0x4e/0x70 [mpt3sas]
[    4.156399]  __handle_irq_event_percpu+0x4f/0x1c0
[    4.156712]  handle_irq_event+0x39/0x80
[    4.157020]  handle_edge_irq+0x8c/0x250
[    4.157321]  __common_interrupt+0x56/0x110
[    4.157625]  common_interrupt+0x9f/0xb0
[    4.157928]  </IRQ>
[    4.158223]  <TASK>
[    4.158514]  asm_common_interrupt+0x27/0x40
[    4.158805] RIP: 0010:pv_native_safe_halt+0xb/0x10
[    4.159101] Code: 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 
90 90 90 90 90 90 90 90 90 90 90 90 eb 07 0f 00 2d d9 1f 2f 00 fb f4 <e9> 30 9b 
01 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55
[    4.160051] RSP: 0018:ffffab2180157db0 EFLAGS: 00000246
[    4.160383] RAX: 0000000000004000 RBX: ffff911a4162ac64 RCX: 0000000000000000
[    4.160724] RDX: 0000000000000001 RSI: ffff911a4162ac00 RDI: 0000000000000001
[    4.161062] RBP: ffffab2180157db8 R08: 0000000000000000 R09: 0000000000000000
[    4.161403] R10: 0000000000000000 R11: 0000000000000000 R12: ffff911a4162ac64
[    4.161745] R13: 000000000000000f R14: ffffffffb14e52e0 R15: ffff91293e5c0000
[    4.162089]  ? acpi_safe_halt+0x19/0x60
[    4.162428]  acpi_idle_do_entry+0x40/0x80
[    4.162762]  acpi_idle_enter+0xb6/0x180
[    4.163099]  cpuidle_enter_state+0x91/0x720
[    4.163425]  cpuidle_enter+0x2e/0x50
[    4.163736]  call_cpuidle+0x23/0x60
[    4.164035]  cpuidle_idle_call+0x11d/0x190
[    4.164328]  do_idle+0x82/0xf0
[    4.164611]  cpu_startup_entry+0x1d/0x20
[    4.164887]  start_secondary+0x129/0x160
[    4.165165]  secondary_startup_64_no_verify+0x17e/0x18b
[    4.165452]  </TASK>
[    4.165732] 
================================================================================
[    4.167435] scsi 7:0:2:0: Direct-Access     ATA      ST4000VN006-3CW1 SC60 
PQ: 0 ANSI: 6
[    4.167754] scsi 7:0:2:0: SATA: handle(0x000b), 
sas_addr(0x4433221106000000), phy(6), device_name(0x0000000000000000)
[    4.168480] scsi 7:0:2:0: enclosure logical id (0x51866da07302e300), slot(5)
[    4.168965] scsi 7:0:2:0: atapi(n), ncq(y), asyn_notify(n), smart(y), 
fua(y), sw_preserve(y)
[    4.169302] scsi 7:0:2:0: qdepth(32), tagged(1), scsi_level(7), cmd_que(1)
[    4.190992] scsi 7:0:2:0: Power-on or device reset occurred
[    4.191504]  end_device-7:2: add: handle(0x000b), 
sas_addr(0x4433221106000000)
[    4.192586] mpt2sas_cm0: handle(0xc) sas_address(0x4433221107000000) 
port_type(0x1)
[    4.385548] scsi 7:0:3:0: Direct-Access     ATA      ST4000VN006-3CW1 SC60 
PQ: 0 ANSI: 6
[    4.385949] scsi 7:0:3:0: SATA: handle(0x000c), 
sas_addr(0x4433221107000000), phy(7), device_name(0x0000000000000000)
[    4.386827] scsi 7:0:3:0: enclosure logical id (0x51866da07302e300), slot(4)
[    4.387358] scsi 7:0:3:0: atapi(n), ncq(y), asyn_notify(n), smart(y), 
fua(y), sw_preserve(y)
[    4.387764] scsi 7:0:3:0: qdepth(32), tagged(1), scsi_level(7), cmd_que(1)
[    4.409521] scsi 7:0:3:0: Power-on or device reset occurred
[    4.410068]  end_device-7:3: add: handle(0x000c), 
sas_addr(0x4433221107000000)
[    4.410895] 
================================================================================
[    4.411290] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7649:32
[    4.412085] index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY 
[1]'
[    4.412501] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    4.412924] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    4.413355] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    4.413795] Call Trace:
[    4.414223]  <TASK>
[    4.414652]  dump_stack_lvl+0x48/0x70
[    4.415086]  dump_stack+0x10/0x20
[    4.415519]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    4.415957]  _scsih_sas_topology_change_event.isra.0+0x5ac/0x690 [mpt3sas]
[    4.416411]  ? _mpt3sas_fw_work+0x538/0xbc0 [mpt3sas]
[    4.416869]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    4.417327]  ? srso_alias_return_thunk+0x5/0x7f
[    4.417781]  ? __schedule+0x2d4/0x750
[    4.418228]  ? finish_task_switch.isra.0+0x85/0x2a0
[    4.418677]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    4.419125]  process_one_work+0x240/0x450
[    4.419559]  worker_thread+0x50/0x3f0
[    4.419983]  ? __pfx_worker_thread+0x10/0x10
[    4.420397]  kthread+0xf2/0x120
[    4.420800]  ? __pfx_kthread+0x10/0x10
[    4.421197]  ret_from_fork+0x47/0x70
[    4.421586]  ? __pfx_kthread+0x10/0x10
[    4.421970]  ret_from_fork_asm+0x1b/0x30
[    4.422349]  </TASK>
[    4.422715] 
================================================================================
[    4.423094] 
================================================================================
[    4.423460] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7651:23
[    4.424185] index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY 
[1]'
[    4.424556] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    4.424933] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    4.425315] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    4.425705] Call Trace:
[    4.426072]  <TASK>
[    4.426426]  dump_stack_lvl+0x48/0x70
[    4.426770]  dump_stack+0x10/0x20
[    4.427102]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    4.427434]  _scsih_sas_topology_change_event.isra.0+0x587/0x690 [mpt3sas]
[    4.427771]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    4.428101]  ? srso_alias_return_thunk+0x5/0x7f
[    4.428418]  ? __schedule+0x2d4/0x750
[    4.428735]  ? finish_task_switch.isra.0+0x85/0x2a0
[    4.429060]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    4.429394]  process_one_work+0x240/0x450
[    4.429720]  worker_thread+0x50/0x3f0
[    4.430040]  ? __pfx_worker_thread+0x10/0x10
[    4.430355]  kthread+0xf2/0x120
[    4.430666]  ? __pfx_kthread+0x10/0x10
[    4.430976]  ret_from_fork+0x47/0x70
[    4.431285]  ? __pfx_kthread+0x10/0x10
[    4.431591]  ret_from_fork_asm+0x1b/0x30
[    4.431897]  </TASK>
[    4.432195] 
================================================================================
[    4.432518] 
================================================================================
[    4.432835] UBSAN: array-index-out-of-bounds in 
/build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7655:12
[    4.433485] index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY 
[1]'
[    4.433828] CPU: 9 PID: 112 Comm: kworker/u64:1 Not tainted 6.5.0-14-generic 
#14~22.04.1-Ubuntu
[    4.434186] Hardware name: To Be Filled By O.E.M. X570M Pro4/X570M Pro4, 
BIOS P5.50 10/17/2023
[    4.434552] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
[    4.434930] Call Trace:
[    4.435288]  <TASK>
[    4.435644]  dump_stack_lvl+0x48/0x70
[    4.435995]  dump_stack+0x10/0x20
[    4.436333]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    4.436669]  _scsih_sas_topology_change_event.isra.0+0x630/0x690 [mpt3sas]
[    4.437011]  _mpt3sas_fw_work+0x80d/0xbc0 [mpt3sas]
[    4.437344]  ? srso_alias_return_thunk+0x5/0x7f
[    4.437663]  ? __schedule+0x2d4/0x750
[    4.437975]  ? finish_task_switch.isra.0+0x85/0x2a0
[    4.438295]  _firmware_event_work+0x16/0x20 [mpt3sas]
[    4.438623]  process_one_work+0x240/0x450
[    4.438947]  worker_thread+0x50/0x3f0
[    4.439267]  ? __pfx_worker_thread+0x10/0x10
[    4.439586]  kthread+0xf2/0x120
[    4.439895]  ? __pfx_kthread+0x10/0x10
[    4.440204]  ret_from_fork+0x47/0x70
[    4.440510]  ? __pfx_kthread+0x10/0x10
[    4.440818]  ret_from_fork_asm+0x1b/0x30
[    4.441123]  </TASK>
[    4.441420] 
================================================================================
[    9.276419] mpt2sas_cm0: port enable: SUCCESS

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2028830

Title:
  [mpt3sas, UBSAN] ]linux 6.5-rc give error messages at boot

Status in linux package in Ubuntu:
  Won't Fix

Bug description:
  Ubuntu release:

  sune@jekaterina:~/src/deb$ lsb_release -rd
  No LSB modules are available.
  Description:  Ubuntu 23.04
  Release:      23.04
  sune@jekaterina:~/src/deb$

  Package:

  linux-image-
  unsigned-6.5.0-060500rc1-generic_6.5.0-060500rc1.202307232333_amd64.deb
  from https://kernel.ubuntu.com/~kernel-ppa/mainline (rc2 and rc3 also
  affected)

  Expectation: System boots normally

  Actual results: See below

  On the request of Koba Ko on the kernel-t...@lists.ubuntu.com mailing
  list, I hereby submit the following:

  Do note that two "types" are mentioned, and that I am willing the
  assist in testing, as, obviously, I have a system with a controller
  covered by the mpt3sas driver.

  This is output from attempted boot of 6.5-rc3 from kernel-ppa, but it
  is similar to rcs 1 and 2:

  UBSAN: array-index-out-of-bounds in 
/home/kerne1/COD/linux/drivers/scsi/npt3sas/mpt3sas_scsih.c:4667:12
  index 1 is out of range for type ’MPI12_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  UBSAN: array-index—out-of-bounds in 
/home/kerne1/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih-c:4023:12
  index 1 is out of range for type 'MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  UBSAN: array-index—out-of-bounds in 
/home/kernel/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih_c:6810:36
  index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'

  UBSAN: array-index—out—of-bounds in 
/home/kerne1/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih_c:6598:38
  index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'

  UBSAN: array-index—out—of-bounds in 
/home/kerne1/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih_c:6602:36
  index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'

  UBSAN: array-index—out—of—bounds in 
/home/kernel/COD/linux-drivers/scsi/mpt3sas/mpt3sas_scsih.c:6619:7
  index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA [1]'

  UBSAN: array-index—out—of—bounds in 
/home/kernel/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6666:21
  index 1 is out of range for type ’MPI2_SAS_IO_UNIT0_PHY_DATA [1]'

  UBSAN: array-index—out—of—bounds in 
/home/kernel/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7649:32
  index 1 is out of range for type ’MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  UBSAN: array-index-out-of—bounds in 
/home/kernel/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7651:23
  index 1 is out of range for type ’MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  UBSAN: array-index-out-of-bounds in 
/home/kernel/COD/linux/drivers/scsi/mpt3sas/mpt3sas_scsih.c:7655:12
  index 1 is out of range for type ’MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  [EDIT] the next error, repeating for ~1½ hours before finishing boot,
  was unrelated to mpt2sas and UBSAN.

  That error was "Timed out for waiting the udey queue being empty."

  Bug subject altered to reflect this.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to