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 B5B9434C139 for ; Mon, 27 Apr 2026 15:58:15 +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=1777305495; cv=none; b=QUAIVxsI0f0dU1XPbtw09WRr149mHM/XWMC2L0o8OfJX09nbn0vR1QGOfQmQcPnU/yzPhvie91FRheQieXrQJ4J8u1zV0LlbN5736x1oCUev0YEfEAgdVGI/mjVjP3DQf9p4GdiqQosaURm6GEWVHdyK2bsXDPXKjM7cSg+ISDo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305495; c=relaxed/simple; bh=tzacyRI2niA3Z8LLpPBhLhRplObOygijmXtfHp6j8Nw=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=WXNMX96op0iBFAQp1f5zn4S8T3JJPXuJwxgkoCV/fe95YSYzqqhqlCrihgLqryXlTN361cz7eeJlcd4ptiXaW3MU5NRbth69idRmU/j+DXcUWH/be2V6rWoC9Din98UZ2eo/L1NudIB6A1SiicR6+QZl2COeOUaM1jeJp5Yf+PA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=h5FKt3Rh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="h5FKt3Rh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E915FC19425; Mon, 27 Apr 2026 15:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1777305495; bh=tzacyRI2niA3Z8LLpPBhLhRplObOygijmXtfHp6j8Nw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h5FKt3Rh8AQHP0UlmofOn5D4wvZab52daGGbDsI/FIQKD3fKrJgelYeHdNXuq+h8i uqykCOWIoCY3BuqQPKN9+ftDp7pUeGCxJQEUhfrCMkxJpvoO76pCyP2wc3YPQqflCc qvNXikbnXUuNVEq/bUq7Kvr5iaT+u4EEw4L5CfjY= Date: Mon, 27 Apr 2026 08:58:14 -0700 From: Andrew Morton To: Yury Norov Cc: Thomas Gleixner , "Peter Zijlstra (Intel)" , Mathieu Desnoyers , Alice Ryhl , Viktor Malik , Randy Dunlap , David Laight , linux-kernel@vger.kernel.org, "Christophe Leroy (CS GROUP)" , Yury Norov , Arnd Bergmann Subject: Re: [PATCH v2 0/3] uaccess: unify inline vs outline copy_{from,to}_user() selection Message-Id: <20260427085814.7ca0b134603b8d5813e23396@linux-foundation.org> In-Reply-To: <20260425020857.356850-1-ynorov@nvidia.com> References: <20260425020857.356850-1-ynorov@nvidia.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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 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:.