On Wed, 21 May 2014 13:09:16 +0100 Mel Gorman <[email protected]> wrote:

> > From: Andrew Morton <[email protected]>
> > Subject: mm/shmem.c: don't run init_page_accessed() against an 
> > uninitialised pointer
> > 
> > If shmem_getpage() returned an error then it didn't necessarily initialise
> > *pagep.  So shmem_write_begin() shouldn't be playing with *pagep in this
> > situation.
> > 
> > Fixes an oops when "mm: non-atomically mark page accessed during page
> > cache allocation where possible" (quite reasonably) left *pagep
> > uninitialized.
> > 
> > Reported-by: Prabhakar Lad <[email protected]>
> > Cc: Johannes Weiner <[email protected]>
> > Cc: Vlastimil Babka <[email protected]>
> > Cc: Jan Kara <[email protected]>
> > Cc: Michal Hocko <[email protected]>
> > Cc: Hugh Dickins <[email protected]>
> > Cc: Peter Zijlstra <[email protected]>
> > Cc: Dave Hansen <[email protected]>
> > Cc: Mel Gorman <[email protected]>
> > Signed-off-by: Andrew Morton <[email protected]>
> 
> Acked-by: Mel Gorman <[email protected]>

What to do with
http://ozlabs.org/~akpm/mmots/broken-out/mm-non-atomically-mark-page-accessed-during-page-cache-allocation-where-possible-fix.patch?

We shouldn't need it any more.  otoh it's pretty harmless.  otooh it
will hide bugs such as this one.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to