[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTinXjEvvV+_E8soiT7zE09O_QT6Gfkh7CPh8mV=N@mail.gmail.com>
Date: Sun, 27 Mar 2011 20:44:05 +0300
From: Anca Emanuel <anca.emanuel@...il.com>
To: Américo Wang <xiyou.wangcong@...il.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Al Viro <viro@...iv.linux.org.uk>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: BUG: unable to handle kernel paging request
On Sun, Mar 27, 2011 at 7:00 PM, Américo Wang <xiyou.wangcong@...il.com> wrote:
> Exactly... should be fixed by something like:
>
> diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
> index 7c708a4..6b82632 100644
> --- a/fs/proc/task_mmu.c
> +++ b/fs/proc/task_mmu.c
> @@ -90,7 +90,7 @@ static void pad_len_spaces(struct seq_file *m, int len)
>
> static void vma_stop(struct proc_maps_private *priv, struct
> vm_area_struct *vma)
> {
> - if (vma && vma != priv->tail_vma) {
> + if (vma && !IS_ERR(vma) && vma != priv->tail_vma) {
> struct mm_struct *mm = vma->vm_mm;
> up_read(&mm->mmap_sem);
> mmput(mm);
>
I tested the patch and works ok now. Thanks Américo Wang !
Without it, I can reproduce the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists