[PATCH] hung_task: Skip hung task detection during core dump operations

From: Nanji Parmar (he/him)
Date: Wed Aug 13 2025 - 14:30:59 EST


Hi,

This patch fixes false positive hung task warnings during core dump
operations for processes with large memory footprints.

During testing with processes having GBs or >1TB memory, core dump
generation
takes many minutes, causing hung task detector to incorrectly flag threads
as hung. The fix checks for both PF_DUMPCORE and PF_POSTCOREDUMP flags
before reporting tasks as hung.

Tested on the systems with large memory processes.

Best regards,
Nanji

---