Re: [PATCH STABLE ONLY] add missing page refcount overflow checks

From: Vlastimil Babka
Date: Tue Dec 03 2019 - 07:50:31 EST


On 12/1/19 5:55 PM, Sasha Levin wrote:
> On Fri, Nov 29, 2019 at 10:03:48AM +0100, Vlastimil Babka wrote:
>> This collection of patches add the missing overflow checks in arch-specific
>> gup.c variants for x86 and s390. Those were missed in backport of 8fde12ca79af
>> ("mm: prevent get_user_pages() from overflowing page refcount") as mainline
>> had a single gup.c implementation at that point. See individual patches for
>> details.
>
> Queued up, thanks!

Please replace the 4.9 version with the following fixed one, thanks to Ben:

----8<----