Why does RHEL 8 primary kernel stuck on hung task panic instead of switching to kdump kernel on HyperV?
Issue
- On hung task detection, the RHEL 8 primary kernel gets stuck on hung task panic instead of switching to kdump kernel(crashkernel) on HyperV.
Kernel panic - not syncing: hung_task: blocked tasks
CPU: 8 PID: 124 Comm: khungtaskd Kdump: loaded Not tainted 4.18.0-240.el8.x86_64 #1
Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008 12/07/2018
Call Trace:
dump_stack+0x5c/0x80
panic+0xe7/0x2a9
watchdog+0x22f/0x2e0
? hungtask_pm_notify+0x40/0x40
kthread+0x112/0x130
? kthread_flush_work_fn+0x10/0x10
ret_from_fork+0x1f/0x40
Kernel Offset: 0x8200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[--Stuck here--]
- This can be reproduced by simulating the steps mentioned in the Diagnostic section below.
Environment
- Red Hat Enterprise Linux 8.3 GA and later (4.18.0-240.el8.x86_64 and later)
- Virtual machine running on
HyperV
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.