Re: [PATCH v2 0/3] uaccess: unify inline vs outline copy_{from,to}_user() selection

From: Andrew Morton

Date: Mon Apr 27 2026 - 12:08:11 EST


On Fri, 24 Apr 2026 22:08:54 -0400 Yury Norov <ynorov@xxxxxxxxxx> 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:.