Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1621280ybk; Thu, 21 May 2020 11:07:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyiGc0Ru6Dhn0H/PUAdKzKn2tJDGsdMr2fsC16cFDIfpHRjnnuNEPMK5Flq3hCSqe56ze+ X-Received: by 2002:aa7:da04:: with SMTP id r4mr8439437eds.346.1590084423216; Thu, 21 May 2020 11:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590084423; cv=none; d=google.com; s=arc-20160816; b=lm8ylcJRXKhcpVHLh+RC4/ClrJafHrRuqeWPZm5+QqOQuJad95MbvTOkUoKWJICztI W4yYTMLAGoR3Y9972fiEazYiRN2bUQfjADPGFpOs1Ob/ADLv2b0ss0ScNK/xYOcprHgG Ry1UKlm0fvwGhNhFlIKIs4YwgwePlXkM+Gb5PNmVNWCT1Wsx7ZRFdG6FId5Mgtr4ujlu P2ngZTw2Vytp2E2mDHw8tKv4StzRig0aECj+k4YWwVjyQ+VwDrNo8kshT+dM3ICiO0Cu lCok6aep0vgmWUhR3mu/gC6Y3iO9GZ884PCXNiroWrzP7UMfvpM5n0prvXvZv3tuq4TX JmZA== 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=6Gg4b4CDCsETMIm4Edj1Xv31p6ZdZ0NWSz903G/X2Po=; b=IhEKV5SYGY+atMH8u67gk6+nMoT0bY8o+N6LplwyScPqzoeE3gRGGlPEdn4Iub/Mtz dmJTwq1F5Mqshvnp4aZSUKswaPqlg380zCkb/SDi8sjQqQF2ltcGSs5l1ZGnv1BSHEzR V6bIcJEEB7E3StsEtl9eTbuAI/SPt9S1eLkDgoJE1n7vSdEGEAxuMKI5HO3Wtudf4yc+ m8Fe2bR+sNSAdjSWBSR1Rik/JJE4kPsxBgaqJAThG1w/GidnrH8sjH9GXFJC5rFAgqU6 zOeZbTF7NVEJIFFNIUErVmF++cbxfz5bcJJ8gsEEq/+b/l/vDKtYW0olMpZRPoJVvV2x j+qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C+6xQYv4; 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 re19si3570429ejb.56.2020.05.21.11.06.37; Thu, 21 May 2020 11:07:03 -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=C+6xQYv4; 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 S1729163AbgEUSEH (ORCPT + 99 others); Thu, 21 May 2020 14:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729044AbgEUSEF (ORCPT ); Thu, 21 May 2020 14:04:05 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605E6C05BD43 for ; Thu, 21 May 2020 11:04:05 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id l15so9042933lje.9 for ; Thu, 21 May 2020 11:04:05 -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=6Gg4b4CDCsETMIm4Edj1Xv31p6ZdZ0NWSz903G/X2Po=; b=C+6xQYv405ppXq81KjYUQtltgLKHhtWFV7DfKyUQgnD/o5JsMIaX3ld48tDI1ZlD7K U7kuhQvl7mdKFxmVsF/c3fYz37gu4oWx14U5jtAODWIsK4FqzsUCdodSWDq8PJADqJQN fxp/doyT7dYvEricBmr9oFTSOXixPbh/BPwNs= 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=6Gg4b4CDCsETMIm4Edj1Xv31p6ZdZ0NWSz903G/X2Po=; b=thyBg5J7sjHJhW0RQ1nbg/16mJgOiJ8FUkcAi4EdKioyTYLVuKvZWHol3wlvAhrYHa kEacA8lDiBf+rCOwCy97AOoCfbob4aac4c7hhvtQXMYfJXoZWCeSzsROF/QovhhD7ukX ToZ2kj8O4dRYzRAfPN55WLJtrHVIABzvah8d9mZLlTSMSuntjqAx1Gkwb1uE0rHD0b6t eU75G0yKSLxo4a3ffmPR25MbY8RwFs4E9fGgNEfbtMM9n7gDeJ6yT+Z0WhxK2FzlcJof PAIrWFFOE/P84+PfjoBNJlel55qbGcBikxuSLBlHcOJJQVrvJkUjIIcuig8i4jlaP79P YNog== X-Gm-Message-State: AOAM5333zQnHDaSSjZcn4PIyNhFTymSd2eca7B40MhkPQgIUO/CrJgy3 Rdy8tJMiofYm+eFTlwkVQo2CWQ5DmIc= X-Received: by 2002:a2e:9acb:: with SMTP id p11mr3449223ljj.432.1590084242571; Thu, 21 May 2020 11:04:02 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id n14sm1406256lfi.97.2020.05.21.11.04.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 11:04:01 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id u15so9427941ljd.3 for ; Thu, 21 May 2020 11:04:01 -0700 (PDT) X-Received: by 2002:a2e:9891:: with SMTP id b17mr3748342ljj.312.1590084240602; Thu, 21 May 2020 11:04:00 -0700 (PDT) MIME-Version: 1.0 References: <20200521152301.2587579-1-hch@lst.de> In-Reply-To: <20200521152301.2587579-1-hch@lst.de> From: Linus Torvalds Date: Thu, 21 May 2020 11:03:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: clean up and streamline probe_kernel_* and friends v4 To: Christoph Hellwig Cc: "the arch/x86 maintainers" , Alexei Starovoitov , Daniel Borkmann , Masami Hiramatsu , Andrew Morton , linux-parisc@vger.kernel.org, linux-um , Netdev , bpf@vger.kernel.org, Linux-MM , Linux Kernel Mailing List 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 Thu, May 21, 2020 at 8:23 AM Christoph Hellwig wrote: > > this series start cleaning up the safe kernel and user memory probing > helpers in mm/maccess.c, and then allows architectures to implement > the kernel probing without overriding the address space limit and > temporarily allowing access to user memory. It then switches x86 > over to this new mechanism by reusing the unsafe_* uaccess logic. I could not see anything to object to in this version. So Ack from me, but obviously I'm hoping others will try to read it through as well. Linus