diff options
| author | Brian Mak <[email protected]> | 2025-08-05 21:15:26 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-08-28 05:45:43 +0000 |
| commit | 6310c149e5dede74bb47110e0d7a38c78772c152 (patch) | |
| tree | d93cc090a13f09c50f9c16b59d9e93ff92d16ec9 /mm/sparse-vmemmap.c | |
| parent | kasan: fix GCC mem-intrinsic prefix with sw tags (diff) | |
| download | kernel-6310c149e5dede74bb47110e0d7a38c78772c152.tar.gz kernel-6310c149e5dede74bb47110e0d7a38c78772c152.zip | |
kexec: add KEXEC_FILE_NO_CMA as a legal flag
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.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 07d24902977e ("kexec: enable CMA based contiguous allocation")
Signed-off-by: Brian Mak <[email protected]>
Acked-by: Baoquan He <[email protected]>
Cc: Alexander Graf <[email protected]>
Cc: Borislav Betkov <[email protected]>
Cc: Dave Young <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Saravana Kannan <[email protected]>
Cc: Thomas Gleinxer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions
