Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp362657ybl; Fri, 30 Aug 2019 00:36:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm4tOHqE2iitO9fZob3EV5U+IzCZkDghlTcb5JrLmDLbHVqn9EU9B1iUsX6vAo8X2DJVPe X-Received: by 2002:a65:6259:: with SMTP id q25mr12135430pgv.145.1567150597583; Fri, 30 Aug 2019 00:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567150597; cv=none; d=google.com; s=arc-20160816; b=LZ/ex7WI/4idAtCHYuRADBhCLmD6g/B3QbURoHbIbsZQcFIVGRbD1hcbwCOV9yZ5LO wpnXB6MuCZvcTPmCjHkrDGa4pT4oMDljlNxBIdclMAlxWCw8YKFuB/J6MOIxPP47MCEk REVQzrQrueRNElFIQBN2qsnm4HeoHF1D3YlcwyKkILmBpExAS22HLMEb29csLfbn+Js5 MXH45NWeDIwPAUyJU4YzAWVw0XlBaRY7QzRN64aG6yRlFpsfilPpLqd1h3q7Psbj3zsC ejpRleOm1eYL9JSbMAqtskeIvHJWd6R8ay4mQe6SHDUxvrZBnOrVaihpsEz+GJSBVt4G mn7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vp0cbhHdvGou9rmgPY3J3IWNGakdxWnvnHyFeiJ8F1k=; b=kigQpzhQHu/MwBbRksmE9zyDDDSwaiIRSUYzmPAJEFohUs+VS8yhh/Wp2UGA6hXtoj WqjLtL7TkoWNgsuKZyMGKWzt1G0lUhLK/YQkSNCBQ8W40s8pkrPVLTEWRNPVRPoscxZM WsSMX05jvAEBgEDwuIHZfzJlIUbTJX0hBF/eKhzzo1umbYm8E1XEk2FwRMEfRLQGYcYR mB5kbLVwyhhWteF31sbq45Evnq1kuEtJkuWQT/JkSPjed5j4SrYN7/AWSmRorK/BYMHQ EULSKMemCdxf01EZlOBfNtfK8coEs+57dQ5k5eGuTV1nxGJfCTb9/EByLollf8vaVNiH okQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si3900735pge.286.2019.08.30.00.36.22; Fri, 30 Aug 2019 00:36:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbfH3HeH (ORCPT + 99 others); Fri, 30 Aug 2019 03:34:07 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45205 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfH3HeG (ORCPT ); Fri, 30 Aug 2019 03:34:06 -0400 Received: from 162-237-133-238.lightspeed.rcsntx.sbcglobal.net ([162.237.133.238] helo=elm) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1i3bQ4-0000zO-Fx; Fri, 30 Aug 2019 07:34:04 +0000 Date: Fri, 30 Aug 2019 02:34:00 -0500 From: Tyler Hicks To: Greg Kroah-Hartman Cc: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Todd Kjos , devel@driverdev.osuosl.org Subject: Re: [PATCH AUTOSEL 4.14 05/14] binder: take read mode of mmap_sem in binder_alloc_free_page() Message-ID: <20190830073400.GB16891@elm> References: <20190829105043.2508-1-sashal@kernel.org> <20190829105043.2508-5-sashal@kernel.org> <20190829151052.GB27650@elm> <20190830062349.GB15257@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830062349.GB15257@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-08-30 08:23:49, Greg Kroah-Hartman wrote: > On Thu, Aug 29, 2019 at 10:10:52AM -0500, Tyler Hicks wrote: > > Hello, Sasha! > > > > On 2019-08-29 06:50:34, Sasha Levin wrote: > > > From: Tyler Hicks > > > > > > [ Upstream commit 60d4885710836595192c42d3e04b27551d30ec91 ] > > > > > > Restore the behavior of locking mmap_sem for reading in > > > binder_alloc_free_page(), as was first done in commit 3013bf62b67a > > > ("binder: reduce mmap_sem write-side lock"). That change was > > > inadvertently reverted by commit 5cec2d2e5839 ("binder: fix race between > > > munmap() and direct reclaim"). > > > > > > In addition, change the name of the label for the error path to > > > accurately reflect that we're taking the lock for reading. > > > > > > Backporting note: This fix is only needed when *both* of the commits > > > mentioned above are applied. That's an unlikely situation since they > > > both landed during the development of v5.1 but only one of them is > > > targeted for stable. > > > > This patch isn't meant to be applied to 4.14 since commit 3013bf62b67a > > ("binder: reduce mmap_sem write-side lock") was never brought back to > > 4.14. > > But the patch says: > Fixes: 5cec2d2e5839 ("binder: fix race between munmap() and direct reclaim") > and that commit is in 4.14.124. This patch fixes 5cec2d2e5839 but only when 3013bf62b67a is also applied. If 3013bf62b67a isn't present, this patch shouldn't be backported. 3013bf62b67a isn't in 4.14.y. Tyler > > thanks, > > greg k-h