The kernel crashes with a message, "kernel BUG at mm/huge_memory.c:2227!"

Solution Unverified - Updated -

Issue

  • The kernel crashes with a message, "kernel BUG at mm/huge_memory.c:2227!"
[77469.406581] ------------[ cut here ]------------
[77469.406584] kernel BUG at mm/huge_memory.c:2227!
[77469.406693] invalid opcode: 0000 [#1] SMP PTI
[77469.406777] CPU: 0 PID: 2374 Comm: splunkd Kdump: loaded Not tainted 4.18.0-425.10.1.el8_7.x86_64 #1
[77469.406943] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 12/12/2018
[77469.407133] RIP: 0010:__split_huge_pmd_locked+0x74c/0xb90
[77469.407242] Code: 18 ff ff ff 40 f6 c7 01 75 11 48 f7 d0 48 21 c8 48 25 00 f0 ff ff e9 6e ff ff ff 48 21 c8 48 23 3d 89 12 a8 01 e9 5f ff ff ff <0f> 0b 48 8b 07 48 c1 e8 33 83 e0 07 83 f8 04 0f 85 80 fa ff ff 48
[77469.407597] RSP: 0018:ffffb4b8077dbbb8 EFLAGS: 00010202
[77469.407695] RAX: 0000000107dd9000 RBX: 00007f1427800000 RCX: 8000000212600827
[77469.407824] RDX: ffff93e447dd9000 RSI: 0000000107dd9067 RDI: 0000000000000000
[77469.407953] RBP: ffff93e4601ef9f8 R08: ffff93e340000000 R09: 0000000000000080
[77469.408081] R10: 000fffffffe00000 R11: 0000000000000001 R12: 0000000000000001
[77469.408210] R13: ffffd73408498000 R14: 0000000000000000 R15: 0000000000000000
[77469.408338] FS:  00007f14285ff700(0000) GS:ffff93eb5fc00000(0000) knlGS:0000000000000000
[77469.408484] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[77469.408590] CR2: 00007f14325f6020 CR3: 000000012c9e4004 CR4: 00000000001706f0
[77469.408745] Call Trace:
[77469.408821]  __split_huge_pmd+0x1a9/0x2a0
[77469.408902]  unmap_page_range+0x419/0xdc0
[77469.408989]  zap_page_range+0xe9/0x170
[77469.409065]  ? down_read+0xe/0xa0
[77469.409136]  ? find_vma+0x16/0x70
[77469.409205]  do_madvise.part.25+0x637/0x9b0
[77469.409293]  ? __x64_sys_madvise+0x26/0x30
[77469.409373]  __x64_sys_madvise+0x26/0x30
[77469.409466]  do_syscall_64+0x5b/0x1b0
[77469.409543]  entry_SYSCALL_64_after_hwframe+0x61/0xc6
[77469.409641] RIP: 0033:0x7f14368728db
[77469.409711] Code: 64 89 02 b8 ff ff ff ff c3 48 8b 15 a7 75 2c 00 f7 d8 64 89 02 b8 ff ff ff ff eb bc 0f 1f 00 f3 0f 1e fa b8 1c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d 75 2c 00 f7 d8 64 89 01 48
[77469.410038] RSP: 002b:00007f14285fd388 EFLAGS: 00000206 ORIG_RAX: 000000000000001c
[77469.410176] RAX: ffffffffffffffda RBX: 000000000000000a RCX: 00007f14368728db
[77469.410305] RDX: 0000000000000004 RSI: 000000000000a000 RDI: 00007f142799c000
[77469.410433] RBP: 000000000000018f R08: 0000000000000006 R09: 000000000019c000
[77469.410562] R10: 00007f1437f4e7a0 R11: 0000000000000206 R12: 000000000000000d
[77469.410690] R13: 00007f1427800000 R14: 000000000000019c R15: 00007f142780a5c8
[77469.410825] Modules linked in: [...]

Environment

  • Red Hat Enterprise Linux 8.7.z - kernel-4.18.0-425.10.1.el8_7.x86_64
  • VMware 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