From: Glauber de Oliveira Costa Date: Tue, 20 Feb 2007 21:58:12 +0000 (-0800) Subject: [PATCH] Missing __user in pointer referenced within copy_from_user X-Git-Tag: v2.6.21-rc1~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63967fa911c2c49376d0b1e171ef98e1b2b075af;p=linux-2.6 [PATCH] Missing __user in pointer referenced within copy_from_user Pointers to user data should be marked with a __user hint. This one is missing. Signed-off-by: Glauber de Oliveira Costa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 4f5745af8c..01f7769da8 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -581,7 +581,7 @@ out_no_task: #ifndef mem_write /* This is a security hazard */ -static ssize_t mem_write(struct file * file, const char * buf, +static ssize_t mem_write(struct file * file, const char __user *buf, size_t count, loff_t *ppos) { int copied;