]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: hibernate: Use __get_safe_page() rather than touching the list
authorBrian Geffon <bgeffon@google.com>
Thu, 21 Sep 2023 17:00:45 +0000 (13:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:45:44 +0000 (16:45 +0000)
commit960ff6f5e6b18dc52c409457f7895967b156be02
tree84a1a5e4530917a512c83a36445c08eb2e87c8f5
parent3db0f1b2a1b7e8dece2755f07a8b10bdc1b0484b
PM: hibernate: Use __get_safe_page() rather than touching the list

commit f0c7183008b41e92fa676406d87f18773724b48b upstream.

We found at least one situation where the safe pages list was empty and
get_buffer() would gladly try to use a NULL pointer.

Signed-off-by: Brian Geffon <bgeffon@google.com>
Fixes: 8357376d3df2 ("[PATCH] swsusp: Improve handling of highmem")
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/snapshot.c