Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1834549ybh; Tue, 14 Jul 2020 08:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg2PMVy1Rpo3qtVN+/VT8vM9FozTMQCVXN1Ri46w2UGGphmEunmpLiRzDhMUE3clGHDvln X-Received: by 2002:a50:d6dd:: with SMTP id l29mr5132025edj.345.1594740640939; Tue, 14 Jul 2020 08:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594740640; cv=none; d=google.com; s=arc-20160816; b=sSSZ45d5uh3LVddhVrnfBy0Zkmho3nqq0R9TouKWd5MJpDD/t466S8raGKku7kA6gs sOd/53ujSlHAYEQ1CCdslpekerO8iNduWkhCoGsI0bZtu0h39Xnp6rubElTSEgjRuU1f A3HYoK2b2sf/WEJk+zCE6dJ+bKApJoVfVrCrixztnAput6TGQaGjrmV5nwg2jh6Zo2m6 rK9mLpWSlUNV6YskmZXWOaSYgB1OuNj5MeJdiGyUrZUFOLxtlq3ydRUmlMx1LkgeBLQl p0/16Z7GI3/DTQHYR8+OvANiO5+tSWtbuSqRTkygs68QQfX5B+SGJv6NuprN+XDs8o50 44vw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=VvONWUUx+ge2aRqADFFqhcoKfa3RbBALz1DV1ooGJ/Y=; b=uKTuwSvGYDZDdlDkWQ1iC6UEAT7JtRF1BxkUyZp5CVxp9XL3/wkhMEmI2Io3xJNYLy 0vvFL5Vxj/Oe1HODF28hA2hLUsuOYxKWoP5fHLFP3Om0Ge63JfMAsWfzCzwZ6lhq9A+0 U1s4caW+Q49U4pNEx9pe7rD2wv7j4UNwxqhs/XCsIZL8g8tGZ+ufEsYU9DoINl0XE2h9 4bv5ve4xAWjw8yomSOuUidNIq/nND6F6OxBOxJ/pTNLUXNjbmE4e0NO7GcKieyTtUpe2 +nOcZjdmTm3hpekUyMlB1uQgfu9UEALQwt56hBCgNeIjGCFyrPbYGKrmBJHW0dJGZR2K LPXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XijJsNpS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si11622746edv.451.2020.07.14.08.30.16; Tue, 14 Jul 2020 08:30:40 -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=@linux-foundation.org header.s=google header.b=XijJsNpS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726603AbgGNPaF (ORCPT + 99 others); Tue, 14 Jul 2020 11:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbgGNPaE (ORCPT ); Tue, 14 Jul 2020 11:30:04 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34482C061794 for ; Tue, 14 Jul 2020 08:30:03 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id m26so12002859lfo.13 for ; Tue, 14 Jul 2020 08:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VvONWUUx+ge2aRqADFFqhcoKfa3RbBALz1DV1ooGJ/Y=; b=XijJsNpSPPnejytiYcdHjB1XQVu8uaH3j6/gEPYZl+pAI0TcIHWcBLqvOFrhR7jXBP 9cveXgeLbceG8D7dAL+Zepto6GIlhPMkZ8CJdbQEnOtls2STHYWDEB8MFah9uo0hpegd YSVwiX5OVwFQLLXykgySPxhz+QTAG24MkW3WE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VvONWUUx+ge2aRqADFFqhcoKfa3RbBALz1DV1ooGJ/Y=; b=Mqm/MNIq+JRjAywsiDrEBzcEkCw82Oz8Pxjr9FFiZL9fLf7LWe/Ok2QINa1E1wQ+fR gW6iR/4PL0xc2UNoxgOBWu3E7iofKzMfQs8g4d67l2Y8sz7k5REyn0J9P5yGzbutJ+A1 RG+S8mQwuBL0PJAhjGMI+hvRHXUZFM1yQYpoVW0cBL/n0VpNMKCqcPch/bEpzOgBBhGv gHHo4yf0gWKLbj6rusGz9CItPGPa3WjaRS/PKd8p4zGAHIg2aHcTekDw2sehjkn6w1nS PBd9zezWow55s8bDJ1IZ/0V6qOtugJ1bkDA714kDQsg/TIwAp4VJdYmgPu5dXCrCNSbh Bzlw== X-Gm-Message-State: AOAM532/DaoVYo05l/JCC1bvMcBJ6sNjG/9acDbY52yox6Eh5h2DLwV/ KmkJXUZUoYATRxYqUc31XFtkQ4irf10= X-Received: by 2002:ac2:51a1:: with SMTP id f1mr2480766lfk.173.1594740601264; Tue, 14 Jul 2020 08:30:01 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id r13sm5335710lfp.80.2020.07.14.08.29.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jul 2020 08:30:00 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id h22so23294384lji.9 for ; Tue, 14 Jul 2020 08:29:59 -0700 (PDT) X-Received: by 2002:a2e:760b:: with SMTP id r11mr2752959ljc.285.1594740599299; Tue, 14 Jul 2020 08:29:59 -0700 (PDT) MIME-Version: 1.0 References: <20200714105505.935079-1-hch@lst.de> <20200714105505.935079-6-hch@lst.de> In-Reply-To: <20200714105505.935079-6-hch@lst.de> From: Linus Torvalds Date: Tue, 14 Jul 2020 08:29:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/6] uaccess: add force_uaccess_{begin,end} helpers To: Christoph Hellwig Cc: Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Andrew Morton , linux-riscv@lists.infradead.org, linux-arch , Linux Kernel Mailing List , Mark Rutland , Geert Uytterhoeven 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 Tue, Jul 14, 2020 at 4:08 AM Christoph Hellwig wrote: > > Add helpers to wrap the get_fs/set_fs magic for undoing any damange done > by set_fs(KERNEL_DS). There is no real functional benefit, but this > documents the intent of these calls better, and will allow stubbing the > functions out easily for kernels builds that do not allow address space > overrides in the future. It would perhaps have been nicer to rename the save variabel too (neither "seg" nor "oldfs" make much sense once you get rid of the old x86-inspired name). But from a greppability standpoint and a doc standpoint, I guess just renaming the function is sufficient (and certainly easier). Linus