Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp300266ybl; Thu, 29 Aug 2019 23:25:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSkyv5X+SPMr2wdb5PY6sTciRhN0qfijgijLZXkdsxzAcBNxRMU8j3O2non+borOgl4xp4 X-Received: by 2002:a17:90a:b30f:: with SMTP id d15mr13836219pjr.19.1567146300593; Thu, 29 Aug 2019 23:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567146300; cv=none; d=google.com; s=arc-20160816; b=oupGq1Sq+6piMYPPJ02LiAxJWqSETF7RuEI2qeeFaQziAAQsUcCjRKp5hy+aYr1yO1 7BlO5RM+RkUesXo/0Dps4m7zHSTNZm/hEgtrIXvJW2btV3qZ6qsCiWEHe6EcTdIo5Tin IT8PDVb9wcr4m78PgNReI7/IlIC++hk1g/hjVeWauHACqKHTbMdCAJo9zJwC+X08OF8C mCVxWvAgXCzckG2U1ieKU1msa3ZNx5bdvJVIDvrwAVBv7jbzg8ii89up++5K+ic/HP5G vzkY8FMJ++z+qvaOWtGS+xk7LrEuYSKiIsEF42aEuAnLGHBSDnAbGpS+tUq7ILpRFMzM d+qA== 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:dkim-signature; bh=jigBGJy2cuiVGN017s/mpee7eIuRnXVpsWY/2qrZsMM=; b=NIIX+2DQbuAIVeSSbC0IfBey4ET8nuvW9Qj/+hm2CU1atrda+R0tarwkttQtQza7xf JBVBuaiwUe46LAC0uR/C3hWJaH3Ro8rWSjqDqtHIDvTZuFOPFLmS+XAsyNHNVchfI3ea ZbHgdR90CcL1QeUTjQqQmSUCNMg4jiq6UZIUxXPGMHX2Ik1GSd3TNRbIQenUoSvDnjib mjDA4XTDv+vgTEk6Rhq0Nsl7Vnzjzw2DYiqnOFkrNwHWykamc0KxMTq+3fdvetGuxpWp T4WLUnvyBKL2w85E1iGAtdt6o4yt6PbN0XBHJjkdLNSgL52frW4iQle+YPRdR1SYYyj+ b9XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=swdgx3Ee; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf17si4004023plb.48.2019.08.29.23.24.45; Thu, 29 Aug 2019 23:25:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=swdgx3Ee; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727884AbfH3GXx (ORCPT + 99 others); Fri, 30 Aug 2019 02:23:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:57170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfH3GXw (ORCPT ); Fri, 30 Aug 2019 02:23:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 650872186A; Fri, 30 Aug 2019 06:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567146231; bh=PRUhatSeU/3T/AMs4GtzyoWnaRohArYodojMqtzoabU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=swdgx3EeSI3MsNB2JN+gyh2gKdV4OMK7dXbAeJgOizr6RUJr++DN4edDVGSPIbQxt thdqo0EL1GE5KzHAAuHu40kZs6M/USeadSEQHm4yQV1xz8Nq6639uJSH9VzKlKnA0z +R6kl9HxgSSj7hszfCA3EUQyb1tRogq6pGuEYJdw= Date: Fri, 30 Aug 2019 08:23:49 +0200 From: Greg Kroah-Hartman To: Tyler Hicks 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: <20190830062349.GB15257@kroah.com> References: <20190829105043.2508-1-sashal@kernel.org> <20190829105043.2508-5-sashal@kernel.org> <20190829151052.GB27650@elm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829151052.GB27650@elm> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, greg k-h