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: <331840cc-c045-4652-b1e9-24253bb994a5@lucifer.local>
Date: Thu, 21 Aug 2025 12:46:14 +0100
From: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
To: Harry Yoo <harry.yoo@...cle.com>
Cc: Liam.Howlett@...cle.com, akpm@...ux-foundation.org, andreyknvl@...il.com,
        aneesh.kumar@...ux.ibm.com, anshuman.khandual@....com,
        apopple@...dia.com, ardb@...nel.org, arnd@...db.de, bp@...en8.de,
        cl@...two.org, dave.hansen@...ux.intel.com, david@...hat.com,
        dennis@...nel.org, dev.jain@....com, dvyukov@...gle.com,
        glider@...gle.com, gwan-gyeong.mun@...el.com, hpa@...cr.com,
        jane.chu@...cle.com, jgross@...e.de, jhubbard@...dia.com,
        joao.m.martins@...cle.com, joro@...tes.org, kas@...nel.org,
        kevin.brodsky@....com, linux-arch@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-mm@...ck.org, luto@...nel.org,
        maobibo@...ngson.cn, mhocko@...e.com, mingo@...hat.com,
        osalvador@...e.de, peterx@...hat.com, peterz@...radead.org,
        rppt@...nel.org, ryabinin.a.a@...il.com, ryan.roberts@....com,
        stable@...r.kernel.org, surenb@...gle.com, tglx@...utronix.de,
        thuth@...hat.com, tj@...nel.org, urezki@...il.com, vbabka@...e.cz,
        vincenzo.frascino@....com, x86@...nel.org, zhengqi.arch@...edance.com
Subject: Re: [PATCH] mm: fix KASAN build error due to p*d_populate_kernel()

On Thu, Aug 21, 2025 at 07:42:06PM +0900, Harry Yoo wrote:
> > > Signed-off-by: Harry Yoo <harry.yoo@...cle.com>
> >
> > This looks good, other than the nit below re: a comment, I think when we
> > are doing this kind of thing it's necessary to spell out plainly why
> > exactly we're doing it because it's not obvious at first glance.
>
> Good point, will do:
>
> /*
>  * {pgd,p4d}_populate_kernel() are defined as macros to allow
>  * compile-time optimization based on the configured page table levels.
>  * Without this, linking may fail because callers (e.g., KASAN) may rely
>  * on calls to these functions being optimized away when passing symbols
>  * that exist only for certain page table levels.
>  */

Thanks LGTM!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