All of lore.kernel.org
 help / color / mirror / Atom feed
* + missing-__user-in-pointer-referenced-within-copy_from_user.patch added to -mm tree
@ 2007-02-15 23:01 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-15 23:01 UTC (permalink / raw)
  To: mm-commits; +Cc: gcosta


The patch titled
     Missing __user in pointer referenced within copy_from_user
has been added to the -mm tree.  Its filename is
     missing-__user-in-pointer-referenced-within-copy_from_user.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Missing __user in pointer referenced within copy_from_user
From: Glauber de Oliveira Costa <gcosta@redhat.com>

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/base.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/proc/base.c~missing-__user-in-pointer-referenced-within-copy_from_user fs/proc/base.c
--- a/fs/proc/base.c~missing-__user-in-pointer-referenced-within-copy_from_user
+++ a/fs/proc/base.c
@@ -617,7 +617,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;
_

Patches currently in -mm which might be from gcosta@redhat.com are

missing-__user-in-pointer-referenced-within-copy_from_user.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-15 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 23:01 + missing-__user-in-pointer-referenced-within-copy_from_user.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.