lkml.org 
[lkml]   [2018]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [v4 3/6] mm: uninitialized struct page poisoning sanity checking

* Pavel Tatashin <pasha.tatashin@oracle.com> wrote:

> During boot we poison struct page memory in order to ensure that no one is
> accessing this memory until the struct pages are initialized in
> __init_single_page().
>
> This patch adds more scrutiny to this checking by making sure that flags
> do not equal the poison pattern when they are accessed. The pattern is all
> ones.
>
> Since node id is also stored in struct page, and may be accessed quite
> early, we add this enforcement into page_to_nid() function as well.
> Note, this is applicable only when NODE_NOT_IN_PAGE_FLAGS=n
>
> Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
> Reviewed-by: Ingo Molnar <mingo@kernel.org>
> Acked-by: Michal Hocko <mhocko@suse.com>

Please always start patch titles with a verb, i.e.:

mm: Add uninitialized struct page poisoning sanity check

or so.

Thanks,

Ingo

\
 
 \ /
  Last update: 2018-02-16 10:24    [W:0.846 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site