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

Bug #1970074 reported by Gannet
58
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Medium
Unassigned

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

CVE References

Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Bob Lawrence (pilotbob42) wrote :

Another occurrence:

[4.410322] =========================================================
[4.410323] UBSAN: array-index-out-of-bounds in /build/linux-hwe-5.15-scdIe0/linux-hwe-5.15-5.15.0/drivers/ata/libahci.c:968:41
[4.410326] index 15 is out of range for type 'ahci_em_priv [8]'
[4.410327] CPU: 1 PID: 434 Comm: scsi_eh_6 Tainted: G OE 5.15.0-33-generic #34~20.04.1-Ubuntu
[4.410330] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B550M-HDV, BIOS P2.10 02/24/2022
[4.410331] Call Trace:
[4.410332] <TASK>
[4.410334] dump_stack_lvl+0x4a/0x5f
[4.410339] dump_stack+0x10/0x12
[4.410340] ubsan_epilogue+0x9/0x45
[4.410342] __ubsan_handle_out_of_bounds.cold+0x44/0x49
[4.410344] ahci_qc_issue+0x15e/0x160 [libahci]
[4.410348] ata_qc_issue+0x132/0x240
[4.410351] ata_exec_internal_sg+0x2c6/0x580
[4.410353] ? vprintk_default+0x1d/0x20
[4.410356] ata_exec_internal+0x67/0xa0
[4.410358] ? sata_scr_read+0x45/0x60
[4.410360] sata_pmp_read.isra.0+0x8a/0xb0
[4.410363] sata_pmp_read_gscr+0x40/0xa0
[4.410365] sata_pmp_attach+0x8b/0x530
[4.410367] ata_eh_revalidate_and_attach+0x249/0x490
[4.410369] ata_eh_recover+0x6d5/0x1370
[4.410371] ? ahci_stop_engine+0xb0/0xb0 [libahci]
[4.410373] ? ahci_do_hardreset+0x150/0x150 [libahci]
[4.410376] ? ahci_do_softreset+0x260/0x260 [libahci]
[4.410378] ? ata_phys_link_offline+0x60/0x60
[4.410381] ? ata_phys_link_offline+0x60/0x60
[4.410382] sata_pmp_eh_recover+0x61c/0xa80
[4.410385] ? ahci_stop_engine+0xb0/0xb0 [libahci]
[4.410387] ? ata_phys_link_offline+0x60/0x60
[4.410389] ? ahci_do_softreset+0x260/0x260 [libahci]
[4.410391] ? ahci_do_hardreset+0x150/0x150 [libahci]
[4.410394] sata_pmp_error_handler+0x23/0x30
[4.410396] ahci_error_handler+0x43/0x80 [libahci]
[4.410398] ata_scsi_port_error_handler+0x3a0/0x850
[4.410400] ata_scsi_error+0x9c/0xd0
[4.410402] scsi_error_handler+0xc3/0x520
[4.410404] ? scsi_eh_get_sense+0x250/0x250
[4.410406] kthread+0x127/0x150
[4.410408] ? set_kthread_struct+0x40/0x40
[4.410410] ret_from_fork+0x1f/0x30
[4.410413] </TASK>
[4.410414] =========================================================

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

Happens on every boot with this kernel

Revision history for this message
Gannet (ken20001) wrote :

The same is with v5.18 from Mainline Kernel PPA.

Revision history for this message
Bob Lawrence (pilotbob42) wrote (last edit ):

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.

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

Output of inxi.

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

Output of lspci.

Revision history for this message
Markus Maier (marmai) wrote :

From analysis of our setup at work, it should be the JMicron SATA Controller.
It works with kernel 5.8 (Ubuntu 20.04) and fails with kernel 5.15 (Ubuntu 22.04).
No other kernel versions tested yet.

We already contacted our manufacturer (Icy Dock), but no feedback yet.

Revision history for this message
tim draper (veehexx) wrote :

i'm seeing the same on an asm1064+jbm575 sata pcie card.

it also appears to completely break one of the cards if you 2 sata pcie cards connected too.
ie: i've recently bought and added an asm1166+jmb575 card which appears to work on all ports. the existing asm1064 based card is now failing to show any connected drive.

testing 1 card at a time - functionally ok, but still the 'UBSAN: array-index-out-of-bounds' in dmesg with the asm1064+jbm575 card, so cards themselves appear good.

