Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 719a937

Browse files
author
Peter Zijlstra
committed
iov_iter: Mark copy_iovec_from_user() noclone
Extend commit 50f9a76 ("iov_iter: Mark copy_compat_iovec_from_user() noinline") to also cover copy_iovec_from_user(). Different compiler versions cause the same problem on different functions. lib/iov_iter.o: warning: objtool: .altinstr_replacement+0x1f: redundant UACCESS disable lib/iov_iter.o: warning: objtool: iovec_from_user+0x84: call to copy_iovec_from_user.part.0() with UACCESS enabled lib/iov_iter.o: warning: objtool: __import_iovec+0x143: call to copy_iovec_from_user.part.0() with UACCESS enabled Fixes: 50f9a76 ("iov_iter: Mark copy_compat_iovec_from_user() noinline") Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Borislav Petkov (AMD) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9f71fbc commit 719a937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iov_iter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ static __noclone int copy_compat_iovec_from_user(struct iovec *iov,
13491349
return ret;
13501350
}
13511351

1352-
static int copy_iovec_from_user(struct iovec *iov,
1352+
static __noclone int copy_iovec_from_user(struct iovec *iov,
13531353
const struct iovec __user *uiov, unsigned long nr_segs)
13541354
{
13551355
int ret = -EFAULT;

0 commit comments

Comments
 (0)