Kernel panic due to BUG_ON() in the third party kernel module [scst]

Solution Unverified - Updated -

Issue

  • Kernel panics with the following messages:
[187360.367247] kernel BUG at /home/dev/workspace/vxos_scst_qlogic_dev_rhel76_compile/kernel_rpms/scst-qlogic/rpmbuild/BUILD/scst-qlogic/scst-qlogic/scst/src/scst_targ.c:7416!
[187360.367298] invalid opcode: 0000 [#1] SMP 
[187360.367327] Modules linked in: qla2x00tgt(OE) scst(OE) [..]
[187360.371139] CPU: 8 PID: 191925 Comm: kworker/8:0 Kdump: loaded Tainted: P           OE  ------------   3.10.0-957.72.1.el7.x86_64 #1
[187360.371576] Hardware name: Veritas NetBackup Appliance 5240/S2600WTTR, BIOS SE5C610.86B.01.01.0029.052820200607 05/28/2020
[187360.372012] Workqueue: events q2t_sess_work_fn [qla2x00tgt]
[187360.372217] task: ffff9a2773df1040 ti: ffff9a2b45d04000 task.ti: ffff9a2b45d04000
[187360.372638] RIP: 0010:[<ffffffffc0fdebbd>]  [<ffffffffc0fdebbd>] scst_rx_mgmt_fn+0x3cd/0x420 [scst]
[--]
[187360.376383] Call Trace:
[187360.376604]  [<ffffffffc0fdf6c1>] scst_unregister_session+0x71/0x150 [scst]
[187360.376821]  [<ffffffffc1345946>] q2t_unreg_sess+0xc6/0x1a0 [qla2x00tgt]
[187360.377043]  [<ffffffffc1345a47>] q2t_sess_put+0x27/0x70 [qla2x00tgt]
[187360.377250]  [<ffffffffc1352fed>] q2t_exec_sess_work+0x14d/0xdb0 [qla2x00tgt]
[187360.377675]  [<ffffffffc1353d0f>] q2t_sess_work_fn+0xbf/0x1f0 [qla2x00tgt]
[187360.377893]  [<ffffffff8cabb50f>] process_one_work+0x17f/0x440
[187360.378107]  [<ffffffff8cabc5a6>] worker_thread+0x126/0x3c0
[187360.378320]  [<ffffffff8cabc480>] ? manage_workers.isra.25+0x2a0/0x2a0
[187360.378548]  [<ffffffff8cac33f1>] kthread+0xd1/0xe0
[187360.378767]  [<ffffffff8cac3320>] ? insert_kthread_work+0x40/0x40
[187360.378997]  [<ffffffff8d179c1d>] ret_from_fork_nospec_begin+0x7/0x21
[187360.379204]  [<ffffffff8cac3320>] ? insert_kthread_work+0x40/0x40
[187360.379418] Code: 48 89 44 24 08 4c 89 24 24 41 b8 f7 1c 00 00 48 c7 c1 d0 fd 01 c1 48 c7 c2 52 15 03 c1 48 c7 c6 74 15 03 c1 31 c0 e8 d3 b8 02 00 <0f> 0b 48 8b 3d 72 b3 0a 00 48 05 c8 00 00 00 49 c7 c1 e0 7a 02 
[187360.380312] RIP  [<ffffffffc0fdebbd>] scst_rx_mgmt_fn+0x3cd/0x420 [scst]
[187360.380558]  RSP <ffff9a2b45d07bd8>

Environment

  • Red Hat Enterprise Linux 7.
  • Third-Party [scst] kernel module.

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