Revision history for this message
Juan Jesús García de Soria (skandalfo) wrote :
Download full text (5.7 KiB)

Got this too in my Mini ITX board with 12 SATA ports (in addition to another chipset SATA port):

[ 7.633320] ================================================================================
[ 7.633467] UBSAN: array-index-out-of-bounds in /build/linux-WLUive/linux-5.15.0/drivers/ata/libahci.c:968:41
[ 7.633632] index 15 is out of range for type 'ahci_em_priv [8]'
[ 7.633733] CPU: 1 PID: 226 Comm: scsi_eh_9 Not tainted 5.15.0-40-generic #43-Ubuntu
[ 7.633741] Hardware name: To be filled by O.E.M. To be filled by O.E.M./Aptio CRB, BIOS 5.6.5 12/24/2018
[ 7.633745] Call Trace:
[ 7.633750] <TASK>
[ 7.633755] show_stack+0x52/0x58
[ 7.633767] dump_stack_lvl+0x4a/0x5f
[ 7.633779] dump_stack+0x10/0x12
[ 7.633787] ubsan_epilogue+0x9/0x45
[ 7.633795] __ubsan_handle_out_of_bounds.cold+0x44/0x49
[ 7.633804] ahci_qc_issue+0x166/0x170 [libahci]
[ 7.633820] ata_qc_issue+0x135/0x240
[ 7.633829] ata_exec_internal_sg+0x2c4/0x580
[ 7.633837] ? vprintk_default+0x1d/0x20
[ 7.633847] ata_exec_internal+0x67/0xa0
[ 7.633856] sata_pmp_read+0x8d/0xc0
[ 7.633865] sata_pmp_read_gscr+0x3c/0x90
[ 7.633873] sata_pmp_attach+0x8b/0x310
[ 7.633882] ata_eh_revalidate_and_attach+0x28c/0x4b0
[ 7.633890] ata_eh_recover+0x6b6/0xb30
[ 7.633897] ? ahci_do_hardreset+0x180/0x180 [libahci]
[ 7.633910] ? ahci_stop_engine+0xb0/0xb0 [libahci]
[ 7.633921] ? ahci_do_softreset+0x290/0x290 [libahci]
[ 7.633933] ? trace_event_raw_event_ata_eh_link_autopsy_qc+0xe0/0xe0
[ 7.633944] sata_pmp_eh_recover.isra.0+0x214/0x560
[ 7.633952] ? asm_sysvec_call_function_single+0x12/0x20
[ 7.633964] sata_pmp_error_handler+0x23/0x40
[ 7.633972] ahci_error_handler+0x43/0x80 [libahci]
[ 7.633985] ata_scsi_port_error_handler+0x2b1/0x600
[ 7.633993] ata_scsi_error+0x9c/0xd0
[ 7.634000] scsi_error_handler+0xa1/0x180
[ 7.634007] ? scsi_unjam_host+0x1c0/0x1c0
[ 7.634014] kthread+0x12a/0x150
[ 7.634023] ? set_kthread_struct+0x50/0x50
[ 7.634031] ret_from_fork+0x22/0x30
[ 7.634043] </TASK>
[ 7.634045] ================================================================================

The ones complaining are apparently behind a SATA Port Multiplier (hence the "pmp" part in the traces).

Here's my lspci output:

00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 11)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 11)
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 11)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 11)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 11)
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 11)
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 11)
00:1c.1 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 2 (rev 11)
00:1c...

Read more...

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

My workaround for this problem was to eject the JMicron SATA controller from the chassis and replace it with one that uses an ASM1064 controller instead.

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

I will add that this new ASM1064 SATA card is a 4-port SATA controller that does not use any additional JMicron chip as a port multiplier (like a JBM575). My original JMicron card was only a two port model, so why it needed a port multiplier is beyond me. Basically, what all this means is avoid JMicron based products.

Revision history for this message
Gannet (ken20001) wrote :

On Linux version 5.19.0-051900rc7-generic:

