kernel panic running mkfs.ext4 on software raid1 partitions with “kernel BUG at drivers/scsi/scsi_lib.c:1136!”

Solution In Progress - Updated -

Issue

  • kernel panic running mkfs.ext4 on software raid1 partitions with RIP : scsi_init_io+0x1dc/0x210
  • kernel panic creating filesystem on software raid1 partition with kernel BUG at drivers/scsi/scsi_lib.c:1136!
  • System panics with following call traces :
[  566.069266] ------------[ cut here ]------------
[  566.069268] kernel BUG at drivers/scsi/scsi_lib.c:1136!
[  566.069269] invalid opcode: 0000 [#1] SMP 
[  566.069271] Modules linked in: raid1 fuse xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter dm_mirror dm_region_hash dm_log dm_mod vfat fat intel_powerclamp coretemp intel_rapl iosf_mbi kvm_intel kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper ipmi_devintf cryptd pcspkr ipmi_ssif ses enclosure i2c_core sg hpilo hpwdt shpchp
[  566.069306]  wmi ipmi_si ipmi_msghandler acpi_power_meter nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables ext4 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common crc32c_intel tg3 ptp pps_core uas smartpqi ahci usb_storage libahci scsi_transport_sas libata fjes
[  566.069322] CPU: 21 PID: 6606 Comm: kworker/21:1H Not tainted 3.10.0-514.el7.x86_64 #1
[  566.069323] Hardware name: HPE ProLiant DL560 Gen10/ProLiant DL560 Gen10, BIOS U34 03/11/2017
[  566.069328] Workqueue: kblockd blk_delay_work
[  566.069329] task: ffff880093078fb0 ti: ffff88009ddf8000 task.ti: ffff88009ddf8000
[  566.069331] RIP: 0010:[<ffffffff8145855c>]  [<ffffffff8145855c>] scsi_init_io+0x1dc/0x210
[  566.069340] RSP: 0018:ffff88009ddfbc68  EFLAGS: 00010046
[  566.069341] RAX: ffff880235d1a800 RBX: ffff88022ffcbc00 RCX: 0000000000000200
[  566.069342] RDX: ffff88022ffcbc00 RSI: 0000000000000020 RDI: ffff88009efe0380
[  566.069343] RBP: ffff88009ddfbca0 R08: ffff880235d1a838 R09: ffffffff8144fd6b
[  566.069344] R10: ffff88009efe0700 R11: 000000000000000a R12: ffff88009efe0300
[  566.069345] R13: ffff88022ffcbc00 R14: ffff880235d1a800 R15: ffff88009efe0380
[  566.069346] FS:  0000000000000000(0000) GS:ffff880237b40000(0000) knlGS:0000000000000000
[  566.069347] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  566.069348] CR2: 00007f3e25bb9000 CR3: 00000000019ba000 CR4: 00000000003407e0
[  566.069349] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  566.069350] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  566.069351] Stack:
[  566.069351]  ffff880233b85000 ffff880235d1a800 ffff88022ffcbc00 ffff88009efe0380
[  566.069353]  ffff88018369ac00 ffff880235d1a800 0000000000000200 ffff88009ddfbcf0
[  566.069355]  ffffffffa00d6dcd ffff88009ddfbce8 ffffffff8144fe0a 0000000000048800
[  566.069356] Call Trace:
[  566.069362]  [<ffffffffa00d6dcd>] sd_setup_read_write_cmnd+0x3d/0x970 [sd_mod]
[  566.069364]  [<ffffffff8144fe0a>] ? __scsi_get_command+0x1a/0xf0
[  566.069368]  [<ffffffffa00d9aef>] sd_init_command+0x2f/0xc0 [sd_mod]
[  566.069370]  [<ffffffff8145868a>] scsi_setup_cmnd+0xfa/0x180
[  566.069372]  [<ffffffff8145887b>] scsi_prep_fn+0xdb/0x180
[  566.069377]  [<ffffffff812efb16>] blk_peek_request+0x156/0x280
[  566.069379]  [<ffffffff8145a428>] scsi_request_fn+0x48/0x770
[  566.069546]  [<ffffffff81029569>] ? __switch_to+0xd9/0x4c0
[  566.069810]  [<ffffffff812eb053>] __blk_run_queue+0x33/0x40
[  566.069811]  [<ffffffff812ed185>] blk_delay_work+0x25/0x60
[  566.069814]  [<ffffffff810a7f3b>] process_one_work+0x17b/0x470
[  566.069815]  [<ffffffff810a8d76>] worker_thread+0x126/0x410
[  566.069817]  [<ffffffff810a8c50>] ? rescuer_thread+0x460/0x460
[  566.069884]  [<ffffffff810b052f>] kthread+0xcf/0xe0
[  566.069886]  [<ffffffff810b0460>] ? kthread_create_on_node+0x140/0x140
[  566.069935]  [<ffffffff81696418>] ret_from_fork+0x58/0x90
[  566.069936]  [<ffffffff810b0460>] ? kthread_create_on_node+0x140/0x140
[  566.069937] Code: 8b 16 e8 88 e5 eb ff 39 45 cc 7c 43 49 8b 55 38 0f b7 92 18 06 00 00 39 d0 7f 32 4d 89 b7 f0 00 00 00 41 89 46 08 e9 4e ff ff ff <0f> 0b be 92 04 00 00 48 c7 c7 6d 95 93 81 41 b6 01 e8 de d3 c2 
[  566.069955] RIP  [<ffffffff8145855c>] scsi_init_io+0x1dc/0x210
[  566.069957]  RSP <ffff88009ddfbc68>

Environment

  • Red Hat Enterprise Linux 7
  • RAID1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content