System got crashed with error 'RIP [<ffffffffc057dfab>] issue_discard+0x17b/0x200 [dm_thin_pool]'

Solution Verified - Updated -

Issue

  • The system crashed with following errors and call traces:

    BUG: unable to handle kernel NULL pointer dereference at           (null)
    IP: [<ffffffffc057dfab>] issue_discard+0x17b/0x200 [dm_thin_pool]
    PGD 355fd067 PUD bb4ee067 PMD 0 
    Oops: 0002 [#1] SMP 
    [...]
    CPU: 1 PID: 14995 Comm: kworker/u16:2 Kdump: loaded Tainted: P           OE  ------------   3.10.0-1160.25.1.el7.x86_64 #1
    Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/28/2020
    Workqueue: dm-thin do_worker [dm_thin_pool]
    task: ffff8f77c20e0000 ti: ffff8f76025d4000 task.ti: ffff8f76025d4000
    RIP: 0010:[<ffffffffc057dfab>]  [<ffffffffc057dfab>] issue_discard+0x17b/0x200 [dm_thin_pool]
    RSP: 0018:ffff8f76025d7b60  EFLAGS: 00010246
    RAX: ffff8f782ee20680 RBX: 0000000000000200 RCX: 0000000000000000
    RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000246
    RBP: ffff8f76025d7bc0 R08: 0000000000000000 R09: 0000000000000000
    R10: 0000000000000004 R11: ffffffffffffffff R12: 0000000000000000
    R13: 0000000000000000 R14: 0000000003dc0380 R15: 0000000000000200
    FS:  0000000000000000(0000) GS:ffff8f783fc40000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 0000000000000000 CR3: 0000000036486000 CR4: 00000000007607e0
    PKRU: 00000000
    Call Trace:
     [<ffffffffc057fc5a>] process_prepared_discard_passdown_pt1+0x10a/0x1f0 [dm_thin_pool]
     [<ffffffffc057d458>] process_discard_cell_passdown+0x188/0x230 [dm_thin_pool]
     [<ffffffffc057c614>] process_discard_bio+0xe4/0x110 [dm_thin_pool]
     [<ffffffffc0580acb>] do_worker+0x60b/0x9a0 [dm_thin_pool]
     [<ffffffffa56bddcf>] process_one_work+0x17f/0x440
     [<ffffffffa56beee6>] worker_thread+0x126/0x3c0
     [<ffffffffa56bedc0>] ? manage_workers.isra.26+0x2a0/0x2a0
     [<ffffffffa56c5da1>] kthread+0xd1/0xe0
     [<ffffffffa56c5cd0>] ? insert_kthread_work+0x40/0x40
     [<ffffffffa5d95ddd>] ret_from_fork_nospec_begin+0x7/0x21
     [<ffffffffa56c5cd0>] ? insert_kthread_work+0x40/0x40
     [2285721.993412] Code: 00 00 e8 b9 e3 30 e5 4d 85 ed 49 89 c4 74 18 48 89 c6 4c 89 ef e8 56 d4 30 e5 4c 89 ee bf 81 00 00 00 e8 59 78 3d e5 48 8b 45 c8 <4d> 89 34 24 4c 29 fb 49 89 44 24 10 44 89 f8 c1 e0 09 41 89 44 
     [2285721.995255] RIP  [<ffffffffc057dfab>] issue_discard+0x17b/0x200 [dm_thin_pool]
     [2285721.996272]  RSP <ffff8f76025d7b60>
     [2285721.997010] CR2: 0000000000000000
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

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