[ 2.183185] kernel: fbcon: Taking over console
[ 2.183190] kernel: UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/ata/libahci.c:986:41
[ 2.183196] kernel: index 15 is out of range for type 'ahci_em_priv [8]'
[ 2.183200] kernel: CPU: 0 PID: 211 Comm: scsi_eh_8 Not tainted 5.19.0-051900rc7-generic #202207172131
[ 2.183204] kernel: Hardware name: System manufacturer System Product Name/P5Q3, BIOS 1102 06/11/2010
[ 2.183206] kernel: Call Trace:
[ 2.183209] kernel: <TASK>
[ 2.183211] kernel: show_stack+0x52/0x5c
[ 2.183218] kernel: dump_stack_lvl+0x49/0x63
[ 2.183222] kernel: dump_stack+0x10/0x16
[ 2.183224] kernel: ubsan_epilogue+0x9/0x3f
[ 2.183226] kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49
[ 2.183230] kernel: ahci_qc_issue+0x16e/0x170 [libahci]
[ 2.183237] kernel: ata_qc_issue+0x13a/0x2c0
[ 2.183241] kernel: ata_exec_internal_sg+0x2c3/0x5b0
[ 2.183244] kernel: ? _printk+0x58/0x73
[ 2.183248] kernel: ata_exec_internal+0x67/0xa0
[ 2.183251] kernel: ? sata_print_link_status+0x134/0x160
[ 2.183254] kernel: sata_pmp_read+0x8d/0xc0
[ 2.183258] kernel: sata_pmp_read_gscr+0x3c/0x70
[ 2.183261] kernel: sata_pmp_attach+0x73/0x2e0
[ 2.183264] kernel: ? ahci_stop_engine+0xb0/0xb0 [libahci]
[ 2.183269] kernel: ata_eh_revalidate_and_attach+0x289/0x4b0
[ 2.183273] kernel: ? ahci_do_softreset+0x200/0x200 [libahci]
[ 2.183279] kernel: ata_eh_recover+0x690/0xa40
[ 2.183281] kernel: ? ahci_do_hardreset+0x150/0x150 [libahci]
[ 2.183286] kernel: ? ahci_stop_engine+0xb0/0xb0 [libahci]
[ 2.183291] kernel: ? ahci_do_softreset+0x200/0x200 [libahci]
[ 2.183296] kernel: ? ata_id_n_sectors+0xa0/0xa0
[ 2.183300] kernel: sata_pmp_eh_recover.isra.0+0x207/0x450
[ 2.183304] kernel: sata_pmp_error_handler+0x23/0x40
[ 2.183307] kernel: ahci_error_handler+0x43/0x80 [libahci]
[ 2.183312] kernel: ata_scsi_port_error_handler+0x2b1/0x5e0
[ 2.183315] kernel: ata_scsi_error+0x9c/0xd0
[ 2.183317] kernel: scsi_error_handler+0xa1/0x180
[ 2.183326] kernel: ? scsi_unjam_host+0x1c0/0x1c0
[ 2.183328] kernel: kthread+0xee/0x120
[ 2.183332] kernel: ? kthread_complete_and_exit+0x20/0x20
[ 2.183335] kernel: ret_from_fork+0x22/0x30
[ 2.183339] kernel: </TASK>

Revision history for this message
Scott Moore (scottbomb) wrote :

I see this on every boot up but all it seems to do is slow down the boot process.

Revision history for this message
Bob Lawrence (pilotbob42) wrote :

@Scott, it seems that if you only have one additional SATA card in your system then the error is annoying but benign. But, if you have more than one SATA expansion card then you would have a real problem.

Revision history for this message
denisjroy@gmail.com (denisjroy) wrote :

I seem to have the same error booting. Using anything above Linux verston 5.13.0-35-genertc
Ubuntu get stuck with the error below. Reading what has been said, my driver for ToughArmor MB992SKR-B would be the cause of the error and my inability to use the latest kernel.

1.7517151
=========
15885555555555
1.7517261 UBSAN: array-index-out-of-bounds in /build/linux-hue-5.15-69LdMO/
linux-hwe-5.15-5.15.0/drivers/ata/libahci.c:968:41
1.7517311 index 15 is out of range for
type
'ahci em priu [8]'
1.7518821
ass=222s======5555555555555
SI
sasssa===
34.2160741 ata2.00: exception Emask 0x100 SAct Ox0 SErr Ox0 action Ox6 frozen
34.2161171 ata2.00: failed command: READ DMA
34.2161391 ata2.00: cm c8/00:08:00:00:00/00:00:00:00:00/e0 tag 22 dma 4096 in
34.2161391
res 40/00:00:00:00:00/00:00:00:00:00/00 mask 0x4
(timeout)
34.2162121 ata2.00: status:
{ DRDY }

