Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1503103pxk; Fri, 4 Sep 2020 10:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsY6hu8GnCkJQQ59fb/Zm5Hcie2gfDlddGJJ/9Co+etwhw9fpFiZLElu958gke5YOCigHh X-Received: by 2002:a50:ff06:: with SMTP id a6mr9522420edu.87.1599242366363; Fri, 04 Sep 2020 10:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599242366; cv=none; d=google.com; s=arc-20160816; b=YE8aTGI9IMlwQ2umEMDwBasIGxXpQCr0BBS0ibbRZKF9TWHMgATY0IP7hCMYU5M3Ok RX3AM8WgzvvyWdj+am3Km27QjpBW28U2U/ytutWGs6OKsD06HDtvW8m1mnzVj7dK9i35 48ujWKzAINbpF/Y0D/SsAybZ4nV0y3yyUq8oKYiSGqYYv6z3c/7NDFPt27b40apqVGKX La33KggUNcS27+KTQ01v0csTq7jKdbkH057cgFCFyntZgfIOBB2e+N1D77EnLcK7AXXV 9jrbHOCEZlXpuzG6PyGK3aU40iew2YTe8wj3KImADoxPZzwkUINyDLNcko0luUZaEzQe OIoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xWrD3MuyolikZBdkT5ghr88RwiH+oj1SGO1EEE8/fK8=; b=0ZL8Yvwx+FuZ3Ex8C5pErDReXDq2cXxEBVqRENyxBJRHpJUMavMPN3ek7oFcR7ajo2 PGfAobl4RVDkdv6OZWxmJRwalpjiJ2tHj7dJgnM57qjMmQw69Nd+wIN/OnrRWBYlJNzB V6zTts7UTDvdgrRoBKqqaEo7npw5i6zWm6KNYSx5320BlX4NEIRe9uCt0zxf+z1RTGiX I1i2m74L0fPIpkDFvpXOdemSQbnNvZ8YRp9yqKMwbJor94tNx75jUoTHzo97bgfsjEjX 0QeGIfOooDvyXpYlXDpSPj7zoicWAgZVIiGNw3YRQRSa5/K8FZQhBd269ezApRoCuO2u x1Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fgQCIgRW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si4356914ejk.734.2020.09.04.10.59.02; Fri, 04 Sep 2020 10:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fgQCIgRW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgIDR6a (ORCPT + 99 others); Fri, 4 Sep 2020 13:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgIDR62 (ORCPT ); Fri, 4 Sep 2020 13:58:28 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B48FC061244; Fri, 4 Sep 2020 10:58:27 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id n22so6978444edt.4; Fri, 04 Sep 2020 10:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xWrD3MuyolikZBdkT5ghr88RwiH+oj1SGO1EEE8/fK8=; b=fgQCIgRWO9koqQpJSZq0UUVMNjWdYYuTIm3HfndnOr8ei7WofSr0zy+yG8x0XPPYry syRVhzehT0ZIjLtJNng03oQjHxaMO3BEcdNUzsIkeTxfqetWTO2vTELR3ZpcuRrRZ5/L N1ZVac6a1zcGtBy3wgfNZYi9YASM4WHZtCE19VizJ1ypdJt7bMP1VGdbHtj/8jZHkrE/ aMvFV3CsEjbwtu9wLUvO6dR+NlU9QQRfxsV5TjzRLcrBr4zIp6ijB35Q9TVuFQsjDP9E C9RKR7D19nIk6CCoFvQeImizIc1LJbdyP/98edlFpfyTem8uTC/SzpqJKf/5pt2FEhOI qBAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xWrD3MuyolikZBdkT5ghr88RwiH+oj1SGO1EEE8/fK8=; b=J1PqSVAnaw9+4j7Fdyqz1/9nK0lCuA4fH24FkfzRCIroHRGjPquAst3C3XRRpeUhEA FToZwygNu7yBuqBMZSmfzksgEq5G2R7Al/rOeNcKtX4wkCEpm/JrzK6PKa79KDqxD9Oq bRRjTAId1z/2gHv1nzQq7b5FP2n2hGJAkwvQXrwh5biLHgnZZnQV/LRRfCoB0bPqSIYJ Lw43P/K+KnA2iKjFvRpqnykM3m6pfm/OfepdU7MnWRGpJfC+AAkjXbHCQitRGFDicDXM SJNIGSzbM5GDpp28DQydefuYEKED989UQHohsaC60edMQFVBqTFbHGGbAei3hL+xCSg9 dCEg== X-Gm-Message-State: AOAM531oYq72g/rGr3GEyIo7Q907FPMBCUb/zztj4tg/F3I2bQukul2Y Soqaorr2jhEpIKC37WycWA== X-Received: by 2002:aa7:d043:: with SMTP id n3mr9504016edo.243.1599242306081; Fri, 04 Sep 2020 10:58:26 -0700 (PDT) Received: from localhost.localdomain ([46.53.251.136]) by smtp.gmail.com with ESMTPSA id lo25sm6546522ejb.53.2020.09.04.10.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 10:58:25 -0700 (PDT) Date: Fri, 4 Sep 2020 20:58:23 +0300 From: Alexey Dobriyan To: Ingo Molnar Cc: Christoph Hellwig , Linus Torvalds , Al Viro , Michael Ellerman , x86@kernel.org, Luis Chamberlain , Kees Cook , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3 Message-ID: <20200904175823.GA500051@localhost.localdomain> References: <20200903142242.925828-1-hch@lst.de> <20200904060024.GA2779810@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200904060024.GA2779810@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 04, 2020 at 08:00:24AM +0200, Ingo Molnar wrote: > * Christoph Hellwig wrote: > > this series removes the last set_fs() used to force a kernel address > > space for the uaccess code in the kernel read/write/splice code, and then > > stops implementing the address space overrides entirely for x86 and > > powerpc. > > Cool! For the x86 bits: > > Acked-by: Ingo Molnar set_fs() is older than some kernel hackers! $ cd linux-0.11/ $ find . -type f -name '*.h' | xargs grep -e set_fs -w -n -A3 ./include/asm/segment.h:61:extern inline void set_fs(unsigned long val) ./include/asm/segment.h-62-{ ./include/asm/segment.h-63- __asm__("mov %0,%%fs"::"a" ((unsigned short) val)); ./include/asm/segment.h-64-}