On Fri, 1 Feb 2008 17:24:17 +0900 "Kenichi Okuyama" <kenichi.okuyama@gmail.com> wrote:
quoted text > First of all, thank you for looking at the patch.
>
> I do agree that if mm is NULL, system will call Oops anyway.
> However, since it's oops, it does not stop the system, nor call kdump.
That would be a huge bug in kdump? Surely it dumps when the kernel oopses?
quoted text > By calling BUG_ON(), it'll gives us chance of calling kdump at the first chance.
>
> Since this is very rare to happen, I thought we should capture the incident
> whenever possible. On other hand, because BUG_ON macro is very light,
> I thought this will not harm any performance...
>
> Forgive me in advance if I was wrong.
> I still think checking mm with BUG_ON here is better than counting on Oops.
But there are probably a million potential NULL-pointer dereferences in the
kernel. Why single out this one?
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [patch] NULL pointer check for vma->vm_mm , Andrew Morton , (Fri Feb 1, 6:19 am)