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: <20240819184649.8fc7da59f89290f716ae0553@linux-foundation.org>
Date: Mon, 19 Aug 2024 18:46:49 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Matthew Wilcox <willy@...radead.org>
Cc: Suren Baghdasaryan <surenb@...gle.com>, kent.overstreet@...ux.dev,
 corbet@....net, arnd@...db.de, mcgrof@...nel.org, rppt@...nel.org,
 paulmck@...nel.org, thuth@...hat.com, tglx@...utronix.de, bp@...en8.de,
 xiongwei.song@...driver.com, ardb@...nel.org, david@...hat.com,
 vbabka@...e.cz, mhocko@...e.com, hannes@...xchg.org,
 roman.gushchin@...ux.dev, dave@...olabs.net, liam.howlett@...cle.com,
 pasha.tatashin@...een.com, souravpanda@...gle.com, keescook@...omium.org,
 dennis@...nel.org, jhubbard@...dia.com, yuzhao@...gle.com,
 vvvvvv@...gle.com, rostedt@...dmis.org, iamjoonsoo.kim@....com,
 rientjes@...gle.com, minchan@...gle.com, kaleshsingh@...gle.com,
 linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
 linux-arch@...r.kernel.org, linux-mm@...ck.org,
 linux-modules@...r.kernel.org, kernel-team@...roid.com
Subject: Re: [PATCH 5/5] alloc_tag: config to store page allocation tag refs
 in page flags

On Mon, 19 Aug 2024 21:40:34 +0100 Matthew Wilcox <willy@...radead.org> wrote:

> On Mon, Aug 19, 2024 at 01:39:16PM -0700, Suren Baghdasaryan wrote:
> > On Mon, Aug 19, 2024 at 12:34 PM Matthew Wilcox <willy@...radead.org> wrote:
> > > So if ALLOC_TAG_REF_WIDTH is big enough, it's going to force last_cpupid
> > > into struct page.
> > 
> > Thanks for taking a look!
> > Yes, but how is this field different from say KASAN_TAG_WIDTH which
> > can also force last_cpupid out of page flags?
> 
> Because KASAN isn't for production use?
> 
> > >  That will misalign struct page and disable HVO -- with no warning!
> > 
> > mminit_verify_pageflags_layout already has a mminit_dprintk() to
> > indicate this condition. Is that not enough?
> 
> Fair.

Is a BUILD_BUG_ON() feasible here?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