From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 585DEC433E2 for ; Tue, 1 Sep 2020 14:56:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31DDD206C0 for ; Tue, 1 Sep 2020 14:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728887AbgIAO4t (ORCPT ); Tue, 1 Sep 2020 10:56:49 -0400 Received: from foss.arm.com ([217.140.110.172]:42826 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbgIAOyw (ORCPT ); Tue, 1 Sep 2020 10:54:52 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 26FDF1045; Tue, 1 Sep 2020 07:54:48 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.10.252]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E05A13F71F; Tue, 1 Sep 2020 07:54:44 -0700 (PDT) Date: Tue, 1 Sep 2020 15:54:42 +0100 From: Mark Rutland To: Christoph Hellwig Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Al Viro , Will Deacon , Dan Williams , Andrea Arcangeli , Waiman Long , Peter Zijlstra , Thomas Gleixner , Andrew Cooper , Andy Lutomirski Subject: Re: [PATCH] x86/uaccess: Use pointer masking to limit uaccess speculation Message-ID: <20200901145442.GC95447@C02TD0UTHF1T.local> References: <20200901140208.GA95447@C02TD0UTHF1T.local> <20200901144641.GA28580@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901144641.GA28580@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Mark.