Re: [PATCH] proc: export page young and skip_kasan_poison flag via kpageflags

From: Matthew Wilcox
Date: Sat Jun 04 2022 - 11:09:17 EST


On Sat, Jun 04, 2022 at 05:50:31PM +0800, Xin Hao wrote:
>
> On 6/3/22 2:28 AM, Matthew Wilcox wrote:
> > On Thu, Jun 02, 2022 at 11:43:02PM +0800, Xin Hao wrote:
> > > Now the young and skip_kasan_poison flag are supported in
> > Why do we want userspace to know about whether skip_kasan_poison is set?
> > That seems like a kernel-internal detail to me.
>
> the  skip_kasan_poison also a page flags, we use page_types tool to display
> them not only include user-internal,
>
> but also  kernel-internal, add them, the page-types tool can more detail
> display the kernel-internal page flags,
>
> just in case we don't miss some page flags when check the whole memory.

So you're just being completist? You don't have a reason to expose this
information?