"Bad swap file entry" message followed by NULL pointer dereference crash

Solution Verified - Updated -

Issue

  • "Bad swap file entry" message followed by NULL pointer dereference crash
[128058.013470] get_swap_device: Bad swap file entry 4003fffffb3cc403
[128058.013487] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[128058.015844] PGD bf8a4f067 P4D bf8a4f067 PUD 0 
[128058.017745] Oops: 0000 [#1] SMP NOPTI
[128058.019549] CPU: 14 PID: 2903458 Comm: ScanTask execut Kdump: loaded Tainted: P           OE    --------- -  - 4.18.0-477.15.1.el8_8.x86_64 #1
[128058.021411] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
[128058.022558] RIP: 0010:do_swap_page+0x432/0x710
[128058.023701] Code: 41 83 ce 08 e9 92 fe ff ff 48 8b 1c 24 48 89 df e8 73 ce fb ff 48 89 df e8 3b b7 ff ff e9 30 ff ff ff 4c 89 ef e8 1e eb 02 00 <48> 8b 00 f6 c4 08 74 11 4c 89 ef e8 4e ab 02 00 83 f8 01 0f 84 6a
[128058.026134] RSP: 0000:ffffae84e7cfbd98 EFLAGS: 00010246
[128058.027329] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[128058.028543] RDX: 0000000000000000 RSI: ffff8b612fd9e698 RDI: 0000000000000010
[128058.029724] RBP: ffffae84e7cfbdf8 R08: 0000000000000000 R09: c0000000ffff7fff
[128058.030875] R10: 0000000000000001 R11: ffffae84e7cfbb90 R12: ffff8b58c058b6a8
[128058.031773] R13: 4003fffffb3cc403 R14: 00007fde24000000 R15: 0000000000000254
[128058.032381] FS:  00007fde38ce0700(0000) GS:ffff8b612fd80000(0000) knlGS:0000000000000000
[128058.032998] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[128058.033622] CR2: 0000000000000000 CR3: 0000000c171ae001 CR4: 00000000007706e0
[128058.034274] PKRU: 55555554
[128058.034907] Call Trace:
[128058.035531]  ? pmd_devmap_trans_unstable+0x2e/0x40
[128058.036165]  ? handle_pte_fault+0x5d/0x880
[128058.036826]  __handle_mm_fault+0x453/0x6c0
[128058.037437]  handle_mm_fault+0xca/0x2a0
[128058.038042]  __do_page_fault+0x1f0/0x450
[128058.038642]  do_page_fault+0x37/0x130
[128058.039268]  ? page_fault+0x8/0x30
[128058.039876]  page_fault+0x1e/0x30
[128058.040465] RIP: 0033:0x7fdee437ee73
[128058.041053] Code: a8 02 75 3b 48 8b 15 14 2f 32 00 64 48 83 3a 00 0f 84 a1 00 00 00 48 8d 3d 5a 3d 32 00 a8 04 74 0c 48 89 f0 48 25 00 00 00 fc <48> 8b 38 48 83 c4 10 31 d2 5b e9 ce c9 ff ff 66 0f 1f 44 00 00 8b
[128058.042307] RSP: 002b:00007fde38cde5f0 EFLAGS: 00010206
[128058.042949] RAX: 00007fde24000000 RBX: 00007fdedd4a1800 RCX: 0000000000000002
[128058.043580] RDX: ffffffffffffffb0 RSI: 00007fde241859f0 RDI: 00007fdee46a2bc0
[128058.044247] RBP: 00007fde38cde630 R08: 0000000000000000 R09: 00007fddf00008d0
[128058.044874] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[128058.045489] R13: 00007fde24185a00 R14: 00007fde38cde898 R15: 00007fde24185a00
[128058.046117] Modules linked in: [...]
    ...
[128058.052060] Red Hat flags: eBPF/rawtrace
[128058.052813] CR2: 0000000000000000

Environment

  • Red Hat Enterprise Linux 8.8.z - kernel-4.18.0-477.15.1.el8_8
  • VMware vSphere ESXi

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