From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BC24317155 for ; Mon, 2 Mar 2026 18:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772477717; cv=none; b=USHiAdDrUr3WIYoZw4jqZ/FOam9FxBXIYPIXTuUpbQ/tpIRnhzcxFycPykzSQG4EKcB+/QGIzVb6G/98GAbQTN6MFD90tVNBRBXzguan5U4dWVUDAqSh13vWFFIQA8SfzYSnjx+Im3zC+SW4WXCijPL9hYguxyonyYeAOG4bzQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772477717; c=relaxed/simple; bh=6CWcjg4sVeYB4RPm3k+7MYd79lL+Kt3ozxhbCjBaI2Y=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WP2jSF7Wa+x+uvUsGmtcafxRJqnprCNjqtyZhsPWw+EviFbJtclQsTlqHi0zbBrzszK88aN+M6zEqWSJZTqe2d9ASuBornCiFUauqnM/4b0rXCMz6BVKKvNZo/yvvrVR8KT779+dr4HTgm0e7IlSGLZT6F/A6XPkC7jwLuMEQDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UvCWi9k+; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UvCWi9k+" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-48375f1defeso36432255e9.0 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=vger.kernel.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=UvCWi9k+QnpLrY5/dA3CMsPNlt7ii5K2NB+3bP7iE3Vh5skznbDG8WWxKzkZYtETx+ D26PdOdXT9NI+Zp1pATJDM5V/01+tm9EC7Ts/Sh2kI6B2cFhIF3wHFLRYkpAEYC75ZXB QUgUai8zcJbN+c/sKzmGxemMRYCVECpUCYNnVmqon/MwGgzEUqOQU0CyfulfQdX1zauU YDoZ5EMcuax1AmJi7th9YsNGUSt9OFMj52/2uw17em8ZEzpz4a7w+dIiajfiZYVpgdHy i247OgWwQ2pQ/BPibQVZ7HkXWy2/Xvpob6a7c/kG40NAYIqbdkbnJdr5pWlgSx8TBFgH v2IQ== 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=JEpQ8VjjnresdoFFuWZeirqrEWhlIHkXlQNfP7IP1vLOqImuFmnSwXs5EIa9LirEK0 DTHaU936AjNbAfxsMPgsFWD+Mujq9riGVSCcJBv6MbhZq9/QcQvxlmNMdN89zD/GU/AY CGH8ejNkv/D5sq1x7J7ouGQyIpqioWh0+Tqi5gH+IiEI8m9BdvHGQ5s2kdhLkAE8W99F VnpoCywdgXZlhQARwTDjOHcYMsLkK1CMb0FE+UfZJAmFVk4eTLsAd4RcjbYFtVrE03dW ww0akVtVsF0T0DP6q63nZMVBHLIH3HoGssBx+uo63fQPwPIo5XPfxzHsEXZzdg1xM5tI DHXA== X-Forwarded-Encrypted: i=1; AJvYcCXO8svcXzubSh9cxo3Nh9Xdw0lHDAsjGtL8oWPdxiJK7gkXMTwsUxXmcAnyntPy4I+MimVVutPQUqdLSLM=@vger.kernel.org X-Gm-Message-State: AOJu0Yyo6LYzyHVn/fMSjypfSXHHZg1GCpC1ensw94w2WPllkHyBuNQk r9kS8ZY5ndhqMNLUZIm6PaAnpeUqwaJx7K+bxP8XUk3g2WmaPBfUAmId X-Gm-Gg: ATEYQzxMvpkE2dJs17cildnLh7NMW/Ng9HMtd31tyXTI500ZWTi2cH4kPzlxJH1Z4u8 1tBOzAthZ8zU16Ag7uoKNR0HsN03FXw4IuKP9Tc/QPSxZ1oMNkw7oT9/pOyWicVZR4+6rWkCLFZ 8g+MnzW9hxDPwh7U+V5jjSSqtnbRx+DouPSXY38mp2pBxnr6RDU9NpXuyRZMaJFGNZ9sckTEU8F G2n2UQWuqYlqL29MFIWbCaeFY4LCoM7047WV+d413VDGn7yEue7p6aKmYgTmbrwCpBad/7tyBn+ BVh0UuAXE8NaY4vCSEvUxn5v9PbkhUXrcL5Mrt2lZq32gNOIQvFquVXnzYxMLiF/hhYsj+WO3Oo kG92WPjOwLWMJaC2bBAdQB/IxV5s+b6QzORo/h2Kbb0tDuHBndX30dhWeUXqE9jYXl765PHMh9V cHJmv7bfbOHF3kDNGqjA== 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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