linux-yocto/kernel/power
Rafael J. Wysocki e9985d9e76 PM: hibernate: Restrict GFP mask in hibernation_snapshot()
commit 449c9c02537a146ac97ef962327a221e21c9cab3 upstream.

Commit 12ffc3b151 ("PM: Restrict swap use to later in the suspend
sequence") incorrectly removed a pm_restrict_gfp_mask() call from
hibernation_snapshot(), so memory allocations involving swap are not
prevented from being carried out in this code path any more which may
lead to serious breakage.

The symptoms of such breakage have become visible after adding a
shrink_shmem_memory() call to hibernation_snapshot() in commit
2640e81947 ("PM: hibernate: shrink shmem pages after dev_pm_ops.prepare()")
which caused this problem to be much more likely to manifest itself.

However, since commit 2640e81947 was initially present in the DRM
tree that did not include commit 12ffc3b151, the symptoms of this
issue were not visible until merge commit 260f6f4fda ("Merge tag
'drm-next-2025-07-30' of https://gitlab.freedesktop.org/drm/kernel")
that exposed it through an entirely reasonable merge conflict
resolution.

Fixes: 12ffc3b151 ("PM: Restrict swap use to later in the suspend sequence")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220555
Reported-by: Todd Brandt <todd.e.brandt@linux.intel.com>
Tested-by: Todd Brandt <todd.e.brandt@linux.intel.com>
Cc: 6.16+ <stable@vger.kernel.org> # 6.16+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-19 16:37:30 +02:00
..
autosleep.c PM: sleep: autosleep: don't include 'pm_wakeup.h' directly 2024-12-05 12:14:26 +01:00
console.c PM: sleep: console: Fix the black screen issue 2025-08-20 18:41:00 +02:00
energy_model.c PM: EM: Add function for registering a PD without capacity update 2025-09-19 16:37:30 +02:00
hibernate.c PM: hibernate: Restrict GFP mask in hibernation_snapshot() 2025-09-19 16:37:30 +02:00
Kconfig PM: EM: Rework the depends on for CONFIG_ENERGY_MODEL 2025-03-07 15:23:46 +01:00
main.c Power management updates for 6.16-rc1 2025-05-27 16:48:47 -07:00
Makefile
power.h PM: Restrict swap use to later in the suspend sequence 2025-06-26 20:39:34 +02:00
poweroff.c
process.c PM: freezer: Rewrite restarting tasks log to remove stray *done.* 2025-05-16 22:22:10 +02:00
qos.c
snapshot.c mm, PM: use for_each_valid_pfn() in kernel/power/snapshot.c 2025-05-12 23:50:44 -07:00
suspend_test.c rtc: class: make rtc_class constant 2024-03-08 12:05:10 +01:00
suspend.c PM: suspend: clean up redundant filesystems_freeze/thaw() handling 2025-07-15 14:55:00 +02:00
swap.c PM: hibernate: split and simplify hib_submit_io 2025-05-07 07:31:07 -06:00
user.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
wakelock.c PM: wakeup: Delete space in the end of string shown by pm_show_wakelocks() 2025-05-09 15:48:39 +02:00