apport information

** Attachment added: "Card0.Codecs.codec.0.txt"
   
https://bugs.launchpad.net/bugs/2039384/+attachment/5709622/+files/Card0.Codecs.codec.0.txt

-- 
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/2039384

Title:
  UBSAN: array-index-out-of-bounds in
  /build/linux-D15vQj/linux-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:4667:12

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Something is broken in mpt3sas_scsi subsystem, and it seems it affects other 
storage related systems too
  eg Bug #1970074. 

  excerpt from dmesg:

  [    1.053769] mpt2sas_cm0: sending port enable !!
  [    1.054273] 
================================================================================
  [    1.054505] UBSAN: array-index-out-of-bounds in 
/build/linux-D15vQj/linux-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:4667:12
  [    1.054962] index 1 is out of range for type 
'MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'
  [    1.055048] mpt2sas_cm0: hba_port entry: 00000000ad6fd214, port: 255 is 
added to hba_port list
  [    1.055193] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-9-generic 
#9-Ubuntu
  [    1.055597] 
================================================================================
  [    1.055667] Hardware name: To Be Filled By O.E.M. To Be Filled By 
O.E.M./B360M-ITX, BIOS P4.30 07/21/2020
  [    1.055907] UBSAN: array-index-out-of-bounds in 
/build/linux-D15vQj/linux-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:6810:36
  [    1.056390] Call Trace:
  [    1.056901] index 1 is out of range for type 'MPI2_SAS_IO_UNIT0_PHY_DATA 
[1]'
  [    1.057199]  <IRQ>
  [    1.057201]  dump_stack_lvl+0x48/0x70
  [    1.058006]  dump_stack+0x10/0x20
  [    1.058271]  __ubsan_handle_out_of_bounds+0xc6/0x110
  [    1.058535]  _scsih_check_topo_delete_events+0x2dc/0x350 [mpt3sas]
  [    1.058818]  mpt3sas_scsih_event_callback+0x180/0x630 [mpt3sas]
  [    1.059099]  _base_async_event.isra.0+0x73/0x190 [mpt3sas]
  [    1.059376]  _base_process_reply_queue+0x3b3/0x720 [mpt3sas]
  [    1.059646]  _base_interrupt+0x4e/0x70 [mpt3sas]
  [    1.059910]  __handle_irq_event_percpu+0x4c/0x1b0
  [    1.060158]  handle_irq_event+0x39/0x80
  [    1.060399]  handle_edge_irq+0x8c/0x250
  [    1.060633]  __common_interrupt+0x53/0x110
  [    1.060864]  common_interrupt+0x9f/0xb0
  [    1.061122]  </IRQ>
  [    1.061338]  <TASK>
  [    1.061550]  asm_common_interrupt+0x27/0x40
  [    1.061763] RIP: 0010:cpuidle_enter_state+0xda/0x730
  [    1.061975] Code: 11 04 ff e8 a8 f5 ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 
31 ff e8 26 bb 02 ff 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 
0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
  [    1.062629] RSP: 0018:ffffffff96603db8 EFLAGS: 00000246
  [    1.062855] RAX: 0000000000000000 RBX: ffffcc1c7fc00100 RCX: 
0000000000000000
  [    1.063084] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 
0000000000000000
  [    1.063308] RBP: ffffffff96603e08 R08: 0000000000000000 R09: 
0000000000000000
  [    1.063528] R10: 0000000000000000 R11: 0000000000000000 R12: 
ffffffff968d24a0
  [    1.063743] R13: 0000000000000006 R14: 0000000000000006 R15: 
000000003ed6dc01
  [    1.063956]  ? cpuidle_enter_state+0xca/0x730
  [    1.064164]  ? finish_task_switch.isra.0+0x89/0x2b0
  [    1.064371]  cpuidle_enter+0x2e/0x50
  [    1.064573]  call_cpuidle+0x23/0x60
  [    1.064769]  cpuidle_idle_call+0x11d/0x190
  [    1.064978]  do_idle+0x82/0xf0
  [    1.065205]  cpu_startup_entry+0x1d/0x20
  [    1.065382]  rest_init+0xde/0x100
  [    1.065559]  ? acpi_enable_subsystem+0xe6/0x2a0
  [    1.065736]  ? static_key_disable+0x1f/0x30
  [    1.065908]  arch_call_rest_init+0xe/0x30
  [    1.066081]  start_kernel+0x34f/0x440
  [    1.066253]  x86_64_start_reservations+0x18/0x30
  [    1.066426]  x86_64_start_kernel+0xbf/0x110
  [    1.066595]  secondary_startup_64_no_verify+0x17e/0x18b
  [    1.066767]  </TASK>
  [    1.066932] 
================================================================================
  [    1.066932] CPU: 4 PID: 10 Comm: kworker/u12:0 Not tainted 6.5.0-9-generic 
#9-Ubuntu
  [    1.067105] 
================================================================================
  [    1.067280] Hardware name: To Be Filled By O.E.M. To Be Filled By 
O.E.M./B360M-ITX, BIOS P4.30 07/21/2020
  [    1.067459] UBSAN: array-index-out-of-bounds in 
/build/linux-D15vQj/linux-6.5.0/drivers/scsi/mpt3sas/mpt3sas_scsih.c:4670:32
  [    1.067826] Workqueue: fw_event_mpt2sas0 _firmware_event_work [mpt3sas]
  [    1.068219] index 3 is out of range for type 
'MPI2_EVENT_SAS_TOPO_PHY_ENTRY [1]'

  [    1.068220] Call Trace:
  [    1.069085]  <TASK>
  [    1.069283]  dump_stack_lvl+0x48/0x70
  [    1.069481]  dump_stack+0x10/0x20
  [    1.069665]  __ubsan_handle_out_of_bounds+0xc6/0x110
  [    1.069849]  _scsih_sas_host_add+0x66e/0x700 [mpt3sas]
  [    1.070047]  _mpt3sas_fw_work+0x69f/0xbb0 [mpt3sas]
  [    1.070243]  ? finish_task_switch.isra.0+0x89/0x2b0
  [    1.070428]  ? __schedule+0x2d4/0x770
  [    1.070609]  _firmware_event_work+0x16/0x20 [mpt3sas]
  [    1.070804]  process_one_work+0x220/0x440
  [    1.070984]  worker_thread+0x4d/0x3f0
  [    1.071162]  ? __pfx_worker_thread+0x10/0x10
  [    1.071340]  kthread+0xef/0x120
  [    1.071518]  ? __pfx_kthread+0x10/0x10
  [    1.071696]  ret_from_fork+0x44/0x70
  [    1.071874]  ? __pfx_kthread+0x10/0x10
  [    1.072053]  ret_from_fork_asm+0x1b/0x30
  [    1.072231]  </TASK>
  [    1.072406] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-9-generic 
#9-Ubuntu
  [    1.072407] 
================================================================================
  [    1.072780] Hardware name: To Be Filled By O.E.M. To Be Filled By 
O.E.M./B360M-ITX, BIOS P4.30 07/21/2020
  [    1.073200] Call Trace:
  [    1.073394]  <IRQ>
  [    1.073585]  dump_stack_lvl+0x48/0x70
  [    1.073778]  dump_stack+0x10/0x20
  [    1.073951] mpt2sas_cm0: host_add: handle(0x0001), 
sas_addr(0x500605b006eeb390), phys(8)
  [    1.073965]  __ubsan_handle_out_of_bounds+0xc6/0x110
  [    1.074345]  _scsih_check_topo_delete_events+0x2f0/0x350 [mpt3sas]
  [    1.074550]  mpt3sas_scsih_event_callback+0x180/0x630 [mpt3sas]
  [    1.074747]  _base_async_event.isra.0+0x73/0x190 [mpt3sas]
  [    1.074939]  _base_process_reply_queue+0x3b3/0x720 [mpt3sas]
  [    1.075125]  _base_interrupt+0x4e/0x70 [mpt3sas]
  [    1.075308]  __handle_irq_event_percpu+0x4c/0x1b0
  [    1.075475]  handle_irq_event+0x39/0x80
  [    1.075638]  handle_edge_irq+0x8c/0x250
  [    1.075800]  __common_interrupt+0x53/0x110
  [    1.075965]  common_interrupt+0x9f/0xb0
  [    1.076129]  </IRQ>
  [    1.076291]  <TASK>
  [    1.076451]  asm_common_interrupt+0x27/0x40
  [    1.076613] RIP: 0010:cpuidle_enter_state+0xda/0x730
  [    1.076776] Code: 11 04 ff e8 a8 f5 ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 
31 ff e8 26 bb 02 ff 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 
0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
  [    1.077339] RSP: 0018:ffffffff96603db8 EFLAGS: 00000246
  [    1.077525] RAX: 0000000000000000 RBX: ffffcc1c7fc00100 RCX: 
0000000000000000
  [    1.077716] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 
0000000000000000
  [    1.077906] RBP: ffffffff96603e08 R08: 0000000000000000 R09: 
0000000000000000
  [    1.078096] R10: 0000000000000000 R11: 0000000000000000 R12: 
ffffffff968d24a0
  [    1.078286] R13: 0000000000000006 R14: 0000000000000006 R15: 
000000003ed6dc01
  [    1.078479]  ? cpuidle_enter_state+0xca/0x730
  [    1.078673]  ? finish_task_switch.isra.0+0x89/0x2b0
  [    1.078868]  cpuidle_enter+0x2e/0x50
  [    1.079063]  call_cpuidle+0x23/0x60
  [    1.079254]  cpuidle_idle_call+0x11d/0x190
  [    1.079442]  do_idle+0x82/0xf0
  [    1.079623]  cpu_startup_entry+0x1d/0x20
  [    1.079797]  rest_init+0xde/0x100
  [    1.079971]  ? acpi_enable_subsystem+0xe6/0x2a0
  [    1.080148]  ? static_key_disable+0x1f/0x30
  [    1.080327]  arch_call_rest_init+0xe/0x30
  [    1.080506]  start_kernel+0x34f/0x440
  [    1.080681]  x86_64_start_reservations+0x18/0x30
  [    1.080853]  x86_64_start_kernel+0xbf/0x110
  [    1.081057]  secondary_startup_64_no_verify+0x17e/0x18b
  [    1.081228]  </TASK>

  
  Ubuntu 6.5.0-9.9-generic 6.5.3

  lspci:

  00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host 
Bridge/DRAM Registers (rev 07)
  00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe 
Controller (x16) (rev 07)
  00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD 
Graphics 630]
  00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH 
Thermal Controller (rev 10)
  00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host 
Controller (rev 10)
  00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
  00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI 
Controller (rev 10)
  00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI 
Controller (rev 10)
  00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 
#21 (rev f0)
  00:1f.0 ISA bridge: Intel Corporation Device a308 (rev 10)
  00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
  00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
  00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI 
Controller (rev 10)
  00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V 
(rev 10)
  01:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS2308 PCI-Express 
Fusion-MPT SAS-2 (rev 05)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller PM9A1/PM9A3/980PRO

  
  full dmesg log attached. 

  Despite this, SAS controller seem to work fine but this is my doubt it is 
stable enough to not do any incidental data corruption.
  --- 
  ProblemType: Bug
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k6.5.0-9-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.27.0-0ubuntu5
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/hwC0D0', 
'/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', 
'/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  CasperMD5CheckResult: pass
  DistroRelease: Ubuntu 23.10
  InstallationDate: Installed on 2023-04-30 (168 days ago)
  InstallationMedia: Ubuntu-Server 23.04 "Lunar Lobster" - Release amd64 
(20230415)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 002 Device 002: ID 174c:1153 ASMedia Technology Inc. ASM1153 SATA 3Gb/s 
bridge
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Lsusb-t:
   /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
       |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
   /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
  MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
  NonfreeKernelModules: zfs
  Package: linux (not installed)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic 
root=UUID=5e075c0f-ad1f-4acd-95b2-c36121169249 ro mitigations=off audit=0
  ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
  RelatedPackageVersions:
   linux-restricted-modules-6.5.0-9-generic N/A
   linux-backports-modules-6.5.0-9-generic  N/A
   linux-firmware                           20230919.git3672ccab-0ubuntu2.1
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  Tags: mantic
  Uname: Linux 6.5.0-9-generic x86_64
  UpgradeStatus: Upgraded to mantic on 2023-10-15 (0 days ago)
  UserGroups: N/A
  _MarkForUpload: True
  dmi.bios.date: 07/21/2020
  dmi.bios.release: 5.13
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: P4.30
  dmi.board.name: B360M-ITX
  dmi.board.vendor: ASRock
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: To Be Filled By O.E.M.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrP4.30:bd07/21/2020:br5.13:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnB360M-ITX:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:skuToBeFilledByO.E.M.:
  dmi.product.family: To Be Filled By O.E.M.
  dmi.product.name: To Be Filled By O.E.M.
  dmi.product.sku: To Be Filled By O.E.M.
  dmi.product.version: To Be Filled By O.E.M.
  dmi.sys.vendor: To Be Filled By O.E.M.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039384/+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