UML - __user annotation in arch_prctl
PATCH 4/6 UML - __user annotation in arch_prctl
From: Al Viro <[email protected]>
fix uml/amd64 prctl()
put_user() there should go to (long __user *)addr, not &addr
Signed-off-by Al Viro <[email protected]>
Signed-off-by Jeff Dike <[email protected]>
arch/um/sys-x86_64/syscalls.c +1 -1
@@ -45,7 +45,7 @@ static long arch_prctl_tt(int code, unsicase ARCH_GET_GS : ret =arch_prctl (code, (unsigned long ) &tmp);if (!ret) - ret =put_user (tmp, &addr); + ret =put_user (tmp, (long __user *)addr);break ;default : ret = -EINVAL ;