The "Kinetic Ubuntu 22.10" version is also affected.

Backport from fix from comment #33 above? (
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970074/comments/33
)

Please someone who has permission could you please add Kinect as
affected and backport the fix? (google translated)


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.10
Release:        22.10
Codename:       kinetic


$ dmesg
[    0.000000] Linux version 5.19.0-26-generic (buildd@lcy02-amd64-064) 
(x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils 
for Ubuntu) 2.39) #27-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 23 20:44:15 UTC 2022 
(Ubuntu 5.19.0-26.27-generic 5.19.7)
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.19.0-26-generic 
root=UUID=5e0045ff-af35-44d7-9627-375f9c38f04b ro debug verbose zswap.enabled=1 
kernel.dmesg_restrict=0
[    0.000000] KERNEL supported cpus:

[...]

[    1.970929] forcedeth: Reverse Engineered nForce ethernet driver. Version 
0.64.
[    1.974948] ACPI: \_SB_.LMAC: Enabled at IRQ 23
[    1.980418] scsi host0: pata_amd
[    1.984037] ahci 0000:00:09.0: version 3.0
[    1.987817] ACPI: \_SB_.LSA0: Enabled at IRQ 22
[    1.993080] ahci 0000:00:09.0: controller can't do PMP, turning off CAP_PMP
[    1.997510] scsi host1: pata_amd
[    2.001022] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
[    2.004572] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
[    2.008363] ahci 0000:00:09.0: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0xf 
impl IDE mode
[    2.011924] ahci 0000:00:09.0: flags: 64bit ncq sntf led clo pio boh 
[    2.020446] scsi host2: ahci
[    2.028066] scsi host3: ahci
[    2.031849] scsi host4: ahci
[    2.036045] scsi host5: ahci
[    2.039550] scsi host6: ahci
[    2.042923] scsi host7: ahci
[    2.046161] ata3: SATA max UDMA/133 abar m8192@0xfbd76000 port 0xfbd76100 
irq 25
[    2.049439] ata4: SATA max UDMA/133 abar m8192@0xfbd76000 port 0xfbd76180 
irq 25
[    2.052707] ata5: SATA max UDMA/133 abar m8192@0xfbd76000 port 0xfbd76200 
irq 25
[    2.055964] ata6: SATA max UDMA/133 abar m8192@0xfbd76000 port 0xfbd76280 
irq 25
[    2.059214] ata7: DUMMY
[    2.062446] ata8: DUMMY
[    2.066781] forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x732 @ 3, addr 
90:e6:ba:7c:6e:0b
[    2.070154] forcedeth 0000:00:0a.0: highdma csum pwrctl mgmt gbit lnktim msi 
desc-v3
[    2.073884] ahci 0000:03:00.0: SSS flag set, parallel bus scan disabled
[    2.077385] ahci 0000:03:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 
impl IDE mode
[    2.080820] ahci 0000:03:00.0: flags: 64bit ncq sntf stag led clo pmp pio 
slum part ccc sxs 
[    2.084840] scsi host8: ahci
[    2.088504] scsi host9: ahci
[    2.092002] ata9: SATA max UDMA/133 abar m512@0xfbfffc00 port 0xfbfffd00 irq 
26
[    2.095432] ata10: SATA max UDMA/133 abar m512@0xfbfffc00 port 0xfbfffd80 
irq 26
[    2.131689] usb 3-1: New USB device found, idVendor=03f0, idProduct=034a, 
bcdDevice= 1.21
[    2.135300] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.138833] usb 3-1: Product: HP Elite USB Keyboard
[    2.139693] usb 4-1: New USB device found, idVendor=03f0, idProduct=1198, 
bcdDevice= 7.04
[    2.142341] usb 3-1: Manufacturer: Chicony
[    2.149360] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.152946] usb 4-1: Product: HP USB 1000dpi Laser Mouse
[    2.156475] usb 4-1: Manufacturer: HP
[    2.161666] hid: raw HID events driver (C) Jiri Kosina
[    2.215911] usbcore: registered new interface driver usbhid
[    2.219667] usbhid: USB HID core driver
[    2.381945] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.390289] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.399061] ata5: SATA link down (SStatus 0 SControl 300)
[    2.407325] ata3: SATA link down (SStatus 0 SControl 300)
[    2.415502] ata4.00: ATA-9: SATA3 240GB SSD, T0707B0, max UDMA/133
[    2.424371] ata4.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 32)
[    2.434698] ata6.00: ATA-9: KingDian S400 120GB, Q1115A0, max UDMA/133
[    2.443235] ata6.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 32)
[    2.452933] ata4.00: configured for UDMA/133
[    2.462504] scsi 3:0:0:0: Direct-Access     ATA      SATA3 240GB SSD  7B0  
PQ: 0 ANSI: 5
[    2.466643] ata6.00: configured for UDMA/133
[    2.471984] scsi 3:0:0:0: Attached scsi generic sg0 type 0
[    2.472586] sd 3:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 
GiB)
[    2.472630] sd 3:0:0:0: [sda] Write Protect is off
[    2.472638] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.472696] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    2.472731] sd 3:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    2.526709] scsi 5:0:0:0: Direct-Access     ATA      KingDian S400 12 5A0  
PQ: 0 ANSI: 5
[    2.530967] sd 5:0:0:0: Attached scsi generic sg1 type 0
[    2.531321] sd 5:0:0:0: [sdb] 234441648 512-byte logical blocks: (120 GB/112 
GiB)
[    2.540329]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
[    2.542609] sd 5:0:0:0: [sdb] Write Protect is off
[    2.551154] sd 3:0:0:0: [sda] Attached SCSI disk
[    2.557825] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.568721] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    2.572155] sd 5:0:0:0: [sdb] Preferred minimum I/O size 512 bytes
[    2.578654] ata9: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.582020] 
================================================================================
[    2.585414] UBSAN: array-index-out-of-bounds in 
/build/linux-ke3rPq/linux-5.19.0/drivers/ata/libahci.c:986:41
[    2.588865] index 15 is out of range for type 'ahci_em_priv [8]'
[    2.592366] CPU: 2 PID: 208 Comm: scsi_eh_8 Not tainted 5.19.0-26-generic 
#27-Ubuntu
[    2.595888] Hardware name: System manufacturer System Product Name/M4N78 SE, 
BIOS 1501    10/09/2012
[    2.599457] Call Trace:
[    2.602975]  <TASK>
[    2.606503]  show_stack+0x4e/0x61
[    2.610066]  dump_stack_lvl+0x4a/0x6d
[    2.613654]  dump_stack+0x10/0x18
[    2.617247]  ubsan_epilogue+0x9/0x43
[    2.620868]  __ubsan_handle_out_of_bounds.cold+0x42/0x47
[    2.624491]  ahci_qc_issue+0x17e/0x190 [libahci]
[    2.628150]  ata_qc_issue+0x138/0x2d0
[    2.631821]  ata_exec_internal_sg+0x2b5/0x5b0
[    2.635533]  ata_exec_internal+0x84/0xd0
[    2.639194]  sata_pmp_read+0x8d/0xd0
[    2.642876]  sata_pmp_read_gscr+0x3b/0x80
[    2.646504]  sata_pmp_attach+0x71/0x2e0
[    2.650100]  ? ata_eh_reset+0x564/0x11b0
[    2.653651]  ata_eh_revalidate_and_attach+0x276/0x4b0
[    2.657203]  ? ahci_do_hardreset+0x180/0x180 [libahci]
[    2.660738]  ata_eh_recover+0x691/0xa80
[    2.664230]  ? ahci_do_softreset+0x240/0x240 [libahci]
[    2.667777]  ? ahci_stop_engine+0xc0/0xc0 [libahci]
[    2.671296]  ? ahci_do_hardreset+0x180/0x180 [libahci]
[    2.674787]  ? ata_id_n_sectors+0xc0/0xc0
[    2.678220]  ? __flush_work.isra.0+0x1c4/0x2a0
[    2.681638]  ? update_load_avg+0x82/0x7b0
[    2.685027]  sata_pmp_eh_recover.isra.0+0xe7/0x4c0
[    2.688397]  sata_pmp_error_handler+0x22/0x40
[    2.691716]  ahci_error_handler+0x45/0x90 [libahci]
[    2.695029]  ata_scsi_port_error_handler+0x2ab/0x5f0
[    2.698322]  ata_scsi_error+0x95/0xd0
[    2.701596]  scsi_error_handler+0x98/0x190
[    2.704865]  ? scsi_unjam_host+0x1d0/0x1d0
[    2.706613] usb 4-4: new full-speed USB device number 3 using ohci-pci
[    2.708103]  kthread+0xe9/0x110
[    2.708107]  ? kthread_complete_and_exit+0x20/0x20
[    2.708110]  ret_from_fork+0x22/0x30
[    2.708114]  </TASK>
[    2.724555] 
================================================================================
[    2.727968] usb 3-2: new low-speed USB device number 3 using ohci-pci
[    2.729477] ata9.15: Port Multiplier 1.2, 0x197b:0x5755 r0, 5 ports, feat 
0x5/0xf
[    2.735451]  sdb: sdb1 sdb2 sdb3
[    2.736391] ata9.00: hard resetting link
[    2.743886] sd 5:0:0:0: [sdb] Attached SCSI disk
[    2.956727] usb 4-4: New USB device found, idVendor=05e3, idProduct=0606, 
bcdDevice= 7.02
[    2.965132] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.973484] usb 4-4: Product: USB Hub 2.0

[...]

-- 
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
Status in linux source package in Jammy:
  Fix Committed

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