Re: remap_file_pages doesn't like MAP_ANONYMOUS (but used to?)

From: Hugh Dickins
Date: Sun Mar 20 2011 - 21:57:49 EST


On Sun, 20 Mar 2011, Kenny Simpson wrote:
> --- On Sat, 3/19/11, Hugh Dickins <hughd@xxxxxxxxxx> wrote:
> > Thanks for reporting.  It was a simple oversight: and
> > until you came
> > along, nobody noticed.  Here's the patch, I'll pass it
> > upstream shortly.
>
> Since this bug has existed for a while, could it be pushed back to the various stable/longterm branches as well? (as they all are affected)
>
> Many thanks on the quick response! Glad it was a simple oversight with an easy and obvious fix.
>
> thanks again!
> -Kenny

It's a rare pleasure to be presented with such a straightforward bug!

stable/longterm: well, I don't mind asking akpm to add a Cc: stable,
but don't be surprised if he prefers not: although it was a regression
back in 2.6.23, it's not a security issue, and the lack of interest
between then and now doesn't make a strong argument for it.

Andrew, if you're so inclined, please add a Cc: stable@xxxxxxxxxx
to [PATCH] shmem: let shared anonymous be nonlinear again

Thanks,
Hugh