Re: [Kernel-packages] [Bug 1970074] Re: UBSAN: array-index-out-of-bounds in /build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41
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 <1970...@bugs.launchpad.net> > 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 110206/11/2010 > [1.980718] kernel: Call Trace: > [1.980721] kernel: > [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: > > 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: > USERPID ACCESS COMMAND > /dev/snd/controlC0: eugene16798 F pulseaudio > /dev/snd/pcmC0D0p: eugene16798 F...m pulseaudio > /dev/snd/controlC1: eugene16798 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: > lono wireless extensions. > > enp2s0no wireless extensions. > > virbr0no wireless extensions. > MachineType: System manufacturer System Product Name > ProcEnviron: > LANGUAGE= > PATH=(custom, no user) > XDG_RUNTIME_DIR= > LANG=uk_UA.UTF-8 > SHELL=/bin/bash > ProcFB: 0 radeondrmfb > ProcKernelCmdLine:
Re: [Kernel-packages] [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 > -- 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 110206/11/2010 [1.980718] kernel: Call Trace: [1.980721] kernel: [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: 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: USERPID ACCESS COMMAND /dev/snd/controlC0: eugene16798 F pulseaudio /dev/snd/pcmC0D0p: eugene16798 F...m pulseaudio /dev/snd/controlC1: eugene16798 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: lono wireless extensions. enp2s0no wireless extensions. virbr0no wireless extensions. MachineType: System manufacturer System Product Name ProcEnviron: LANGUAGE= PATH=(custom, no user) XDG_RUNTIME_DIR= 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
[Kernel-packages] [Bug 1970074] Re: UBSAN: array-index-out-of-bounds in /build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41
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 = 158855 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==5 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 } -- 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 110206/11/2010 [1.980718] kernel: Call Trace: [1.980721] kernel: [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: 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: USERPID ACCESS COMMAND /dev/snd/controlC0: eugene16798 F pulseaudio /dev/snd/pcmC0D0p: eugene16798 F...m pulseaudio /dev/snd/controlC1: eugene16798 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: lono wireless extensions. enp2s0no wireless extensions. virbr0no wireless extensions. MachineType: System manufacturer System Product Name ProcEnviron: LANGUAGE= PATH=(custom, no user) XDG_RUNTIME_DIR= 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