Revision history for this message
Henrique Bucher (vitorian) wrote :

Im on Ubuntu 20.04.3 Kernel 5.15.0-46-generic

I keep getting these messages too.

 dmesg | grep -C 3 UBSAN
[ 4.026246] usb 5-6: new high-speed USB device number 6 using xhci_hcd
[ 4.218259] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 4.218268] ================================================================================
[ 4.218294] UBSAN: array-index-out-of-bounds in /build/linux-hwe-5.15-69LdM0/linux-hwe-5.15-5.15.0/drivers/ata/libahci.c:968:41
[ 4.218325] index 15 is out of range for type 'ahci_em_priv [8]'
[ 4.218341] CPU: 18 PID: 583 Comm: scsi_eh_0 Not tainted 5.15.0-46-generic #49~20.04.1-Ubuntu
[ 4.218343] Hardware name: Gigabyte Technology Co., Ltd. TRX40 AORUS MASTER/TRX40 AORUS MASTER, BIOS FB 07/27/2021
--
[ 30.313812] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 30.314834] Bridge firewalling registered
[ 30.346342] ================================================================================
[ 30.346347] UBSAN: array-index-out-of-bounds in /build/linux-hwe-5.15-69LdM0/linux-hwe-5.15-5.15.0/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1262:48
[ 30.346349] index 8 is out of range for type 'aq_vec_s *[8]'
[ 30.346351] CPU: 5 PID: 2606 Comm: dockerd Tainted: G OE 5.15.0-46-generic #49~20.04.1-Ubuntu
[ 30.346354] Hardware name: Gigabyte Technology Co., Ltd. TRX40 AORUS MASTER/TRX40 AORUS MASTER, BIOS FB 07/27/2021

Revision history for this message
Anders Trier Olesen (anders-trier-olesen) wrote :
Download full text (5.1 KiB)

Also hitting the same SATA port multiplier bug:

# uname -a
Linux server 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

# dmesg
[..]
[ 3.228910] ata6: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 3.228922] ================================================================================
[ 3.228926] UBSAN: array-index-out-of-bounds in /build/linux-kQ6jNR/linux-5.15.0/drivers/ata/libahci.c:968:41
[ 3.228931] index 15 is out of range for type 'ahci_em_priv [8]'
[ 3.228934] CPU: 10 PID: 283 Comm: scsi_eh_5 Not tainted 5.15.0-48-generic #54-Ubuntu
[ 3.228939] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Pro4, BIOS P5.30 08/04/2021
[ 3.228944] Call Trace:
[ 3.228947] <TASK>
[ 3.228950] show_stack+0x52/0x5c
[ 3.228955] dump_stack_lvl+0x4a/0x63
[ 3.228961] dump_stack+0x10/0x16
[ 3.228965] ubsan_epilogue+0x9/0x49
[ 3.228969] __ubsan_handle_out_of_bounds.cold+0x44/0x49
[ 3.228974] ahci_qc_issue+0x16e/0x170 [libahci]
[ 3.228981] ata_qc_issue+0x132/0x250
[ 3.228986] ata_exec_internal_sg+0x2c4/0x580
[ 3.228990] ? vprintk_default+0x1d/0x30
[ 3.228996] ata_exec_internal+0x67/0xa0
[ 3.229000] sata_pmp_read+0x8d/0xc0
[ 3.229004] sata_pmp_read_gscr+0x3c/0xa0
[ 3.229008] sata_pmp_attach+0x8b/0x320
[ 3.229013] ata_eh_revalidate_and_attach+0x290/0x4c0
[ 3.229019] ata_eh_recover+0x6b6/0xb30
[ 3.229022] ? ahci_do_hardreset+0x180/0x180 [libahci]
[ 3.229028] ? ahci_stop_engine+0xb0/0xb0 [libahci]
[ 3.229033] ? ahci_do_softreset+0x290/0x290 [libahci]
[ 3.229038] ? trace_event_raw_event_ata_eh_link_autopsy_qc+0xf0/0xf0
[ 3.229044] sata_pmp_eh_recover.isra.0+0x214/0x570
[ 3.229049] sata_pmp_error_handler+0x23/0x40
[ 3.229053] ahci_error_handler+0x43/0x80 [libahci]
[ 3.229059] ata_scsi_port_error_handler+0x2ae/0x600
[ 3.229063] ata_scsi_error+0x9c/0xd0
[ 3.229066] scsi_error_handler+0x9e/0x180
[ 3.229070] ? scsi_unjam_host+0x1c0/0x1c0
[ 3.229073] kthread+0x127/0x150
[ 3.229078] ? set_kthread_struct+0x50/0x50
[ 3.229082] ret_from_fork+0x1f/0x30
[ 3.229088] </TASK>
[ 3.229090] ================================================================================
[ 3.229300] ata6.15: Port Multiplier 1.2, 0x197b:0x575f r0, 15 ports, feat 0x5/0xf
[ 3.230403] ata6.00: hard resetting link
[ 3.705094] ata6.00: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 3.705127] ata6.01: hard resetting link
[ 4.181093] ata6.01: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.181127] ata6.02: hard resetting link
[ 4.657095] ata6.02: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.657128] ata6.03: hard resetting link
[ 5.133093] ata6.03: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 5.133126] ata6.04: hard resetting link
[ 5.450154] ata6.04: SATA link down (SStatus 0 SControl 330)
[ 5.450210] ata6.05: hard resetting link
[ 5.766149] ata6.05: SATA link down (SStatus 0 SControl 330)
[ 5.766206] ata6.06: hard resetting link
[ 6.082149] ata6.06: SATA link down (SStatus 0 SControl 330)
[ 6.082205] ata6.07: hard resetting...

