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
Loading
Please sign in to comment