Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4025219imm; Mon, 11 Jun 2018 05:56:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXUndMYKD5KY7SbPxG7n8oLYK3kurjtLDP/py0YYkf+Dlb26+mCfUuZ6QlQ9UnC2Gof05M X-Received: by 2002:a65:51cb:: with SMTP id i11-v6mr14941329pgq.320.1528721770620; Mon, 11 Jun 2018 05:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528721770; cv=none; d=google.com; s=arc-20160816; b=YJxM7aAmOPHh4fD9LZfXRxfkCnVzNuspV8kt7g7hX1XhuhjHsOAGOyM1i4tQAu52Ic zdP7AunOf5dmUhgHkg7FJ6oiXSPnEU2xEwO/sqRZPkokVa0gcTr11Js/JrvjT8bo8l8Q CSxXg7e6OHYYlq8itNHRdHJS2ajszcuBzEVNNkQiNDeGTHUgaxES3dZdTApu4AYT7CrU FLnW2e886v+KnojqfTVhbTQvGzKjE5UocnX0DmvD3iTuIDhWpruW2l8q2zUOOnqtBcSd Xy1rpbgiONwkmvOqobYuXQ7n/D/RSADCSSauig4oLsVB/LwTVROQ6B/uNO49Wv1bCpEt qAZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=6ImI566G2kDh1WdYDpi83+GEV3fvR8+bQXSo5RNztzU=; b=x0tW0kD1Q9ab4lnhoy8kkJEhp0Dq/XFe+SvvsQdqmUIm3Zy5LkOJKiYSrbfgEIZXiN WqolYSOzgkAiz0uqmWd/vfxRJCFPPvnZ5BRkSop9m6iTAh4sX9gKU/3albNE0oINh+9K yE/1ATEqpFiakMLR729Vwu9/3wI8cbcFhDRPnTD06BaTagvXzHCKc2cqqKtRy5iZhuFY BBKLKxZh7cSiuXFj1R2zBq2TeTElaZhoTmcINGLQN9ZDBJ+PUBrlV21a2ZcIXdIQcXCB BseeI6es4Z4mOay/roTe8NuU6fEHYzpjGTTpc/ue6T1/eL39KD5gpxbt9RAi1HgSY9g4 N/Og== 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=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6-v6si12825442pfh.137.2018.06.11.05.55.56; Mon, 11 Jun 2018 05:56:10 -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=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933116AbeFKMz1 (ORCPT + 99 others); Mon, 11 Jun 2018 08:55:27 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:53767 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932913AbeFKMzZ (ORCPT ); Mon, 11 Jun 2018 08:55:25 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126] helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fSMLv-0000ci-48; Mon, 11 Jun 2018 13:55:19 +0100 Message-ID: <1528721717.2289.114.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 051/268] asm-generic: provide generic_pmdp_establish() From: Ben Hutchings To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "Kirill A. Shutemov" , Vlastimil Babka , Andrea Arcangeli , Michal Hocko , "Aneesh Kumar K.V" , Catalin Marinas , David Daney , David Miller , "H. Peter Anvin" , Hugh Dickins , Ingo Molnar , Martin Schwidefsky , Nitin Gupta , Ralf Baechle , Thomas Gleixner , Vineet Gupta , Andrew Morton , Linus Torvalds , Sasha Levin Date: Mon, 11 Jun 2018 13:55:17 +0100 In-Reply-To: <20180528100207.739905012@linuxfoundation.org> References: <20180528100202.045206534@linuxfoundation.org> <20180528100207.739905012@linuxfoundation.org> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-05-28 at 12:00 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > ------------------ > > From: "Kirill A. Shutemov" > > [ Upstream commit c58f0bb77ed8bf93dfdde762b01cb67eebbdfc29 ] > > Patch series "Do not lose dirty bit on THP pages", v4. > > Vlastimil noted that pmdp_invalidate() is not atomic and we can lose > dirty and access bits if CPU sets them after pmdp dereference, but > before set_pmd_at(). > > The bug can lead to data loss, but the race window is tiny and I haven't > seen any reports that suggested that it happens in reality.  So I don't > think it worth sending it to stable. [...] > This patch (of 12): > > This is an implementation of pmdp_establish() that is only suitable for > an architecture that doesn't have hardware dirty/accessed bits.  In this > case we can't race with CPU which sets these bits and non-atomic > approach is fine. [...] There's no point in applying just this patch, since it adds a new function that nothing will call. I tend to think that since this is fixing a potential data loss, the whole series should be backported. But the commit message here says it shouldn't. Ben. -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom