Kernel Panic : "general protection fault: 0000 [#1] SMP NOPTI"

Solution Unverified - Updated -

Issue

  • Kernel Panic : "general protection fault: 0000 [#1] SMP NOPTI"
crash> bt 
PID: 266553   TASK: ff3f57e5ac265ac0  CPU: 14   COMMAND: "worker"
 #0 [ff6f5f5b640a77b8] machine_kexec at ffffffff9c46156e
 #1 [ff6f5f5b640a7810] __crash_kexec at ffffffff9c58f99d
 #2 [ff6f5f5b640a78d8] crash_kexec at ffffffff9c59088d
 #3 [ff6f5f5b640a78f0] oops_end at ffffffff9c42434d
 #4 [ff6f5f5b640a7910] general_protection at ffffffff9ce010ce
    [exception RIP: sd_init_command+696]
    RIP: ffffffffc04acf38  RSP: ff6f5f5b640a79c8  RFLAGS: 00010282
    RAX: 0000000000000000  RBX: ff3f5801de36b8f8  RCX: 0000000000000000
    RDX: 0000000000000000  RSI: b73ef0e0bce9b20d  RDI: 0000000000000018
    RBP: ff3f5801de36b7d0   R8: ff3f5801de36b7d0   R9: 000000005b015d58
    R10: 0000000000000000  R11: ff3f5801de36bb18  R12: 0000000000000001
    R13: 000000005b015d58  R14: 0000000000000001  R15: ff3f57fe97ef6000
    ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
 #5 [ff6f5f5b640a7a38] scsi_queue_rq at ffffffff9ca2af6a
 #6 [ff6f5f5b640a7a88] __blk_mq_try_issue_directly at ffffffff9c850be8
 #7 [ff6f5f5b640a7ae0] blk_mq_request_issue_directly at ffffffff9c8517ae
 #8 [ff6f5f5b640a7b20] blk_mq_try_issue_list_directly at ffffffff9c85186d
 #9 [ff6f5f5b640a7b50] blk_mq_sched_insert_requests at ffffffff9c8564c5
#10 [ff6f5f5b640a7b88] blk_mq_flush_plug_list at ffffffff9c8516a7
#11 [ff6f5f5b640a7bf8] blk_flush_plug_list at ffffffff9c846237
#12 [ff6f5f5b640a7c48] blk_finish_plug at ffffffff9c846281
#13 [ff6f5f5b640a7c58] iomap_dio_rw at ffffffff9c78e1aa
#14 [ff6f5f5b640a7d08] xfs_file_dio_aio_write at ffffffffc0ad8a4e [xfs]
#15 [ff6f5f5b640a7d68] xfs_file_write_iter at ffffffffc0ad8fbb [xfs]
#16 [ff6f5f5b640a7d80] do_iter_readv_writev at ffffffff9c716cb6
#17 [ff6f5f5b640a7dc8] do_iter_write at ffffffff9c717f90
#18 [ff6f5f5b640a7df8] vfs_writev at ffffffff9c718163
#19 [ff6f5f5b640a7ef8] do_pwritev at ffffffff9c718379
#20 [ff6f5f5b640a7f38] do_syscall_64 at ffffffff9c40420b
#21 [ff6f5f5b640a7f50] entry_SYSCALL_64_after_hwframe at ffffffff9ce000ad
    RIP: 00007f61eea118d2  RSP: 00007f56fddf8650  RFLAGS: 00000246
    RAX: ffffffffffffffda  RBX: 000000000000000d  RCX: 00007f61eea118d2
    RDX: 0000000000000003  RSI: 000055e0c8220e58  RDI: 000000000000000d
    RBP: 000055e0c8220e58   R8: 0000000000000000   R9: 0000000000000000
    R10: 0000000a7449b000  R11: 0000000000000246  R12: 0000000000000003
    R13: 0000000a7449b000  R14: 000055e0c93c8e30  R15: 00007f56fddf8800
    ORIG_RAX: 0000000000000128  CS: 0033  SS: 002b

kernel ring buffer shows

[Sat Feb 24 00:30:51 EST 2024] megaraid_sas 0000:4b:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009
[Sat Feb 24 00:30:51 EST 2024] megaraid_sas 0000:4b:00.0: FW in FAULT state Fault code:0x10000 subcode:0x0 func:megasas_wait_for_outstanding_fusion
[Sat Feb 24 00:30:51 EST 2024] megaraid_sas 0000:4b:00.0: resetting fusion adapter scsi0.
[Sat Feb 24 00:30:51 EST 2024] megaraid_sas 0000:4b:00.0: Outstanding fastpath IOs: 0
[Sat Feb 24 00:31:04 EST 2024] megaraid_sas 0000:4b:00.0: Waiting for FW to come to ready state
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: FW now in Ready state
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: FW now in Ready state
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Current firmware supports maximum commands: 4077       LDIO threshold: 0
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Performance mode :Latency (latency index = 1)
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: FW supports sync cache        : Yes
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: FW provided supportMaxExtLDs: 1       max_lds: 64
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: controller type       : MR(2048MB)
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Online Controller Reset(OCR)  : Enabled
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Secure JBOD support   : Yes
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: NVMe passthru support : Yes
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: FW provided TM TaskAbort/Reset timeout        : 6 secs/60 secs
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: JBOD sequence map support     : Yes
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: PCI Lane Margining support    : No
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Adapter is OPERATIONAL for scsi:0
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Snap dump wait time   : 15
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: Reset successful for scsi0.
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: 13707 (boot + 10s/0x0020/CRIT) - Controller encountered an error and was reset
[Sat Feb 24 00:31:18 EST 2024] megaraid_sas 0000:4b:00.0: scanning for scsi0...
[Mon Apr 22 12:05:47 EDT 2024] general protection fault: 0000 [#1] SMP NOPTI
[Mon Apr 22 12:05:47 EDT 2024] CPU: 14 PID: 266553 Comm: worker Kdump: loaded Tainted: G        W        --------- -  - 4.18.0-305.el8.x86_64 #1
[Mon Apr 22 12:05:47 EDT 2024] Hardware name: Inspur NF5468M6/NF5468M6, BIOS 06.00.01 11/29/2021
[Mon Apr 22 12:05:47 EDT 2024] RIP: 0010:sd_init_command+0x2b8/0xc20 [sd_mod]
[Mon Apr 22 12:05:47 EDT 2024] Code: 48 8b 54 24 08 48 8b b3 78 01 00 00 41 83 e6 01 48 c1 e9 0e 45 89 f4 83 e1 08 0f b6 92 3a 04 00 00 48 85 f6 0f 84 f4 06 00 00 <8b> 76 08 85 f6 4
1 0f 95 c1 83 fa 03 77 1c 48 8b 43 38 48 8b 38 89
[Mon Apr 22 12:05:47 EDT 2024] RSP: 0018:ff6f5f5b640a79c8 EFLAGS: 00010282
[Mon Apr 22 12:05:47 EDT 2024] RAX: 0000000000000000 RBX: ff3f5801de36b8f8 RCX: 0000000000000000
[Mon Apr 22 12:05:47 EDT 2024] RDX: 0000000000000000 RSI: b73ef0e0bce9b20d RDI: 0000000000000018
[Mon Apr 22 12:05:47 EDT 2024] RBP: ff3f5801de36b7d0 R08: ff3f5801de36b7d0 R09: 000000005b015d58
[Mon Apr 22 12:05:47 EDT 2024] R10: 0000000000000000 R11: ff3f5801de36bb18 R12: 0000000000000001
[Mon Apr 22 12:05:47 EDT 2024] R13: 000000005b015d58 R14: 0000000000000001 R15: ff3f57fe97ef6000
[Mon Apr 22 12:05:47 EDT 2024] FS:  00007f56fddf9700(0000) GS:ff3f5801efd80000(0000) knlGS:0000000000000000
[Mon Apr 22 12:05:47 EDT 2024] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Mon Apr 22 12:05:47 EDT 2024] CR2: 00007f408306e140 CR3: 0000001d9f37a001 CR4: 0000000000773ee0
[Mon Apr 22 12:05:47 EDT 2024] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[Mon Apr 22 12:05:47 EDT 2024] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[Mon Apr 22 12:05:47 EDT 2024] PKRU: 55555554
[Mon Apr 22 12:05:47 EDT 2024] Call Trace:
[Mon Apr 22 12:05:47 EDT 2024]  ? ktime_get+0x36/0xa0
[Mon Apr 22 12:05:47 EDT 2024]  scsi_queue_rq+0x30a/0xa90
[Mon Apr 22 12:05:47 EDT 2024]  __blk_mq_try_issue_directly+0x128/0x1d0
[Mon Apr 22 12:05:47 EDT 2024]  blk_mq_request_issue_directly+0x4e/0xb0
[Mon Apr 22 12:05:47 EDT 2024]  blk_mq_try_issue_list_directly+0x5d/0xe0
[Mon Apr 22 12:05:47 EDT 2024]  blk_mq_sched_insert_requests+0xa5/0xf0
[Mon Apr 22 12:05:47 EDT 2024]  blk_mq_flush_plug_list+0x127/0x1e0
[Mon Apr 22 12:05:47 EDT 2024]  blk_flush_plug_list+0xd7/0x100
[Mon Apr 22 12:05:47 EDT 2024]  ? iomap_dio_bio_actor+0x390/0x390
[Mon Apr 22 12:05:47 EDT 2024]  blk_finish_plug+0x21/0x2e
[Mon Apr 22 12:05:47 EDT 2024]  iomap_dio_rw+0x44a/0x500
[Mon Apr 22 12:05:47 EDT 2024]  ? xfs_file_dio_aio_write+0x10e/0x2d0 [xfs]
[Mon Apr 22 12:05:47 EDT 2024]  xfs_file_dio_aio_write+0x10e/0x2d0 [xfs]
[Mon Apr 22 12:05:47 EDT 2024]  xfs_file_write_iter+0x8b/0xc0 [xfs]
[Mon Apr 22 12:05:47 EDT 2024]  do_iter_readv_writev+0x156/0x1b0

Environment

  • Red Hat Enterprise Linux 8.4 GA
    • kernel-4.18.0-305.el8

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