public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] uaccess: unify inline vs outline copy_{from,to}_user() selection
@ 2026-03-25 16:33 Yury Norov
  2026-03-25 16:33 ` [PATCH 1/2] " Yury Norov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yury Norov @ 2026-03-25 16:33 UTC (permalink / raw)
  To: Andrew Morton, Thomas Gleixner, Peter Zijlstra (Intel),
	Mathieu Desnoyers, Alice Ryhl, Viktor Malik, Randy Dunlap,
	David Laight, linux-kernel
  Cc: Yury Norov, Christophe Leroy (CS GROUP), Yury Norov

Christophe has pointed in [1] that one my patch incorrectly defines
rust_helper__copy_to_user() wrapper based on INLINE_COPY_FROM_USER.

Having separate controls for 'from' and 'to' versions is pretty useless,
and has proven to be error prone. So, instead of fixing the rust portion,
simply switch the kernel to a single knob.

[1] https://lore.kernel.org/all/746c9c50-20c4-4dc9-a539-bf1310ff9414@kernel.org/

Yury Norov (2):
  uaccess: unify inline vs outline copy_{from,to}_user() selection
  uaccess: minimize INLINE_COPY_USER-related ifdefery

 arch/arc/include/asm/uaccess.h        |  3 +--
 arch/arm/include/asm/uaccess.h        |  3 +--
 arch/arm64/include/asm/uaccess.h      |  3 +--
 arch/hexagon/include/asm/uaccess.h    |  3 +--
 arch/loongarch/include/asm/uaccess.h  |  3 +--
 arch/m68k/include/asm/uaccess.h       |  3 +--
 arch/microblaze/include/asm/uaccess.h |  3 +--
 arch/mips/include/asm/uaccess.h       |  3 +--
 arch/nios2/include/asm/uaccess.h      |  3 +--
 arch/openrisc/include/asm/uaccess.h   |  3 +--
 arch/parisc/include/asm/uaccess.h     |  3 +--
 arch/s390/include/asm/uaccess.h       |  3 +--
 arch/sh/include/asm/uaccess.h         |  3 +--
 arch/sparc/include/asm/uaccess_32.h   |  3 +--
 arch/sparc/include/asm/uaccess_64.h   |  3 +--
 arch/um/include/asm/uaccess.h         |  3 +--
 arch/xtensa/include/asm/uaccess.h     |  3 +--
 include/asm-generic/uaccess.h         |  3 +--
 include/linux/uaccess.h               | 25 ++++++++++---------------
 lib/usercopy.c                        |  4 +---
 rust/helpers/uaccess.c                |  2 +-
 21 files changed, 30 insertions(+), 55 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-26 17:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25 16:33 [PATCH 0/2] uaccess: unify inline vs outline copy_{from,to}_user() selection Yury Norov
2026-03-25 16:33 ` [PATCH 1/2] " Yury Norov
2026-03-26 13:44   ` Christophe Leroy (CS GROUP)
2026-03-26 17:29     ` Yury Norov
2026-03-26 17:49       ` Christophe Leroy (CS GROUP)
2026-03-25 16:33 ` [PATCH 2/2] uaccess: minimize INLINE_COPY_USER-related ifdefery Yury Norov
2026-03-26  8:00   ` Alice Ryhl
2026-03-26 14:15   ` Christophe Leroy (CS GROUP)
2026-03-25 23:31 ` [PATCH 0/2] uaccess: unify inline vs outline copy_{from,to}_user() selection Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox