]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/kmap: Add kmap_local_page_try_from_panic()
authorJocelyn Falempe <jfalempe@redhat.com>
Mon, 7 Apr 2025 13:42:25 +0000 (15:42 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Thu, 10 Apr 2025 08:50:57 +0000 (10:50 +0200)
commit8702048bb8313a21ec9179e9ce7ad3c5cb2ef072
treedba96dd52c9b7fa0032f32fe5957a6abc072684a
parentd74cc229cfbbc5a96139825c297f34accd670bce
mm/kmap: Add kmap_local_page_try_from_panic()

kmap_local_page() can be unsafe to call from a panic handler, if
CONFIG_HIGHMEM is set, and the page is in the highmem zone.
So add kmap_local_page_try_from_panic() to handle this case.

Suggested-by: Simona Vetter <simona.vetter@ffwll.ch>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250407140138.162383-2-jfalempe@redhat.com
include/linux/highmem-internal.h