Kernel panics while unloading twnotify module with error invalid opcod or BUG: unable to handle kernel paging request during reboot post patching
Issue
- System is experiencing a kernel panic with "invalid opcode" or "BUG: unable to handle kernel paging request" errors when shutting down after applying patches:
[ 563.403029] 8574 twnotify: twnotify_cleanup_module: starting...
[ 563.406202] 8574 twnotify: twnotify_set_qlimit: Starting set qlimit=0 (was 0 with 0 active entries)
[ 563.410679] 8574 twnotify: twnotify_cleanup_module: unregistering ...
[ 563.414069] 8574 twnotify: twnotify_cleanup_module: done.
[ 563.416870] twnotify: exit done
[ 572.582222] BUG: unable to handle kernel paging request at ffffffffc0689c1b
[ 572.583205] IP: [<ffffffffc0689c1b>] 0xffffffffc0689c1b
[ 572.583205] PGD 25414067 PUD 25416067 PMD 2b6973067 PTE 0
[ 572.583205] Oops: 0010 [#1] SMP
[ 572.583205] CPU: 1 PID: 4683 Comm: grep Kdump: loaded Tainted: G OE ------------ T 3.10.0-1160.119.1.el7.x86_64 #1
[ 572.583205] task: ffff8b7ef50c6300 ti: ffff8b7e6523c000 task.ti: ffff8b7e6523c000
[ 572.583205] RIP: 0010:[<ffffffffc0689c1b>] [<ffffffffc0689c1b>] 0xffffffffc0689c1b
[ 572.583205] RSP: 0018:ffff8b7e6523ff38 EFLAGS: 00010282
[ 572.583205] RAX: ffffffffffffffe0 RBX: 0000000000000000 RCX: ffff8b7e97a37030
[ 572.583205] RDX: 0000000000001000 RSI: 0000000000000000 RDI: ffff8b7ef5670300
[ 572.583205] RBP: ffff8b7e6523ff48 R08: ffff8b7ef50c6a90 R09: ffff8b7ef4203640
[ 572.583205] R10: 000000000000000c R11: 0000000000000005 R12: 0000000000000001
[ 572.583205] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 572.583205] FS: 00007ff0229aa740(0000) GS:ffff8b7effd00000(0000) knlGS:0000000000000000
[ 572.670019] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 572.670019] CR2: ffffffffc0689c1b CR3: 00000002250d0000 CR4: 0000000000360ee0
[ 572.670019] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 572.670019] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 572.670019] Call Trace:
[ 572.670019] [<ffffffffb0bc539a>] system_call_fastpath+0x25/0x2a
[ 572.670019] Code: Bad RIP value.
[ 572.670019] RIP [<ffffffffc0689c1b>] 0xffffffffc0689c1b
[ 572.670019] RSP <ffff8b7e6523ff38>
[ 572.670019] CR2: ffffffffc0689c1b
[ 572.670019] ---[ end trace c4a4339cae09b122 ]---
[ 572.670019] Kernel panic - not syncing: Fatal exception
[ 572.670019] Kernel Offset: 0x2f400000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Environment
- Red Hat Enterprise Linux 7
- Third-party kernel module [twnotify]
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.