[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200901150553.GA30034@lst.de>
Date: Tue, 1 Sep 2020 17:05:53 +0200
From: Christoph Hellwig <hch@....de>
To: Mark Rutland <mark.rutland@....com>
Cc: Christoph Hellwig <hch@....de>,
Josh Poimboeuf <jpoimboe@...hat.com>, x86@...nel.org,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Al Viro <viro@...iv.linux.org.uk>,
Will Deacon <will@...nel.org>,
Dan Williams <dan.j.williams@...el.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Waiman Long <longman@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Andrew Cooper <andrew.cooper3@...rix.com>,
Andy Lutomirski <luto@...nel.org>
Subject: Re: [PATCH] x86/uaccess: Use pointer masking to limit uaccess
speculation
On Tue, Sep 01, 2020 at 03:54:42PM +0100, Mark Rutland wrote:
> On Tue, Sep 01, 2020 at 04:46:41PM +0200, Christoph Hellwig wrote:
> > On Tue, Sep 01, 2020 at 03:02:08PM +0100, Mark Rutland wrote:
> > > One thing to consider is whether you need a speculation barrier after
> > > set_fs(). Otherwise for code like:
> >
> > FYI, at least for x86 and powerpc I have a pending series to kill
> > set_fs(). I'd love to see someone help with the arm/arm64 side, otherwise
> > I'll try to get to it eventually.
>
> Is there anything in particular that's tricky, or do you just want
> someone to look generally? From a quick grep arch/arm64/* looks clean, but
> I suspect that's misleading.
Yes, it should be mostly trivial. I just bet the maintainers are
better at optimizing the low-level assembly code with the variable
address limit gone than I am. (See Linus comments on the x86 version
for example). And I don't have a physical arm64 to test with so I'd
have to rely on qemu for any testing.
Powered by blists - more mailing lists