From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f72.google.com (mail-it0-f72.google.com [209.85.214.72]) by kanga.kvack.org (Postfix) with ESMTP id 1FB99828E4 for ; Fri, 1 Jul 2016 12:25:03 -0400 (EDT) Received: by mail-it0-f72.google.com with SMTP id j185so30861147ith.0 for ; Fri, 01 Jul 2016 09:25:03 -0700 (PDT) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com. [2607:f8b0:4003:c06::22e]) by mx.google.com with ESMTPS id g84si2035077oib.116.2016.07.01.09.25.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 09:25:02 -0700 (PDT) Received: by mail-oi0-x22e.google.com with SMTP id s66so117401255oif.1 for ; Fri, 01 Jul 2016 09:25:02 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <577696D5.2010609@sr71.net> References: <20160701001209.7DA24D1C@viggo.jf.intel.com> <20160701001218.3D316260@viggo.jf.intel.com> <5775F418.2000803@sr71.net> <577696D5.2010609@sr71.net> From: Linus Torvalds Date: Fri, 1 Jul 2016 09:25:01 -0700 Message-ID: Subject: Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen Cc: Linux Kernel Mailing List , the arch/x86 maintainers , linux-mm , Andrew Morton , Borislav Petkov , Andi Kleen , Michal Hocko , Dave Hansen On Fri, Jul 1, 2016 at 9:14 AM, Dave Hansen wrote: > > As I understand it, the erratum only affects a thread which is about to > page fault. The write associated with the dirty bit being set never > actually gets executed. So, the bit really *is* stray and isn't > something we need to preserve. Ok, good. > Otherwise, we'd be really screwed because we couldn't ever simply clear it. Oh, we could do the whole "clear the pte, then flush the tlb, then go back and clear the stale dirty bits and move them into the backing page". I was afraid we might have to do something like that. Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org