]> git.itanic.dy.fi Git - linux-stable/commit
x86: move stac/clac from user copy routines into callers
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Apr 2023 20:39:15 +0000 (13:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Apr 2023 00:05:28 +0000 (17:05 -0700)
commit3639a535587d7aac449cdce9710dfdc97a3c8c8e
treeec5bb3c10ed99a83143a66979a6c0af529ea6daa
parentd2c95f9d6802cc518d71d9795f4d9da54fb4e24d
x86: move stac/clac from user copy routines into callers

This is preparatory work for inlining the 'rep movs' case, but also a
cleanup.  The __copy_user_nocache() function was mis-used by the rdma
code to do uncached kernel copies that don't actually want user copies
at all, and as a result doesn't want the stac/clac either.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uaccess_64.h
arch/x86/lib/copy_user_64.S
arch/x86/lib/usercopy_64.c
tools/objtool/check.c