[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFw8nwUAgqMy8LMEKg7roTWazR1gz+DkROgRbUHseDTk1g@mail.gmail.com>
Date: Fri, 1 Jul 2016 09:07:10 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Dave Hansen <dave@...1.net>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"the arch/x86 maintainers" <x86@...nel.org>,
linux-mm <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Borislav Petkov <bp@...en8.de>,
Andi Kleen <ak@...ux.intel.com>,
Michal Hocko <mhocko@...e.com>,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs
On Thu, Jun 30, 2016 at 9:39 PM, Dave Hansen <dave@...1.net> wrote:
>
> I think what you suggest will work if we don't consider A/D in
> pte_none(). I think there are a bunch of code path where assume that
> !pte_present() && !pte_none() means swap.
Hmm.
Thinking about it some more, I still think it's a good idea to avoid
A/D bits in the swap entries and in pte_none() and friends, and it
might simplify some of this all.
But I also started worrying about us just losing sight of the dirty
bit in particular. It's not enough that we ignore the dirty bit - we'd
still want to make sure that the underlying backing page gets marked
dirty, even if the CPU is buggy and ends doing it "delayed" after
we've already unmapped the page.
So I get this feeling that we may need a fair chunk of your patch-series anyway.
Linus
Powered by blists - more mailing lists