lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0fac5973d5588ee441ae95384d2edda69989ac10.camel@infradead.org>
Date: Sat, 24 May 2025 11:16:03 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Alexander Graf <graf@...zon.com>, kexec@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, Andrew Morton <akpm@...ux-foundation.org>,
  Baoquan He <bhe@...hat.com>, Pasha Tatashin <pasha.tatashin@...een.com>,
 nh-open-source@...zon.com
Subject: Re: [PATCH] kexec: Enable CMA based contiguous allocation

On Mon, 2025-05-12 at 22:57 +0000, Alexander Graf wrote:
> 
> --- a/include/uapi/linux/kexec.h
> +++ b/include/uapi/linux/kexec.h
> @@ -27,6 +27,7 @@
>  #define KEXEC_FILE_ON_CRASH	0x00000002
>  #define KEXEC_FILE_NO_INITRAMFS	0x00000004
>  #define KEXEC_FILE_DEBUG	0x00000008
> +#define KEXEC_FILE_NO_CMA	0x00000010
>  

Gives me EINVAL when I try to use it. This helps (but should it be
permitted only on architectures which implement it?):

--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -385,7 +385,7 @@ extern int kexec_load_disabled;
 /* List of defined/legal kexec file flags */
 #define KEXEC_FILE_FLAGS       (KEXEC_FILE_UNLOAD | KEXEC_FILE_ON_CRASH | \
                                 KEXEC_FILE_NO_INITRAMFS | \
-                                KEXEC_FILE_COOPERATIVE)
+                                KEXEC_FILE_COOPERATIVE | KEXEC_FILE_NO_CMA)
 
 /* Location of a reserved region to hold the crash kernel.
  */


Download attachment "smime.p7s" of type "application/pkcs7-signature" (5069 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