* [PATCH] Missing __user in pointer referenced within copy_from_user
@ 2007-02-15 20:08 Glauber de Oliveira Costa
0 siblings, 0 replies; only message in thread
From: Glauber de Oliveira Costa @ 2007-02-15 20:08 UTC (permalink / raw)
To: linux-kernel, akpm
Pointers to user data should be marked with a __user hint. This one is missing.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
---
fs/proc/base.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 4f5745a..01f7769 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;
--
1.4.4.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-15 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 20:08 [PATCH] Missing __user in pointer referenced within copy_from_user Glauber de Oliveira Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox