Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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 <gcosta@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Glauber de Oliveira Costa and committed by
Linus Torvalds
63967fa9 96c62d51

+1 -1
+1 -1
fs/proc/base.c
··· 581 581 582 582 #ifndef mem_write 583 583 /* This is a security hazard */ 584 - static ssize_t mem_write(struct file * file, const char * buf, 584 + static ssize_t mem_write(struct file * file, const char __user *buf, 585 585 size_t count, loff_t *ppos) 586 586 { 587 587 int copied;