[Bug 198999] New: kernel panic when booting when "CONFIG_DEBUG_SG=y" is set in config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=198999

            Bug ID: 198999
           Summary: kernel panic when booting when "CONFIG_DEBUG_SG=y" is
                    set in config
           Product: IO/Storage
           Version: 2.5
    Kernel Version: 4.15.7
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Serial ATA
          Assignee: tj@xxxxxxxxxx
          Reporter: orflingkelvin@xxxxxxxxxxxxxx
                CC: linux-ide@xxxxxxxxxxxxxxx
        Regression: No

Kernel panic immediately when booting into initramfs. I'm using full disk
encryption with a custom encrypt hook. Only happens when "CONFIG_DEBUG_SG=y" is
set in config.


kernel BUG at ./include/linux/scatterlist.h:147!
invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Modules linked in: uas usb_storage rtsx_pci_sdmc mmc_core serio_raw atkbd
libps2 crct10dif_pclmul crc32_pclmul crc32_intel ghash_clmulni_intel pcbc ahci
aesni_intel aes_x864_64 crypto_simd libahci glue_helper cryptd xhci_pci libata
ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore ccp usb_common rtsx_pci rng_core
i8042 serio loop
CPU: 0 PID: 200 Comm: scsi_eh_1 Not tainted 4.15.4-1-hardened #1
Hardware Name: *omitted*
RIP: 0010:sg_init_one+0x85/0xa0
RSP: 0018:ffffa4bcc09fbad8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffa4bcc09fbb78 RCX: 0000000000000028
RDX: 00000a11409fbb78 RSI: 000000000000000a RDI: ffffa4bd409fbb78
RBP: 0000000000000010 R08: ffffa4bcc09fbb00 R09: ffffa4bcc09fbb00
R10: ffffa4bcc09fba70 R11: ffffffffc012bbb7 R12: ffffa4bcc09fbb00
R13: ffffffffc012a878 R14: ffffffffc012a878 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8aacbec00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00006c4ecc73fe97 CR3: 0000000136644000 CR4: 00000000000406f0

Call Trace:
ata_exec_internal+0x44/0x90 [libata]
zpodd_init+0xeb/0x1c0 [libata]
ata_dev_configure+0x10f9/0x1630 [libata]
ata_eh_recover+0x997/0x1370 [libata]
? ata_phys_link_offline+0x60/0x60 [libata]
? ahci_do_softreset+0x270/0x270 [libahci]
? ahci_do_hardreset+0x140/0x140 [libahci]
? ahci_pmp_attach+0x60+0x60 [libahci]
? ahci_do_softreset+0x270/0x270 [libahci]
sata_pmp_error_handler+0x541/0xa40 [libata]
?__clear_rsb+0x15/0x3d
? ahci_do_hardreset+0x140/0x140 [libahci]
? ahci_do_softreset+0x270/0x270 [libahci]
? ahci_pmp_attach+0x60+0x60 [libahci]
? ata_phys_link_offline+0x60/0x60 [libata]
? _raw_spin_lock_irqsave+0x25/0x50
? lock_timer_base+0x67/0x80
ahci_error_handler+0x18/0x60 [libahci]
ata_scsi_port_error_handler+0x292/0x760 [libata]
? scsi_eh_get_sense+0x1e0/0x1e0 [scsi_mod]
ata_scsi_error+0x91/0xc0 [libata]
? scsi_try_target_reset+0x90/0x90 [scsi_mod]
scsi_error_handler+0xd1/0x5b0 [scsi_mod]
? scsi_eh_get_sense+0x1e0/0x1e0 [scsi_mod]
kthread+0x113/0x130
? kthread_create_on_node+0x70/0x70
ret_from_fork+0x22/0x40
Code: 2e 49 8b 54 24 08 f6 c2 01 75 26 83 e2 03 81 e3 ff 0f 00 00 41 89 6c 24
14 48 09 d0 41 89 5c 24 10 49 89 44 24 08 5b 5d 41 5c c3 <0f> 0b 0f 0b 0f 0b 0f
0b 48 8b 15 3c 61 c8 00 eb a4 66 2e 0f 1f
RIP: sg_init_one+0x85/0xa0 RSP: ffffa4bcc09fbad8
---[end trace 44ceaec880f04c7c ]---
Kernel panic - not syncing: Fatal exception
Kernel offset: 0x1e000000 from 0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff
---[end Kernel panic - not syncing: Fatal exception

-- 
You are receiving this mail because:
You are on the CC list for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux