kexec-add-kexec_file_no_cma-as-a-legal-flag.patch removed from -mm tree
The quilt patch titled
Subject: kexec: add KEXEC_FILE_NO_CMA as a legal flag
has been removed from the -mm tree. Its filename was
kexec-add-kexec_file_no_cma-as-a-legal-flag.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Brian Mak <[email protected]>
Subject: kexec: add KEXEC_FILE_NO_CMA as a legal flag
Date: Tue, 5 Aug 2025 14:15:26 -0700
Commit 07d24902977e ("kexec: enable CMA based contiguous allocation") introduces logic to use CMA-based allocation in kexec by default. As part of the changes, it introduces a kexec_file_load flag to disable the use of CMA allocations from userspace. However, this flag is broken since it is missing from the list of legal flags for kexec_file_load. kexec_file_load returns EINVAL when attempting to use the flag.
Fix this by adding the KEXEC_FILE_NO_CMA flag to the list of legal flags for kexec_file_load.
Without this fix, kexec_file_load syscall will failed and return '-EINVAL' when KEXEC_FILE_NO_CMA is specified.
---
include/linux/kexec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/kexec.h renamed from include/linux/kexec.h~kexec-add-kexec_file_no_cma-as-a-legal-flag +2 -1
@@ -460,7 +460,8 @@ bool kexec_load_permitted(int kexec_imag/* List of defined/legal kexec file flags */ #define KEXEC_FILE_FLAGS (KEXEC_FILE_UNLOAD | KEXEC_FILE_ON_CRASH | \ - KEXEC_FILE_NO_INITRAMFS | KEXEC_FILE_DEBUG) + KEXEC_FILE_NO_INITRAMFS | KEXEC_FILE_DEBUG | \ + KEXEC_FILE_NO_CMA)/* flag to track if kexec reboot is in progress */ extern bool kexec_in_progress;
_
Patches currently in -mm which might be from [email protected] are
x86-kexec-carry-forward-the-boot-dtb-on-kexec.patch