Today in this article, we will look how to verify if kernel.hung_task_panic parameter is working fine or not as we have checked in below article.
Lets test this scenario and verify hung task panic if it works fine or not.
1. On first terminal: Run an infinite look for a disk write job.
# while true; do dd if=/dev/zero of=/tmp/dd_tempfile bs=15 count=2100; done
2. On Second terminal: Freeze this mount point /tmp/
# fsfreeze -f /tmp
Now after some time, system should panic and generate a task core dump as well.