[PATCH v2] kexec: use phys_addr_t in generic crash_free_reserved_phys_range()

Mike Rapoport rppt at kernel.org
Sun Nov 29 23:48:28 PST 2026


From: Mike Rapoport (Microsoft) <rppt at kernel.org>

On Sun, 29 Nov 2026 18:28:09 +0800, Jingyi Sun wrote:
> The generic crash_free_reserved_phys_range() in <linux/kexec.h> takes
> the range as unsigned long, but its only caller, __crash_shrink_memory(),
> passes resource_size_t values from crashk_res / crashk_low_res.
> 
> arm64, powerpc and s390 provide their own crash_free_reserved_phys_range();
> all other architectures use the generic one. On 32-bit architectures
> with a 64-bit phys_addr_t among them (e.g. ARM with LPAE), a crash kernel
> region above 4GiB is then truncated to its low 32 bits when
> /sys/kernel/kexec_crash_size is shrunk: free_reserved_page() is called
> on unrelated low-memory pages, while the pages that were actually
> released from the reservation stay reserved forever.
> 
> [...]

Applied to kexec-7.5 branch of liveupdate/linux.git tree, thanks!

[1/1] kexec: use phys_addr_t in generic crash_free_reserved_phys_range()
      commit: 1d33d7e3c7866646436cb493311b5ddfd6477121

tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: kexec-7.5

--
Sincerely yours,
Mike.




More information about the linux-arm-kernel mailing list