]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kernel/crash: handle multi-page vmcoreinfo in crash kernel copy
authorPnina Feder <pnina.feder@mobileye.com>
Tue, 16 Dec 2025 13:28:01 +0000 (15:28 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:44:20 +0000 (19:44 -0800)
commitb5bfcc1ffe512c7879cb90befdeabaa43d9f07ca
tree5eece0f81ded891f28dbe3388626e2b0a954a51f
parent76103d1b268e6f45735aa92d70bea5b5e8174a70
kernel/crash: handle multi-page vmcoreinfo in crash kernel copy

kimage_crash_copy_vmcoreinfo() currently assumes vmcoreinfo fits in a
single page.  This breaks if VMCOREINFO_BYTES exceeds PAGE_SIZE.

Allocate the required order of control pages and vmap all pages needed to
safely copy vmcoreinfo into the crash kernel image.

Link: https://lkml.kernel.org/r/20251216132801.807260-3-pnina.feder@mobileye.com
Signed-off-by: Pnina Feder <pnina.feder@mobileye.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/crash_core.c