Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2559097ybl; Thu, 29 Aug 2019 09:45:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYn+wjlQCdNWHeqmrFeder/Nbgoo44Us6/aY9FU2Ac46K8ZzgBbg58ewGVXOlMBcMrqOft X-Received: by 2002:a17:902:f216:: with SMTP id gn22mr11487681plb.59.1567097130603; Thu, 29 Aug 2019 09:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097130; cv=none; d=google.com; s=arc-20160816; b=J1eK1lbzG6UMKT3UA+SvN+V0JIEWD9gs/CLBNdU18oqlaXq/My6M2Y1yifrX2qBrBL nhTMdk21C2PZx6092iI50sVLadngyXolWl82fnd/EEekQgfXo3iHPBxKi1k0tNZ2PINT RWxTmXEKTwJ6XSTXwG3KZiPWLSKDkrG+MwZ9vt7qpCQ/GUApWFv5yHGPAkkvQ+c/qWbu 5nbZTT9uVL2XEDLdlVwNLov67Jyia/3v0Eo4KIYAyB2l7BRDeoAARMboHRBaZOqge1g7 koOCBlbjbnDjZb3zJNSfMnsTMbWB6LdQx/5Wg5eBso+SqJbu2Hy7VQUiYhRgk469R1yi Y7hg== 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=bRpqTp3EjTmLNhGd3WmD0wtWWTzJRaoQEOOaMMh/9qU=; b=ddqL0reE5ypJlNlcFWyYJTPKVsOuChy/hRau/1rVK9mv0+rRreWXGcbn7+A/AxUsvA enxT8dtgnqaTL0kJvmlRJH+wpkJe0Uh9bVvoEakoKgKuRmyjTwbAU5+HrmfUwqZlaFJ4 uVdHqxjELTO5Vz0KIMTo7GjXyXQbFU8eSVb78RoHCdrHfHIAf2z3UgD/19JLO/tcbFth mv6E3jSJqTHm0WZX05g0R8is4GjHTWNKKUnGNZQ+z+8aFGgUBDpr/S98pH8spe0IGoiG YoRBBpk7k1oAZXl70F5knvVf4S3UQEkIXAPe4JJnpJMoYsTsNAnRqx/QaLBAKuklpy43 +bKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="KtLG/S2t"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si2359418pll.340.2019.08.29.09.45.14; Thu, 29 Aug 2019 09:45:30 -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="KtLG/S2t"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbfH2QmT (ORCPT + 99 others); Thu, 29 Aug 2019 12:42:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfH2QmT (ORCPT ); Thu, 29 Aug 2019 12:42:19 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 031752070B; Thu, 29 Aug 2019 16:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567096938; bh=bRpqTp3EjTmLNhGd3WmD0wtWWTzJRaoQEOOaMMh/9qU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KtLG/S2tSMFYc5IJeMsFlWVsyXjpRehwx+Mw4Cy0TBEsERF1DhBJvMZRxuTwnvkp1 uVRPCVZrPmtgecc0hldS6Ie+52Q28fIDUhduZu7Z/L0nV18MC9bRH2qqx/a27YBkx6 YQdw+rvueX/1l73Y6Gri7rMc/Vc/YyKvYOP05VCA= Date: Thu, 29 Aug 2019 12:42:17 -0400 From: Sasha Levin To: Tyler Hicks Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Todd Kjos , Greg Kroah-Hartman , 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: <20190829164217.GJ5281@sasha-vm> 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; format=flowed Content-Disposition: inline In-Reply-To: <20190829151052.GB27650@elm> 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 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. > >My backporting note above isn't helpful for AUTOSEL purposes. Do you >have a suggestion for what I could have done in the patch tags to convey >that guidance to AUTOSEL? Hey Tyler, No, this is just me messing up. AUTOSEL actually handled this well. What happened here you ask? This series is basically a set of patches that fix a different fix that went into stable. It didn't go through the regular AUTOSEL flow and I goofed up manually. Sorry for the noise, I've dropped the patch. -- Thanks, Sasha