Maybe we can figure out what's common between our systems since I
imagine if everyone were getting this error then this bug would be
getting more attention.

I'll also note this started for me with 5.15. 5.13 and earlier did not
exhibit this error. System seems to run fine though. No noticeable
degradation in performance or functionality.

Output of my inxi:

System:    Kernel: 5.15.0-33-generic x86_64 bits: 64 compiler: N/A Desktop: 
Cinnamon 5.2.7 Distro: Linux Mint 20.3 Una 
           base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: ASRock model: B550M-HDV serial: <filter> UEFI: 
American Megatrends LLC. v: P2.10 
           date: 02/24/2022 
CPU:       Topology: 12-Core model: AMD Ryzen 9 5900 bits: 64 type: MCP arch: 
Zen 3 rev: 2 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 
svm bogomips: 71865 
           Speed: 2233 MHz min/max: 2200/3000 MHz Core speeds (MHz): 1: 2233 2: 
2269 3: 2200 4: 2308 5: 2196 6: 2252 7: 2282 
           8: 2226 9: 2200 10: 2198 11: 2202 12: 2197 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] vendor: ASRock driver: 
amdgpu v: kernel bus ID: 08:00.0 
           Display: x11 server: X.Org 1.20.13 driver: amdgpu resolution: 
2560x1440_60.00~60Hz 
           OpenGL: renderer: AMD Radeon RX 6600 (navi23 LLVM 14.0.0 DRM 3.42 
5.15.0-33-generic) 
           v: 4.6 Mesa 22.2.0-devel (git-b62dd20 2022-06-03 focal-oibaf-ppa) 
direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: 
kernel bus ID: 08:00.1 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio 
vendor: ASRock driver: snd_hda_intel v: kernel 
           bus ID: 0a:00.4 
           Device-3: Logitech type: USB driver: snd-usb-audio,uvcvideo bus ID: 
1-3.4:6 
           Sound Server: ALSA v: k5.15.0-33-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
vendor: ASRock driver: r8169 v: kernel port: d000 
           bus ID: 05:00.0 
           IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IF-ID-1: virbr0 state: down mac: <filter> 
           IF-ID-2: virbr0-nic state: down mac: <filter> 
Drives:    Local Storage: total: 19.34 TiB used: 13.40 TiB (69.3%) 
           ID-1: /dev/nvme0n1 vendor: A-Data model: SX8200PNP size: 238.47 GiB 
           ID-2: /dev/sda vendor: Seagate model: ST1000DM010-2EP102 size: 
931.51 GiB temp: 34 C 
           ID-3: /dev/sdb vendor: Seagate model: ST1000DM010-2EP102 size: 
931.51 GiB temp: 34 C 
           ID-4: /dev/sdc vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 
GiB 
           ID-5: /dev/sdd vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 
GiB 
           ID-6: /dev/sde model: H W RAID5 size: 8.19 TiB 
           ID-7: /dev/sdf model: H W RAID5 size: 8.19 TiB 
Partition: ID-1: / size: 931.04 GiB used: 113.35 GiB (12.2%) fs: btrfs dev: 
/dev/sdc2 
           ID-2: /home size: 931.04 GiB used: 113.35 GiB (12.2%) fs: btrfs dev: 
/dev/sdc2 
Sensors:   System Temperatures: cpu: 43.5 C mobo: N/A gpu: amdgpu temp: 36 C 
           Fan Speeds (RPM): fan-1: 1032 fan-2: 1390 fan-3: 0 fan-4: 0 fan-5: 0 
gpu: amdgpu fan: 1020 
Info:      Processes: 417 Uptime: 45m Memory: 31.28 GiB used: 3.08 GiB (9.9%) 
Init: systemd runlevel: 5 Compilers: gcc: 9.4.0 
           clang: 10.0.0-4ubuntu1 Shell: bash v: 5.0.17 inxi: 3.0.38 


Output of lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root 
Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP 
Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP 
Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP 
Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse 
Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe 
Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse 
Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: 
Function 7
01:00.0 Non-Volatile memory controller: ADATA Technology Co., Ltd. XPG SX8200 
Pro PCIe Gen3x4 M.2 2280 Solid State Drive (rev 03)
02:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43ee
02:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43eb
02:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43e9
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea
03:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea
04:00.0 SATA controller: JMicron Technology Corp. Device 0585
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 15)
06:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream 
Port of PCI Express Switch (rev c7)
07:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL 
Downstream Port of PCI Express Switch
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Device 73ff (rev c7)
08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device ab28
09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. 
[AMD] Starship/Matisse PCIe Dummy Function
0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. 
[AMD] Starship/Matisse Reserved SPP
0a:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] 
Starship/Matisse Cryptographic Coprocessor PSPCPP
0a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host 
Controller
0a:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD 
Audio Controller

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

Title:
  UBSAN: array-index-out-of-bounds in
  /build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Something wrong with ata driver in dmesg found:

  [    1.980693] kernel: 
