git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
is_vmalloc_addr(): Check if an address is within the vmalloc boundaries
[safe/jmp/linux-2.6]
/
fs
/
proc
/
kcore.c
diff --git
a/fs/proc/kcore.c
b/fs/proc/kcore.c
index
1be7308
..
7dd26e1
100644
(file)
--- a/
fs/proc/kcore.c
+++ b/
fs/proc/kcore.c
@@
-325,7
+325,7
@@
read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
if (m == NULL) {
if (clear_user(buffer, tsz))
return -EFAULT;
- } else if (
(start >= VMALLOC_START) && (start < VMALLOC_END
)) {
+ } else if (
is_vmalloc_addr((void *)start
)) {
char * elf_buf;
struct vm_struct *m;
unsigned long curstart = start;