--- a/mm/page_alloc.c~mm-page_alloc-bail-out-on-fatal-signal-during-reclaim-compaction-retry-attempt +++ a/mm/page_alloc.c @@ -4251,6 +4251,9 @@ should_compact_retry(struct alloc_contex if (!order) return false; + if (fatal_signal_pending(current)) + return false; + if (compaction_made_progress(compact_result)) (*compaction_retries)++;