Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5699602imm; Tue, 12 Jun 2018 11:49:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIKUFzHxoWa78gxYVUIAstFpj0QHcMqa9hEQAbuoKNNi7R5N7K6n2rG0OLMmTXFm2HswN8G X-Received: by 2002:a65:4ecd:: with SMTP id w13-v6mr1369933pgq.214.1528829384683; Tue, 12 Jun 2018 11:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528829384; cv=none; d=google.com; s=arc-20160816; b=BEauo07cq15tgsVDVgV5LedNbs7gSV05CznjvctnnTl60dx27oahDvm+IEHD7NWQy1 P14RsNRDBOzuMB6glQjdpnFJpMzd2VKQQTsLPs7irAeDripVuM2SKn4jzPjgx5nfx/gR h/ntdXiER2XZSEglMUnevWjizHJIWvcNOWaZBR0JCxegJfpxyN3vH/YBDlsQrpMUnO+l uaDLzeELG5LWz6hsMUdZuZzmygP8tZ07Re+iHLKa0B3UBnDdjeYQdq7Hz07W/MEujFOm i47eJ2dOHvWWBMPieTYEMJnirkmGTubmXFa7NkSOMh/9/ZtV7AzEiDd0shqpmGrfn3ce vUsw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=pqH3Ncj2fc5iqzgwlqUmNGeG5nvtWYDnpkUoETY8hak=; b=An314CX5kjK1vihNkwLTQepbFPP+1Q24h9fiwqSAbslARAco9h2TrsBWzc3BTT4Q2p 9JBVlVrlVC702KmmrqDNazeKOVO1M9EJ94NMryA/jFX4Ugr0yH/1LiX5n5Eb1427RWJX 7AUcwREhkjkppE3cXhu0f2TNTKh27pgslM6hHRDD7Aw1TJ72R4dVfaVOX6kvzOTYXmkZ JULI8zPmrF+b5S1rVue18AOqcQlNUIXbHBwPgI1/wgP+eHCPVQ1rVBfqHl94UzTYzMPc +e1yi5zeMD6xFuwH+8jIwxbMu6f96gaVwiCo2LixvMmV1GxZzclH6jJiZmLPgD7eeVW0 Z/fw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si608629pgv.335.2018.06.12.11.49.30; Tue, 12 Jun 2018 11:49:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754364AbeFLStF (ORCPT + 99 others); Tue, 12 Jun 2018 14:49:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44104 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754110AbeFLStD (ORCPT ); Tue, 12 Jun 2018 14:49:03 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 88C531AF8; Tue, 12 Jun 2018 18:49:02 +0000 (UTC) Date: Tue, 12 Jun 2018 20:49:01 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: linux-kernel@vger.kernel.org, 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 Subject: Re: [PATCH 4.4 051/268] asm-generic: provide generic_pmdp_establish() Message-ID: <20180612184901.GC24187@kroah.com> References: <20180528100202.045206534@linuxfoundation.org> <20180528100207.739905012@linuxfoundation.org> <1528721717.2289.114.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1528721717.2289.114.camel@codethink.co.uk> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 01:55:17PM +0100, Ben Hutchings wrote: > 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. Hm, I thought there was some reason for this patch, as I thought it came up before. Sasha do you remember? Should I just revert it? thanks, greg k-h