X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Fkcore.c;h=e78c81fcf547981f3aa99c7ebeca831af15e98f5;hb=59b7435149eab2dd06dd678742faff6049cb655f;hp=1be73082edd388bd443f0be5c559cdf756eccbbb;hpb=21b4e736922f546e0f1aa7b9d6c442f309a2444a;p=linux-2.6 diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 1be73082ed..e78c81fcf5 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -325,7 +324,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;