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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14037C433EF for ; Mon, 14 Feb 2022 17:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231791AbiBNRfu (ORCPT ); Mon, 14 Feb 2022 12:35:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357168AbiBNRfo (ORCPT ); Mon, 14 Feb 2022 12:35:44 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF15365416 for ; Mon, 14 Feb 2022 09:35:35 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id u6so32091653lfc.3 for ; Mon, 14 Feb 2022 09:35:35 -0800 (PST) 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=hl2tx2/b0j1as4iPc8br7ak6VbssTN3Lkaa01qKImp4=; b=B3+89vMVlD+t/jr4Ir3J5heCAGLy+8O/Bfqv5DSjHS7vGRacFAUCCs0TF2tOD5+IOJ DARHbhMwmXg8IKTGNN5wyW1UIWJ3dy3zDkUXnMSy6euD4EH/SAawjrYbWaSs+0JtxWja ZBOb3OkzZ9V/CSYGxjkJVHb89skxzNvZve0yg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hl2tx2/b0j1as4iPc8br7ak6VbssTN3Lkaa01qKImp4=; b=uN08alzQ13Q5TGGI3ole5v39qB6m4aIgIHxRAh/PGphega5X7mOxEhMRq0CPuJJuUF nqgjG2PT9MDk+K0DpFdRKUFH9lDQI7suFTOQ5tqTX+k6PDC08BLdW8jF0SivQzG0mVfS cxuY1HFoFNse/j31pmzqmkTnPb+/9Voykk0cUrVp3JkTHdxFpMx2aY11eQeBS6NMLyh6 h7EcZmo4wIdXzSmKd2YNZxuxzjhQ/VJ9Ve/zq4OMGwQ8o1c/9YRq+ul2MYfaZRVvJ8TE c/1lGlZMA30tIxpt0Tf/8d/ZvNmeg8uwXe1jyw6P+4JK6rHpnaHshRF/Ai5gA62I7+dA S7Ig== X-Gm-Message-State: AOAM533peyi6C7Ub8V7RS0Ypm93A7FcdnnpG6QBd+sBinYlCSozLnogT HBtdnTlvBHbodGoRfttOci9Kwc2TKyI6Fl7G X-Google-Smtp-Source: ABdhPJxr9sfZKkKC2DaFrShJAMKCPMlwwpFsNOva2qFHTxQf0pL4gagYwt7LodPVjGlB5Y3/pAvv6Q== X-Received: by 2002:a05:6512:3406:: with SMTP id i6mr52340lfr.327.1644860134111; Mon, 14 Feb 2022 09:35:34 -0800 (PST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id o10sm2286319lfb.9.2022.02.14.09.35.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Feb 2022 09:35:32 -0800 (PST) Received: by mail-lf1-f44.google.com with SMTP id b11so7386976lfb.12 for ; Mon, 14 Feb 2022 09:35:32 -0800 (PST) X-Received: by 2002:a19:4302:: with SMTP id q2mr49672lfa.449.1644860131952; Mon, 14 Feb 2022 09:35:31 -0800 (PST) MIME-Version: 1.0 References: <20220214163452.1568807-1-arnd@kernel.org> In-Reply-To: <20220214163452.1568807-1-arnd@kernel.org> From: Linus Torvalds Date: Mon, 14 Feb 2022 09:35:15 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/14] clean up asm/uaccess.h, kill set_fs for good To: Arnd Bergmann Cc: Christoph Hellwig , linux-arch , Linux-MM , Linux API , Arnd Bergmann , Linux Kernel Mailing List , Russell King - ARM Linux , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Nick Hu , Greentime Hu , Dinh Nguyen , Stafford Horne , Helge Deller , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Mark Rutland , Heiko Carstens , Rich Felker , David Miller , Richard Weinberger , "the arch/x86 maintainers" , Max Filippov , "Eric W. Biederman" , Andrew Morton , Ard Biesheuvel , alpha , "open list:SYNOPSYS ARC ARCHITECTURE" , Linux ARM , linux-csky@vger.kernel.org, linux-hexagon , linux-ia64@vger.kernel.org, linux-m68k , "open list:BROADCOM NVRAM DRIVER" , openrisc@lists.librecores.org, linux-parisc , linuxppc-dev , linux-riscv , linux-s390 , Linux-sh list , linux-sparc , linux-um , linux-xtensa@linux-xtensa.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On Mon, Feb 14, 2022 at 8:35 AM Arnd Bergmann wrote: > > I did a patch for microblaze at some point, which turned out to be fairly > generic, and now ported it to most other architectures, using new generic > implementations of access_ok() and __{get,put}_kernel_nocheck(). Thanks for doing this. Apart from the sparc64 issue with completely separate address spaces (so access_ok() should always return true like Al pointed out), this looks excellent to me. Somebody should check that there aren't other cases like sparc64, but let's merge this asap other than that. Linus