Kernel panic in lc_destroy() function due to involvement of third party kernel module [drbd].

Solution Verified - Updated -

Issue

  • Kernel panic in lc_destroy() function due to the involvement of third-party kernel module [drbd].
  • The system got panicked because of a null pointer dereference inside
    lc_destroy() which belongs to a 3rd party vendor LINBIT.
  • Kernel panics with the following messages:
[1223968.025761] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[1223968.033784] PGD 0 P4D 0 
[1223968.036499] Oops: 0000 [#1] SMP NOPTI
[1223968.040341] CPU: 6 PID: 1974203 Comm: kworker/6:0 Kdump: loaded Tainted: G           OE    --------- -  - 4.18.0-372.26.1.el8_6.x86_64 #1
[1223968.052869] Hardware name: Dell Inc. PowerEdge R740/0DY2X0, BIOS 2.14.2 03/21/2022
[1223968.060617] Workqueue: events drbd_ldev_destroy [drbd]
[1223968.065954] RIP: 0010:lc_destroy+0x21/0x70 [drbd]
[1223968.070849] Code: 00 00 00 00 eb c7 0f 1f 00 0f 1f 44 00 00 48 85 ff 74 5b 55 48 89 fd 53 8b 45 58 48 8b bf a8 00 00 00 85 c0 74 29 31 db 89 d8 <48> 8b 34 c7 48 85 f6 74 37 48 8b 7d 40 48 2b 75 50 e8 39 a0 d8 c2
[1223968.089799] RSP: 0018:ffffa7f52f51be60 EFLAGS: 00010246
[1223968.095203] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000802a000a
[1223968.102518] RDX: 00000000802a000b RSI: 00000000802a000a RDI: 0000000000000000
[1223968.109833] RBP: ffff8f6ca07f0c10 R08: 0000000000000001 R09: ffffffffc0d87b00
[1223968.117150] R10: ffff8f64b03b5500 R11: 0000000000000001 R12: ffff8fa5b459f808
[1223968.124462] R13: ffff8fa5b459f800 R14: ffff8f6a9bfc66c0 R15: ffff8fa5b459f8b8
[1223968.131778] FS:  0000000000000000(0000) GS:ffff8fa0400c0000(0000) knlGS:0000000000000000
[1223968.140047] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[1223968.145972] CR2: 0000000000000000 CR3: 00000070dd010005 CR4: 00000000007706e0
[1223968.153289] PKRU: 55555554
[1223968.156176] Call Trace:
[1223968.158806]  drbd_ldev_destroy+0x31/0xc0 [drbd]
[1223968.163529]  process_one_work+0x1a7/0x360
[1223968.167724]  ? create_worker+0x1a0/0x1a0
[1223968.171831]  worker_thread+0x30/0x390
[1223968.175679]  ? create_worker+0x1a0/0x1a0
[1223968.179788]  kthread+0x10a/0x120
[1223968.183200]  ? set_kthread_struct+0x40/0x40
[1223968.187570]  ret_from_fork+0x1f/0x40
[1223968.191329] Modules linked in: nf_tables mptcp_diag xsk_diag raw_diag unix_diag af_packet_diag netlink_diag dm_snapshot dm_bufio ext4 mbcache jbd2 drbd_transport_tcp(OE) drbd(OE) 

Environment

  • Red Hat Enterprise Linux 8
  • A third-party kernel [drbd] 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