Received: by 10.223.148.5 with SMTP id 5csp6795878wrq; Wed, 17 Jan 2018 19:16:53 -0800 (PST) X-Google-Smtp-Source: ACJfBotjP25a2jWeLuu1/rj68UUc3WQBCRwTebejqFh3bjj2KVvaAA64sJxyfYRrBee6Ja8ti7DR X-Received: by 10.84.216.26 with SMTP id m26mr36268471pli.158.1516245413671; Wed, 17 Jan 2018 19:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516245413; cv=none; d=google.com; s=arc-20160816; b=DpDBWOvEUoURP7yMv5X4Odp/R7uWgoVS5sO9Ov46S3Rp+hAK2yhK4GBxYx53Jn34ZG yPjGeG5yXdKrly+8ao8zxK2Ra56nosL/0tuOqc3Srw+xG5JhwoWi49YqrqwKVKjl59Xx F7aydGfcJjZroeqelMEL3aQBb3BVBy5XwBAiYRzDDnabfvO3xxHxHSI7zvo3XjO/ZSdO Vv0qXj/Fgst6PUkpUiw22I0Rk5CG5ZKZ+mgsBsLc8Rv6JgfKed7cjtAGX3tiX2L8f5zJ GSq0J+uaiwlg7cP8QGm2NwDrBw2I8i+tPSIPLxC4riqI+ElgCviXLi8plRIFH6lO/mbr hLUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/Bau8khhAmhXUNzkHtq/YBJYM8HUkTe/efztU1LL0+0=; b=G0uBCegXIzWKsZiL6p7IdQmtIdHBNWlbbqoFhrZc4fZq0WSN5k4Rjyrm61jFUl5A3L E8P86d6b11KEolyd1T2HDSBnZf0qhEgnm/T1OOqR08q7p5Ii/dPkZsSTrT8uuXEbX6d0 IH/zu4Lg2mx/pvTjtpMDy0gO091s/U3G7mv+E1zt0wnafU0rCZcrvGzy5j3gl1qx1xQV W0TVc6B/PD3arybktiNs5JbaCe835BQrEB61h866EydQ3g4a82/Up5fTBKWOyCqKtNnd wxtn6EQgMP3m7Lhc5gRm6Dh2s39dtrCARWe79UtfwTlWoLmkJae3v6IbeC5lHYmG9Dm1 HDzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=P9awCJ0q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si5941684plk.706.2018.01.17.19.16.39; Wed, 17 Jan 2018 19:16:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=P9awCJ0q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754541AbeARDQF (ORCPT + 99 others); Wed, 17 Jan 2018 22:16:05 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:42240 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753427AbeARDQD (ORCPT ); Wed, 17 Jan 2018 22:16:03 -0500 Received: by mail-io0-f196.google.com with SMTP id 25so23248516ioj.9; Wed, 17 Jan 2018 19:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/Bau8khhAmhXUNzkHtq/YBJYM8HUkTe/efztU1LL0+0=; b=P9awCJ0qPvR+avwa6AJM+nTvquI2JNUd+jxcvXv6U0ked78lktqUhpTGtxFexec/YT EMMgwb1ukHZTo2Ls9avw6GmYbLskpaSsjnmLCiPSOQGoYtYkbpjdLl57/bAUgjGy6bq8 huVZuy17wP/PliPV6GqUbqSxuPNh3GN26EyuF/lTXr8RqizsHTxPtnw30NU430OVgbi9 ZjuA9E/MjsNYXPkpfntw5VC+7jVoUndSINW6oLSMKarSGVOMQel8SXDme4yaA67VrFVu Bsu0d7IRu0pKXwFER/BPETjl7OxEmaLihTZ3ROD5egmXqFvDV7Qgy0DsOivZ1vweXBUz k6ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/Bau8khhAmhXUNzkHtq/YBJYM8HUkTe/efztU1LL0+0=; b=brgF4VohOJ7BhrkJt76f53WZOu6Ljm6noQJD1v5shebwGrFAaRguq44VKmGIq/yRNw gdIi87jcCH+Q+kHunQdvwGI9bU388ulrn5Dbxmarctsvr2bBqYysilvorb6MXguvlhJf 06Lndxu6CbTPvVLgphmhfTLL5zxZCZMtNDbtp5bKIXTl/9HwpS1w2K+vCyADW5UN26oZ 0IXo6G6so7gsHw0RDUDLzGGQJaOG5Z9BkPETaBrHyn1L0ZbqflbqBX+6Z1rg2FoKZ9V7 3/kRgIwXJLYTDus5t+FRzT0I7NTSprnlWPwscRjdOuxmLKdDVJ1CNV2jQ6SC8/rGLLg8 J/fw== X-Gm-Message-State: AKwxytdnckG4yReaevngqWOQOU4mdKIzXcpZfnuResKZ6C2R1r4f2jTq luAwXmsDPMo5hATnhBP13tpaR5jB2UKDAtzExrs= X-Received: by 10.107.132.3 with SMTP id g3mr28796608iod.46.1516245362689; Wed, 17 Jan 2018 19:16:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.6.147 with HTTP; Wed, 17 Jan 2018 19:16:02 -0800 (PST) In-Reply-To: <20180118030634.GY13338@ZenIV.linux.org.uk> References: <151586744180.5820.13215059696964205856.stgit@dwillia2-desk3.amr.corp.intel.com> <151586748981.5820.14559543798744763404.stgit@dwillia2-desk3.amr.corp.intel.com> <1516198646.4184.13.camel@linux.intel.com> <20180117185232.GW13338@ZenIV.linux.org.uk> <20180118030634.GY13338@ZenIV.linux.org.uk> From: Linus Torvalds Date: Wed, 17 Jan 2018 19:16:02 -0800 X-Google-Sender-Auth: CTpynZ6gui-gXlIFkqUdaQFhh2Q Message-ID: Subject: Re: [RFC][PATCH] get rid of the use of set_fs() (by way of kernel_recvmsg()) in sunrpc To: Al Viro Cc: Network Development , Dan Williams , Linux Kernel Mailing List , linux-arch@vger.kernel.org, Andi Kleen , Kees Cook , kernel-hardening@lists.openwall.com, Greg Kroah-Hartman , "the arch/x86 maintainers" , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Andrew Morton , Alan Cox , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 7:06 PM, Al Viro wrote: > > Similar to the way put_cmsg() handles 32bit case on biarch > targets, introduce a flag telling put_cmsg() to treat > ->msg_control as kernel pointer, using memcpy instead of > copy_to_user(). That allows to avoid the use of kernel_recvmsg() > with its set_fs(). If this is the only case that kernel_recvmsg() exists for, then by all means, that patch certainly looks like a good thing. Linus