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] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230117171312.13bdb3b2673bdac3c93c2ab7@linux-foundation.org>
Date:   Tue, 17 Jan 2023 17:13:12 -0800
From:   Andrew Morton <akpm@...ux-foundation.org>
To:     Pasha Tatashin <pasha.tatashin@...een.com>
Cc:     rppt@...nel.org, mhocko@...e.com, vbabka@...e.cz, david@...hat.com,
        quic_charante@...cinc.com, lizhe.67@...edance.com,
        linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] mm/page_ext: init page_ext early if there are no
 deferred struct pages

On Tue, 17 Jan 2023 20:46:17 +0000 Pasha Tatashin <pasha.tatashin@...een.com> wrote:

> page_ext must be initialized after all struct pages are initialized.
> Therefore, page_ext is initialized after page_alloc_init_late(), and
> can optionally be initialized earlier via early_page_ext kernel
> parameter which as a side effect also disables deferred struct pages.
> 
> Allow to automatically init page_ext early when there are no deferred
> struct pages in order to be able to use page_ext during kernel boot
> and track for example page allocations early.

Compilation blows up with CONFIG_PAGE_EXTENSION=n.  I did

--- a/include/linux/page_ext.h~mm-page_ext-init-page_ext-early-if-there-are-no-deferred-struct-pages-fix
+++ a/include/linux/page_ext.h
@@ -92,6 +92,7 @@ static inline struct page_ext *page_ext_
 
 #else /* !CONFIG_PAGE_EXTENSION */
 struct page_ext;
+#define deferred_struct_pages (0)
 
 static inline bool early_page_ext_enabled(void)
 {

but it then blew up differently.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