Read more...

Revision history for this message
Gannet (ken20001) wrote :

The same is in Linux 6.0.0-060000-generic:

[ 2.208269] kernel: fbcon: Taking over console
[ 2.208274] kernel: UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/ata/libahci.c:986:41
[ 2.208280] kernel: index 15 is out of range for type 'ahci_em_priv [8]'
[ 2.208284] kernel: CPU: 2 PID: 211 Comm: scsi_eh_8 Not tainted 6.0.0-060000-generic #202210022231
[ 2.208288] kernel: Hardware name: System manufacturer System Product Name/P5Q3, BIOS 1102 06/11/2010
[ 2.208290] kernel: Call Trace:
[ 2.208293] kernel: <TASK>
[ 2.208296] kernel: show_stack+0x4e/0x61
[ 2.208302] kernel: dump_stack_lvl+0x4a/0x6d
[ 2.208306] kernel: dump_stack+0x10/0x18
[ 2.208309] kernel: ubsan_epilogue+0x9/0x43
[ 2.208312] kernel: __ubsan_handle_out_of_bounds.cold+0x42/0x47
[ 2.208315] kernel: ahci_qc_issue+0x17e/0x190 [libahci]
[ 2.208322] kernel: ata_qc_issue+0x138/0x2d0
[ 2.208326] kernel: ata_exec_internal_sg+0x27e/0x560
[ 2.208330] kernel: ata_exec_internal+0x85/0xd0
[ 2.208333] kernel: sata_pmp_read+0x8d/0xd0
[ 2.208336] kernel: sata_pmp_read_gscr+0x3b/0x80
[ 2.208339] kernel: sata_pmp_attach+0x71/0x2e0
[ 2.208342] kernel: ? ata_eh_reset+0x99d/0x1200
[ 2.208346] kernel: ata_eh_revalidate_and_attach+0x276/0x4b0
[ 2.208350] kernel: ata_eh_recover+0x691/0xa80
[ 2.208353] kernel: ? ahci_do_softreset+0x240/0x240 [libahci]
[ 2.208358] kernel: ? ahci_stop_engine+0xc0/0xc0 [libahci]
[ 2.208363] kernel: ? ahci_do_hardreset+0x180/0x180 [libahci]
[ 2.208368] kernel: ? ata_id_n_sectors+0xb0/0xb0
[ 2.208371] kernel: ? __flush_work.isra.0+0x206/0x350
[ 2.208375] kernel: sata_pmp_eh_recover.isra.0+0xe7/0x4c0
[ 2.208379] kernel: sata_pmp_error_handler+0x22/0x40
[ 2.208382] kernel: ahci_error_handler+0x45/0x90 [libahci]
[ 2.208387] kernel: ata_scsi_port_error_handler+0x2ab/0x5f0
[ 2.208391] kernel: ata_scsi_error+0x95/0xd0
[ 2.208394] kernel: scsi_error_handler+0x98/0x190
[ 2.208398] kernel: ? scsi_unjam_host+0x1d0/0x1d0
[ 2.208401] kernel: kthread+0xe9/0x110
[ 2.208409] kernel: ? kthread_complete_and_exit+0x20/0x20
[ 2.208412] kernel: ret_from_fork+0x22/0x30
[ 2.208416] kernel: </TASK>

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Gannet (ken20001) wrote :

Seems all is ok with proposed kernel. My dmesg is attached. You can check also.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
denisjroy@gmail.com (denisjroy) wrote : Re: [Bug 1970074] Re: UBSAN: array-index-out-of-bounds in /build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41

I looked around but I can't seem to find how to add the kernel. could
you tell me the command(s) or docs to try it out. thanks

On 2022-10-06 02:09, Kai-Heng Feng wrote:
> Please give this kernel a try:
> https://people.canonical.com/~khfeng/lp1970074/
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Incomplete
>

Revision history for this message
Gannet (ken20001) wrote :

Any updates?

Revision history for this message
Chaim Eliyah (chaimeliyah) wrote (last edit ):

Flashed two LTS install drives today both with the same issue. 2xSATA JMicron controllers (HWRAID), /dev/sda and /dev/sdb are taking turns throwing buffer I/O errors ("Buffer I/O error on dev sdb, logical block 0, async page read") and the system never boots. Any idea when the fix will be in main-line?

(Asked and answered: "Applied to for-6.1-fixes with ""Cc: <email address hidden>"" tag added. Thanks !")

https://lkml.org/lkml/2022/10/16/448
https://9to5linux.com/linus-torvalds-announces-first-linux-kernel-6-1-release-candidate

Revision history for this message
Chaim Eliyah (chaimeliyah) wrote :

Deleted #31 as it may not be relevant. Has this been merged into the 6.1 kernel RC? thx, sorry for multiples, catching up here

Revision history for this message
Chaim Eliyah (chaimeliyah) wrote :

Update: Last night I tried as far back as 18.04 and it turns out this has been backported everywhere. I've had these controllers since 2016-ish, have never had a problem before. Now I can't even work around by installing older kernels (s/a 5.3 used for 18.04.5).

Finding other HWRAID controllers is not a solution for me.

Here's the good news:

https://github.com/torvalds/linux/commit/1e41e693f458eef2d5728207dbd327cd3b16580a

...has been merged into 6.1-rc4. So, help is on the way.

