From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EC7D3E866B for ; Mon, 27 Apr 2026 18:47:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777315675; cv=none; b=lgN277VvPvOLQ53Q/26HjroYD8GPSiQwf1puRBvrzyOeX4lKVO4+we5Z9RXzGpV9iY7dQuS8aEP78qeb3YGtwDq9YbjBPsEg6rRFI2SIYH/H7Ejxi7prMg6VdPoYHk0Zvak8AgS70WHHNNTAZEG/3D7xU/30ZuHIEG9+kIZR3Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777315675; c=relaxed/simple; bh=ah2rHAVEOh8pY6q+Pz5g4+9Q/OJv6gpko7fpl2MMU8I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z2XAlEqkw9BMgEu2Li+oNPKngy0YKlNR4ATc2vPTOPsXS2NC+fiQPuo9vRyy6WG5YMiA+MPINJHRi70xRHEqJnF+koSMxovf6OuDOVXyxVyM3IOT9oBkbL43mroO9uKA7LMdxNQd/Hfgb6SzuKTVh67lsPlCMTBAGVIaBQqpGPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e5FmCJYy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e5FmCJYy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D371C4AF0B; Mon, 27 Apr 2026 18:47:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777315675; bh=ah2rHAVEOh8pY6q+Pz5g4+9Q/OJv6gpko7fpl2MMU8I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=e5FmCJYySVlGoMPMOx8Zzp+B567MtlILBadMOLR67NxfkLjqjlAolnnazMb4uZHkc jfH1gYGR2ra3F9C5xi4rBjH6UplK1fF52OSaFnr6iu046l/LYH7wR8NWypptOVv+Gv hhk4JpZKrnDqB8nbLfSIkp/Km/hhNI5Hdocs8TIlkLwR9TT8m56iNraj9ZxQEHhOlt HwlAo57b0EyoXCH7ZEC02tb1KZNL3MPb+p3ZQ4rpznGMA9luNU1cjM1/qsB80X57se OD5/q2O7FwRjXu6noOEnqc+E4IUSGVQX+zmir9O6HgbJ+Qx77qZmnsgHawkndRjCzk EgTPpLRGQ4Hfw== Message-ID: <86e9faec-06be-4e37-a07d-7cd3df3c4006@kernel.org> Date: Mon, 27 Apr 2026 20:47:49 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] uaccess: unify inline vs outline copy_{from,to}_user() selection To: Andrew Morton , Yury Norov Cc: Thomas Gleixner , "Peter Zijlstra (Intel)" , Mathieu Desnoyers , Alice Ryhl , Viktor Malik , Randy Dunlap , David Laight , linux-kernel@vger.kernel.org, Yury Norov , Arnd Bergmann References: <20260425020857.356850-1-ynorov@nvidia.com> <20260427085814.7ca0b134603b8d5813e23396@linux-foundation.org> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260427085814.7ca0b134603b8d5813e23396@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 27/04/2026 à 17:58, Andrew Morton a écrit : > On Fri, 24 Apr 2026 22:08:54 -0400 Yury Norov wrote: > >> The kernel allows arches to select between inline and outline >> implementations of the copy_{from,to}_user() by defining individual >> INLINE_COPY_FROM_USER and INLINE_COPY_TO_USER, correspondingly. >> However, all arches enable or disable them always together. >> >> Without the real use-case for one helper being inlined while the other >> outlined, having independent controls is excessive and error prone. >> >> The first patch of the series fixes rust/uaccess coppy_to_user() wrapper >> guarded with INLINE_COPY_FROM_USER. The 2nd patch switches codebase to >> the unified INLINE_COPY_USER. And the last patch cleans up ifdefery in >> the include/linux/uaccess.h > > Seems sensible, thanks. I'll queue these up for test-n-review. > > Arnd was involved in some of the Fixes: commits and might be interested > in these changes, so Cc:. > I have an alternative as patch 2 in this series : https://lore.kernel.org/all/cover.1777306795.git.chleroy@kernel.org/ Christophe