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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF8EBEB3624 for ; Mon, 2 Mar 2026 18:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OZiahy1QNZCDGjgXr1DnDLdN7BM5tbDMjzzP3F7jtvE=; b=KMSHyfAN0VC20T qJ8SpAnjqqEfzYyDqyucQHzmPjV2R5rYdSfQN6IGEaHNdVO+dpggh51IGbxql928bnmduesYJoQUI h6SV5ZcBM3Il1xD++F2o3JypVxVn3JC2/oO8xurFGdf6vg17CfVoUSR6eS/TvnKKf1sy3t2wcgMzc pFY3pWtFSgJhT7rMYrmRzfI4XfZ0vqICkvsRw8UYBLPEaP5ruiCbq1VC6ra+ZmEcjPfaehnLBac3d 5n/nthN5hI/QgUr0bY6v33kio4+PMhNbBTXxMppOkoFFEwWzprwFpN13FsbhVUTXI+KC6+q7zti3r hXjnLMjHokUrHrIKZL9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vx8QI-0000000DhIS-2qwa; Mon, 02 Mar 2026 18:55:18 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vx8QG-0000000DhHh-1eC2 for linux-riscv@lists.infradead.org; Mon, 02 Mar 2026 18:55:17 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-483a233819aso46542525e9.3 for ; Mon, 02 Mar 2026 10:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772477714; x=1773082514; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=hRlJolTcfRvzUSQHPs3dCXFlQx1DAFYYMFjz2DuLSf4=; b=AKt99DUR2FCTTejz9qMMBhQ6OjSyNdwWC6LnaUn6J9sm2kF3EUN/D/el8aiykS/ICL mIxPdYdugPvp/yW0FyskV/ScEQ8LdK0e1r0i3etF+6uiQqJxleO5YInInyZow1IUmakg pvmyxID4C6wKffvDgnjIOHxtXRXTbyf7o+/pcGXzInjRaOqwF4OiQBEDImr49YevN8Yk +xBeq9kwzT849fJQC+pWupEHxtU5IqMdQ5WBX3pLyVPxAwBqSOu+0DG1mp+EqKGM2P7e jFP7OWPB4EN7WLWLvzMch/FjnpOIXizAIk9+81GSWJfY5/7YnRrdRXbH2m6q7/rWiwHK F3JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772477714; x=1773082514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hRlJolTcfRvzUSQHPs3dCXFlQx1DAFYYMFjz2DuLSf4=; b=W2oMpJ0HlYde7k5rNE/Dk/W7olba0r1772FNZao7U4UnaOSfGHEb3jfAlYuGRUu0Ji HFpQPJczZE6bTlO4Q9sbK2jMG8YHDq9nqEGYqdkBlmIaFYnRfhOSQ6PlwDTQX4Hh9l4H BELATC+b6jU6qjQ8bzhyo+IW3FhFGADHUAcyQgoaD0gBS9Y1ArhaXu43D4kQE0WWieJ3 FghAUqqIzf5Gbribok8nmkLKEx/xsSyTyqEfJrbd5xT918mIqRpPcSSkLZ9/grFj/Txi prPfRHkucAgqUp7MCGxwRnWIWNqHoBz/IE2bY1xsG5hE5mSfNgEcPtUboSsT3h7Ibv4h NusQ== X-Forwarded-Encrypted: i=1; AJvYcCVPHQeD9VO+eq/PQ8voOyE000ohWpRiNA1JvkVD3d34qHfolPDb68Zhs0d+iix7YMsUQH2IcAs2HRLBdQ==@lists.infradead.org X-Gm-Message-State: AOJu0YwmZWWAZMPhVcx8PKi+t9HsL/0LQ89x486OPCiki21TOd2dShl0 gjQIaW5oSArbaFqSZoVpakBNJ9yfV+v/bCOVASoK0WY7f8dGRxje9Wdd X-Gm-Gg: ATEYQzycEkDAEZ6h7WM+ANVisIfVENdD5V4FLdsaScFKQsYkijypwo8MyZmfdt/mI7d XjKyyXWAeUpZAr5JFQ64Tr7evvoCiumgOQdBTTnT+kpx7KCh0HwnCYFCRTUmbZgRds3D8vD7rmc TOShBTfkuwHtpMcraDfNWjqDrOJYrl8b3I4hVUIehHocA9+BpyPVekkfwMWtmIRUZXKh5Cy937K qQTSbc/Zf4sIxPND4cmM55gq7pVPCUQicO4GEC5VuwPsAPrnuqlXihcStNTBWNr86LSimGsSYiL V/cXlatIdvebh0Ml/01dnYicZPysILsCmDX7UstQHHUzHMz61mF+CjUtn5vqvddtagskOxIS6IM uE+w9az2uEWiJ9J2CEce2a46jtgShVmGRQiPwaGMNpoihqWPLegVMh1VIZTkCRSdRdR5z355yxf ETQcgiCAV+5Ae1p/0grQ== X-Received: by 2002:a05:600c:350d:b0:483:a8e9:201b with SMTP id 5b1f17b1804b1-483c9b81265mr267465545e9.0.1772477712531; Mon, 02 Mar 2026 10:55:12 -0800 (PST) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483c3b89c99sm299471225e9.15.2026.03.02.10.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 10:55:12 -0800 (PST) Date: Mon, 2 Mar 2026 18:55:10 +0000 From: David Laight To: Linus Torvalds Cc: "Christophe Leroy (CS GROUP)" , Alexander Viro , Andre Almeida , Andrew Cooper , Christian Borntraeger , Christian Brauner , Christophe Leroy , Darren Hart , Davidlohr Bueso , Heiko Carstens , Jan Kara , Julia Lawall , linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, LKML , Madhavan Srinivasan , Mathieu Desnoyers , Michael Ellerman , Nicholas Piggin , Nicolas Palix , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Russell King , Sven Schnelle , Thomas Gleixner , x86@kernel.org, Kees Cook , akpm@linux-foundation.org Subject: Re: [PATCH v2 1/5] uaccess: Fix scoped_user_read_access() for 'pointer to const' Message-ID: <20260302185510.6b49a025@pumpkin> In-Reply-To: References: <20260302132755.1475451-1-david.laight.linux@gmail.com> <20260302132755.1475451-2-david.laight.linux@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260302_105516_437149_577BE50D X-CRM114-Status: GOOD ( 19.44 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Mon, 2 Mar 2026 09:26:31 -0800 Linus Torvalds wrote: > On Mon, 2 Mar 2026 at 06:59, Christophe Leroy (CS GROUP) > wrote: > > > > Can we get this fix merged in 7.0-rc3 so that we can start building 7.1 > > on top of it ? > > Applied this first patch. I'm not so convinced about the others in the > series, although people can always try to argue for them.. Patches 2 and 3 seemed a reasonable idea to me. Removes a lot of code that is only there to make the whole thing work. The 'with' is a bit of a take on Pascal - but without the 'making the code completely unreadable' side effect. I don't do WARN=1 builds, never mind WARN=2 :-) Although -Wshadow can find real bugs - so I would turn it on and suffer the annoyances. Patch 5 was just what I was experimenting with. Doing the equivalent change to the non-compat version (IIRC it uses the (likely) much slower copy_to/from_user() because the structures match) might even be more sensible. David > > Linus _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv