kernel panic due to kernel BUG at drivers/scsi/scsi_lib.c:1661

Solution Unverified - Updated -

Issue

  • Kernel panic occurs with kernel BUG at drivers/scsi/scsi_lib.c:1661!.
  • Call trace is like below.
[4343368.461900] impossible request in scsi_request_fn.
                 please mail a stack trace to linux-scsi@vger.kernel.org
[4343368.461906] foo: dev sda: type=1, flags=1d8020
[4343368.461908]   sector 2149994491, nr/cnr 1/1
[4343368.461910]   bio ffff9a2c7b2de118, biotail ffff9a2c7b2de118, buffer ffff9a2c5ce1e200, len 512
[4343368.461938] ------------[ cut here ]------------
[4343368.461940] kernel BUG at drivers/scsi/scsi_lib.c:1661!
[4343368.461942] invalid opcode: 0000 [#1] SMP 
[4343368.461944] Modules linked in: macsec tcp_diag udp_diag inet_diag unix_diag af_packet_diag netlink_diag binfmt_misc snapapi26(POE) rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache bonding nf_conntrack_netbios_ns nf_conntrack_broadcast 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 vfat fat iTCO_wdt iTCO_vendor_support dell_smbios dell_wmi_descriptor dcdbas skx_edac intel_powerclamp coretemp intel_rapl iosf_mbi kvm_intel kvm
[4343368.461981]  irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd pcspkr sg i2c_i801 lpc_ich mei_me mei wmi ipmi_si ipmi_devintf ipmi_msghandler acpi_pad acpi_power_meter nfsd nfs_acl lockd grace auth_rpcgss sunrpc ip_tables xfs libcrc32c sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common crc32c_intel mgag200 i2c_algo_bit drm_kms_helper megaraid_sas syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm ahci libahci tg3 libata drm_panel_orientation_quirks ptp pps_core nfit libnvdimm dm_mirror dm_region_hash dm_log dm_mod
[4343368.462013] CPU: 4 PID: 395290 Comm: kworker/4:1H Kdump: loaded Tainted: P           OE  ------------ T 3.10.0-957.el7.x86_64 #1
[4343368.462015] Hardware name: XXXXX, BIOS 2.10.2 02/24/2021
[4343368.462021] Workqueue: kblockd blk_delay_work
[4343368.462023] task: ffff9a2ceae30000 ti: ffff9a24dcc68000 task.ti: ffff9a24dcc68000
[4343368.462025] RIP: 0010:[<ffffffff9f0d9ff6>]  [<ffffffff9f0d9ff6>] scsi_request_fn+0x5c6/0x680
[4343368.462031] RSP: 0018:ffff9a24dcc6bd90  EFLAGS: 00010297
[4343368.462032] RAX: 0000000000000052 RBX: ffff9a2d13767800 RCX: 0000000000000006
[4343368.462034] RDX: 0000000000000000 RSI: 0000000000000246 RDI: ffff9a2d18b13890
[4343368.462035] RBP: ffff9a24dcc6bde8 R08: 000000000000000a R09: 0000000000000000
[4343368.462036] R10: 0000000000000d97 R11: ffff9a24dcc6ba6e R12: ffff9a2d12400000
[4343368.462038] R13: ffff9a2d12740998 R14: 0000000000000000 R15: ffff9a2c153c4480
[4343368.462039] FS:  0000000000000000(0000) GS:ffff9a2d18b00000(0000) knlGS:0000000000000000
[4343368.462041] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[4343368.462042] CR2: 00007f94bee13000 CR3: 00000008156b8000 CR4: 00000000007607e0
[4343368.462044] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[4343368.462045] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[4343368.462046] PKRU: 00000000
[4343368.462047] Call Trace:
[4343368.462052]  [<ffffffff9ef42ff9>] __blk_run_queue+0x39/0x50
[4343368.462055]  [<ffffffff9ef43665>] blk_delay_work+0x25/0x40
[4343368.462060]  [<ffffffff9ecb9d4f>] process_one_work+0x17f/0x440
[4343368.462063]  [<ffffffff9ecbade6>] worker_thread+0x126/0x3c0
[4343368.462065]  [<ffffffff9ecbacc0>] ? manage_workers.isra.25+0x2a0/0x2a0
[4343368.462068]  [<ffffffff9ecc1c31>] kthread+0xd1/0xe0
[4343368.462071]  [<ffffffff9ecc1b60>] ? insert_kthread_work+0x40/0x40
[4343368.462075]  [<ffffffff9f374c1d>] ret_from_fork_nospec_begin+0x7/0x21
[4343368.462078]  [<ffffffff9ecc1b60>] ? insert_kthread_work+0x40/0x40
[4343368.462079] Code: e6 ff e9 0e fb ff ff 48 c7 c6 b0 b5 47 9f 48 c7 c7 e0 82 6d 9f 31 c0 e8 20 16 28 00 48 c7 c6 f1 7d 6b 9f 4c 89 ff e8 da 7c e6 ff <0f> 0b 48 c7 c1 98 81 6d 9f 31 d2 48 89 de 48 c7 c7 6a 0e 65 9f 
[4343368.462106] RIP  [<ffffffff9f0d9ff6>] scsi_request_fn+0x5c6/0x680
[4343368.462108]  RSP <ffff9a24dcc6bd90>

Environment

  • Red Hat Enterprise Linux 7.6
  • kernel-3.10.0-957.el7

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