Stefan Bader (smb)
Changed in linux (Ubuntu Jammy):
importance: Undecided → Medium
status: New → Fix Committed
Timo Aaltonen (tjaalton)
tags: added: verification-needed-jammy
Timo Aaltonen (tjaalton)
tags: removed: verification-needed-jammy
Revision history for this message
mobi (mobifloss) wrote :
Download full text (8.0 KiB)

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
[...

Read more...

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/5.15.0-59.65 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux verification-needed-jammy
Revision history for this message
Gannet (ken20001) wrote :

As I already told in my case the issue is solved.

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (57.5 KiB)

This bug was fixed in the package linux - 5.15.0-60.66

---------------
linux (5.15.0-60.66) jammy; urgency=medium

  * jammy/linux: 5.15.0-60.66 -proposed tracker (LP: #2003450)

  * Revoke & rotate to new signing key (LP: #2002812)
    - [Packaging] Revoke and rotate to new signing key

linux (5.15.0-59.65) jammy; urgency=medium

  * jammy/linux: 5.15.0-59.65 -proposed tracker (LP: #2001801)

  * Packaging resync (LP: #1786013)
    - [Packaging] update helper scripts

  * CVE-2022-47940
    - ksmbd: validate length in smb2_write()

  * Fix iosm: WWAN cannot build the connection (DW5823e) (LP: #1998115)
    - net: wwan: iosm: fix driver not working with INTEL_IOMMU disabled
    - [Config] CONFIG_IOSM update annotations on arm64 armhf ppc64el s390x

  * support for same series backports versioning numbers (LP: #1993563)
    - [Packaging] sameport -- add support for sameport versioning

  * [DEP-8] Run ADT regression suite for lowlatency kernels Jammy and later
    (LP: #1999528)
    - [DEP-8] Fix regression suite to run on lowlatency

  * Micron NVME storage failure [1344,5407] (LP: #1998883)
    - nvme: add a bogus subsystem NQN quirk for Micron MTFDKBA2T0TFH

  * Jammy update: v5.15.78 upstream stable release (LP: #1998843)
    - scsi: lpfc: Rework MIB Rx Monitor debug info logic
    - serial: ar933x: Deassert Transmit Enable on ->rs485_config()
    - KVM: x86: Trace re-injected exceptions
    - KVM: x86: Treat #DBs from the emulator as fault-like (code and DR7.GD=1)
    - drm/amd/display: explicitly disable psr_feature_enable appropriately
    - mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb page
    - HID: playstation: add initial DualSense Edge controller support
    - KVM: x86: Protect the unused bits in MSR exiting flags
    - KVM: x86: Copy filter arg outside kvm_vm_ioctl_set_msr_filter()
    - KVM: x86: Add compat handler for KVM_X86_SET_MSR_FILTER
    - RDMA/cma: Use output interface for net_dev check
    - IB/hfi1: Correctly move list in sc_disable()
    - RDMA/hns: Remove magic number
    - RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()
    - RDMA/hns: Disable local invalidate operation
    - NFSv4: Fix a potential state reclaim deadlock
    - NFSv4.1: Handle RECLAIM_COMPLETE trunking errors
    - NFSv4.1: We must always send RECLAIM_COMPLETE after a reboot
    - SUNRPC: Fix null-ptr-deref when xps sysfs alloc failed
    - NFSv4.2: Fixup CLONE dest file size for zero-length count
    - nfs4: Fix kmemleak when allocate slot failed
    - net: dsa: Fix possible memory leaks in dsa_loop_init()
    - RDMA/core: Fix null-ptr-deref in ib_core_cleanup()
    - RDMA/qedr: clean up work queue on failure in qedr_alloc_resources()
    - net: dsa: fall back to default tagger if we can't load the one from DT
    - nfc: fdp: Fix potential memory leak in fdp_nci_send()
    - nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
    - nfc: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send()
    - nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()
    - net: fec: fix improper use of NETDEV_TX_BUSY
    - ata: pata_legacy: fix pdc20230_set_piomode()
    - net: sched: Fix use after free in red_...

Changed in linux (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-azure/5.15.0-1034.41 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-azure verification-needed-jammy
removed: verification-done-jammy
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-aws/5.15.0-1031.35 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-aws
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-realtime/5.15.0-1033.36 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-realtime
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-aws-5.15/5.15.0-1046.51~20.04.1 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal-linux-aws-5.15' to 'verification-done-focal-linux-aws-5.15'. If the problem still exists, change the tag 'verification-needed-focal-linux-aws-5.15' to 'verification-failed-focal-linux-aws-5.15'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-focal-linux-aws-5.15-v2 verification-needed-focal-linux-aws-5.15
Revision history for this message
denisjroy@gmail.com (denisjroy) wrote :
Download full text (6.3 KiB)

Running on a production desktop, I can’t do any testing.

Sent from my iPhone

> On Sep 9, 2023, at 10:33 AM, Ubuntu Kernel Bot <email address hidden> wrote:
>
> This bug is awaiting verification that the linux-
> aws-5.15/5.15.0-1046.51~20.04.1 kernel in -proposed solves the problem.
> Please test the kernel and update this bug with the results. If the
> problem is solved, change the tag 'verification-needed-focal-linux-
> aws-5.15' to 'verification-done-focal-linux-aws-5.15'. If the problem
> still exists, change the tag 'verification-needed-focal-linux-aws-5.15'
> to 'verification-failed-focal-linux-aws-5.15'.
>
> If verification is not done by 5 working days from today, this fix will
> be dropped from the source code, and this bug will be closed.
>
> See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
> to enable and use -proposed. Thank you!
>
>
> ** Tags added: kernel-spammed-focal-linux-aws-5.15-v2 verification-needed-focal-linux-aws-5.15
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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 Released
>
> 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/0...

Read more...

Revision history for this message
Gannet (ken20001) wrote :
Download full text (5.1 KiB)

On Linux 6.5.x the similar issue appeared (do I need to raise a separate report?):

вер 10 21:16:35 p5q3 kernel: ================================================================================
вер 10 21:16:35 p5q3 kernel: fbcon: Taking over console
вер 10 21:16:35 p5q3 kernel: UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/gpu/drm/radeon/radeon_atombios.c:2620:43
вер 10 21:16:35 p5q3 kernel: index 1 is out of range for type 'UCHAR [1]'
вер 10 21:16:35 p5q3 kernel: CPU: 3 PID: 310 Comm: systemd-udevd Not tainted 6.5.1-060501-generic #202309020842
вер 10 21:16:35 p5q3 kernel: Hardware name: System manufacturer System Product Name/P5Q3, BIOS 1102 06/11/2010
вер 10 21:16:35 p5q3 kernel: Call Trace:
вер 10 21:16:35 p5q3 kernel: <TASK>
вер 10 21:16:35 p5q3 kernel: dump_stack_lvl+0x48/0x70
вер 10 21:16:35 p5q3 kernel: dump_stack+0x10/0x20
вер 10 21:16:35 p5q3 kernel: __ubsan_handle_out_of_bounds+0xc6/0x110
вер 10 21:16:35 p5q3 kernel: radeon_atombios_parse_power_table_4_5+0x3c9/0x3f0 [radeon]
вер 10 21:16:35 p5q3 kernel: radeon_atombios_get_power_modes+0x205/0x210 [radeon]
вер 10 21:16:35 p5q3 kernel: radeon_pm_init_dpm+0x8e/0x2f0 [radeon]
вер 10 21:16:35 p5q3 kernel: radeon_pm_init+0xd0/0x100 [radeon]
вер 10 21:16:35 p5q3 kernel: rv770_init+0x1fa/0x3d0 [radeon]
вер 10 21:16:35 p5q3 kernel: radeon_device_init+0x540/0xa90 [radeon]
вер 10 21:16:35 p5q3 kernel: radeon_driver_load_kms+0xcc/0x2f0 [radeon]
вер 10 21:16:35 p5q3 kernel: drm_dev_register+0x10e/0x240 [drm]
вер 10 21:16:35 p5q3 kernel: radeon_pci_probe+0xec/0x180 [radeon]
вер 10 21:16:35 p5q3 kernel: local_pci_probe+0x47/0xb0
вер 10 21:16:35 p5q3 kernel: pci_call_probe+0x55/0x190
вер 10 21:16:35 p5q3 kernel: pci_device_probe+0x84/0x120
вер 10 21:16:35 p5q3 kernel: really_probe+0x1c7/0x410
вер 10 21:16:35 p5q3 kernel: __driver_probe_device+0x8c/0x180
вер 10 21:16:35 p5q3 kernel: driver_probe_device+0x24/0xd0
вер 10 21:16:35 p5q3 kernel: __driver_attach+0x10b/0x210
вер 10 21:16:35 p5q3 kernel: ? __pfx___driver_attach+0x10/0x10
вер 10 21:16:35 p5q3 kernel: bus_for_each_dev+0x8d/0xf0
вер 10 21:16:35 p5q3 kernel: driver_attach+0x1e/0x30
вер 10 21:16:35 p5q3 kernel: bus_add_driver+0x127/0x240
вер 10 21:16:35 p5q3 kernel: driver_register+0x5e/0x130
вер 10 21:16:35 p5q3 kernel: ? __pfx_radeon_module_init+0x10/0x10 [radeon]
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC1200: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: dig-out=0x11/0x1e
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: inputs:
вер 10 21:16:35 p5q3 kernel: __pci_register_driver+0x62/0x70
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
вер 10 21:16:35 p5q3 kernel: snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
вер 10 21:16:35 p5q3 kernel: s...

Read more...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Yes please file a different issue.

Timo Aaltonen (tjaalton)
Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-mtk/5.15.0-1030.34 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy-linux-mtk' to 'verification-done-jammy-linux-mtk'. If the problem still exists, change the tag 'verification-needed-jammy-linux-mtk' to 'verification-failed-jammy-linux-mtk'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-mtk-v2 verification-needed-jammy-linux-mtk
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.