]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86-64/arm64/powerpc: clean up and rename __copy_from_user_flushcache
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2026 21:52:45 +0000 (14:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:22:31 +0000 (13:22 +0200)
commit576d365f31d9beea188a94eab72acecf0558542b
tree1db94fb81c623a06452ee83a16ccad5246137c27
parent03fd014cd9f3a3d173740ab9c5cbede82fd6322c
x86-64/arm64/powerpc: clean up and rename __copy_from_user_flushcache

commit 809b997a5ce945ab470f70c187048fe4f5df20bf upstream.

This finishes the work on these odd functions that were only implemented
by a handful of architectures.

The 'flushcache' function was only used from the iterator code, and
let's make it do the same thing that the nontemporal version does:
remove the two underscores and add the user address checking.

Yes, yes, the user address checking is also done at iovec import time,
but we have long since walked away from the old double-underscore thing
where we try to avoid address checking overhead at access time, and
these functions shouldn't be so special and old-fashioned.

The arm64 version already did the address check, in fact, so there it's
just a matter of renaming it.  For powerpc and x86-64 we now do the
proper user access boilerplate.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/uaccess.h
arch/powerpc/include/asm/uaccess.h
arch/powerpc/lib/pmem.c
arch/x86/include/asm/uaccess_64.h
arch/x86/lib/usercopy_64.c
lib/iov_iter.c