================================================================================
  [    1.980699] kernel: fbcon: Taking over console
  [    1.980703] kernel: UBSAN: array-index-out-of-bounds in 
/build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41
  [    1.980709] kernel: index 15 is out of range for type 'ahci_em_priv [8]'
  [    1.980713] kernel: CPU: 0 PID: 209 Comm: scsi_eh_8 Not tainted 
5.15.0-25-generic #25-Ubuntu
  [    1.980716] kernel: Hardware name: System manufacturer System Product 
Name/P5Q3, BIOS 1102    06/11/2010
  [    1.980718] kernel: Call Trace:
  [    1.980721] kernel:  <TASK>
  [    1.980723] kernel:  show_stack+0x52/0x58
  [    1.980729] kernel:  dump_stack_lvl+0x4a/0x5f
  [    1.980734] kernel:  dump_stack+0x10/0x12
  [    1.980736] kernel:  ubsan_epilogue+0x9/0x45
  [    1.980739] kernel:  __ubsan_handle_out_of_bounds.cold+0x44/0x49
  [    1.980742] kernel:  ahci_qc_issue+0x166/0x170 [libahci]
  [    1.980748] kernel:  ata_qc_issue+0x135/0x240
  [    1.980752] kernel:  ata_exec_internal_sg+0x2c4/0x580
  [    1.980754] kernel:  ? vprintk_default+0x1d/0x20
  [    1.980759] kernel:  ata_exec_internal+0x67/0xa0
  [    1.980762] kernel:  sata_pmp_read+0x8d/0xc0
  [    1.980765] kernel:  sata_pmp_read_gscr+0x3c/0x90
  [    1.980768] kernel:  sata_pmp_attach+0x8b/0x310
  [    1.980771] kernel:  ata_eh_revalidate_and_attach+0x28c/0x4b0
  [    1.980775] kernel:  ata_eh_recover+0x6b6/0xb30
  [    1.980778] kernel:  ? ahci_do_hardreset+0x180/0x180 [libahci]
  [    1.980783] kernel:  ? ahci_stop_engine+0xb0/0xb0 [libahci]
  [    1.980787] kernel:  ? ahci_do_softreset+0x290/0x290 [libahci]
  [    1.980792] kernel:  ? 
trace_event_raw_event_ata_eh_link_autopsy_qc+0xe0/0xe0
  [    1.980795] kernel:  sata_pmp_eh_recover.isra.0+0x214/0x560
  [    1.980799] kernel:  sata_pmp_error_handler+0x23/0x40
  [    1.980802] kernel:  ahci_error_handler+0x43/0x80 [libahci]
  [    1.980806] kernel:  ata_scsi_port_error_handler+0x2b1/0x600
  [    1.980810] kernel:  ata_scsi_error+0x9c/0xd0
  [    1.980813] kernel:  scsi_error_handler+0xa1/0x180
  [    1.980817] kernel:  ? scsi_unjam_host+0x1c0/0x1c0
  [    1.980820] kernel:  kthread+0x12a/0x150
  [    1.980823] kernel:  ? set_kthread_struct+0x50/0x50
  [    1.980826] kernel:  ret_from_fork+0x22/0x30
  [    1.980831] kernel:  </TASK>

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: linux-image-5.15.0-25-generic 5.15.0-25.25
  ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
  Uname: Linux 5.15.0-25-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  eugene    16798 F.... pulseaudio
   /dev/snd/pcmC0D0p:   eugene    16798 F...m pulseaudio
   /dev/snd/controlC1:  eugene    16798 F.... pulseaudio
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Sun Apr 24 05:13:34 2022
  HibernationDevice: RESUME=UUID=7e115b53-56a4-444f-bd93-6ad4f15c4a61
  InstallationDate: Installed on 2019-04-13 (1106 days ago)
  InstallationMedia: Kubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.1)
  IwConfig:
   lo        no wireless extensions.

   enp2s0    no wireless extensions.

   virbr0    no wireless extensions.
  MachineType: System manufacturer System Product Name
  ProcEnviron:
   LANGUAGE=
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=uk_UA.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.15.0-25-generic 
root=UUID=d87288b4-dbdd-4448-8088-4ebb6ed6cf33 ro rootflags=subvol=@ quiet 
splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-5.15.0-25-generic N/A
   linux-backports-modules-5.15.0-25-generic  N/A
   linux-firmware                             20220329.git681281e4-0ubuntu1
  RfKill:

  SourcePackage: linux
  UpgradeStatus: Upgraded to jammy on 2022-04-22 (1 days ago)
  dmi.bios.date: 06/11/2010
  dmi.bios.release: 11.2
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1102
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: P5Q3
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1102:bd06/11/2010:br11.2:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5Q3:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:skuToBeFilledByO.E.M.:
  dmi.product.family: To Be Filled By O.E.M.
  dmi.product.name: System Product Name
  dmi.product.sku: To Be Filled By O.E.M.
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

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