Re: BUG: unable to handle kernel paging request

From: Anca Emanuel
Date: Sun Mar 27 2011 - 13:44:35 EST


On Sun, Mar 27, 2011 at 7:00 PM, Américo Wang <xiyou.wangcong@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/