Comment 18 for bug 1970074

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>