From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 1AC7533F36B for ; Mon, 2 Mar 2026 18:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772477717; cv=none; b=obepyBBF4rVATUbDX6y0s0ORdkIoP9W4GCT+K4JBQY4/O96hMvGq0EPW7F97MgvThNcRRFNJ4uO/PdKcngsljS9iYA10oviiBLTZqchPhMeUzlQCsQ+wcbZrU8i1KljFxI0fIQ08zAz40XUnT8e4p/qBPJuqZqSP9DD71uHd670= 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.49 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-f49.google.com with SMTP id 5b1f17b1804b1-48371119eacso60236655e9.2 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=p7P5iwfvBw9SWyTJMh/xQPIHIuIHOWvKCWAHNsprjaSgPi9GJP0JikJn2tc9Pb6uMA vlv6j407Jv7toiS/M6li740Sa4L4ZDG+afFEBksGaPVQf32355eoxlD0ndMq2MOrP3jS uxhuNFCZtnCW4BeeIha1peXHJm0kK3Oau6vGSJy9/RGLx2LJYhzd2SLG6pp1d3YY9geS QyrrVRBvTIukX32FuLbtctnoqqkHJ4z5bRmDZ6HLXt+lSGCNkKuule04DfFEqb3cAzNZ p++Y7FvsuwbBKJ06jufkoFv3Eao86MIPeReF7uSd4nUAPJJek/YZXrLL01a1HJGd+/5X sFIw== X-Forwarded-Encrypted: i=1; AJvYcCXi8v+2DxNa60DTJE1/YhmGrMB8rZF0jTapZuzc1BIWlp8BhZ0eav+HvaCHADh31k/sOFfx6dGRVYqeQX4N@vger.kernel.org X-Gm-Message-State: AOJu0YwZ9j5RpLoJiClO1Sij3hsNN5kRD1/67jfnBdUBxknTlv2vxcww 2KslXpCMdwo1/w56/t1YGltFWn6S4MNr3lMQfqJFp0/Ji+gWu9d1DE9V X-Gm-Gg: ATEYQzyFyiC8zKRqsw0D5gS9oWxELfZcEy4Snwk5Ehctpwrjmhw760gWHyrM2tNW/HK UkzokQHaMZy8ZOiAjS25uJjDKlupQAV+68VWZ2WbxUSxj53UtlY8NK5l1BlJXa+KdEivpitIITv 9pMWWAZNg82HOW8GJd9ImcQX1bk4Aua5ohe41lMcZCzuFwqMdqjHf+l/O1CAKAuE1jhNK/zd+uS oZU2hy9hlWlGfXg3LAOXmYaTK81LJ2bMnTjbVgFNoeIZYKQ52+JYBH+l0FNm7s57JazfHr1yxdj GABpSLzP5RGTrhcZoh7Boto0aAznWbsHvRophU9FsueLkLR9cuMlmiElNr9hb6s30UrVGTCjckj wZ1c2gLSwU387O+8Ww9/ucVMTaWTAnJZHbC2u0WIzVJyKQeH6rLceTM42dsxJi7nOhaS2jpKn2K i0g2fBsd5kTkhOLgIRrQ== 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-fsdevel@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