From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:56494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeLFLLg (ORCPT ); Thu, 6 Dec 2018 06:11:36 -0500 Date: Thu, 6 Dec 2018 12:11:33 +0100 From: Greg KH To: Rafael David Tinoco Cc: stable@vger.kernel.org, kirill.shutemov@linux.intel.com, wei.guo.simon@gmail.com, akpm@linux-foundation.org Subject: Re: stable request: mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT) Message-ID: <20181206111133.GO19891@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Thu, Nov 08, 2018 at 08:07:35AM -0200, Rafael David Tinoco wrote: > Hello Greg, > > Could you please consider backporting to v4.4 the following commit: > > commit b5b5b6fe643391209b08528bef410e0cf299b826 > Author: Simon Guo > Date: Fri Oct 7 20:59:40 2016 Where did you get that git commit id? It's b155b4fde5bdde9fed439cd1f5ea07173df2ed31 in Linus's tree. Something went really odd on your side here :( > > mm: mlock: avoid increase mm->locked_vm on mlock() when already > mlock2(,MLOCK_ONFAULT) > > It seems to be a trivial fix for: > > https://bugs.linaro.org/show_bug.cgi?id=4043 > (mlock203.c LTP test failing on v4.4) I've queued this up now, thanks for letting me know. greg k-h