浏览代码

[PATCH] amd64 rt_sigframe user annotation

->pretcode in struct rt_sigframe is a userland pointer (and already
treated as such by code using that field). 

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Al Viro 20 年之前
父节点
当前提交
993fb38b1c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86_64/kernel/signal.c

+ 1 - 1
arch/x86_64/kernel/signal.c

@@ -83,7 +83,7 @@ sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
 
 struct rt_sigframe
 {
-	char *pretcode;
+	char __user *pretcode;
 	struct ucontext uc;
 	struct siginfo info;
 };