BUG_ON or Oops NULL deref ?

From: Metuki Sabhe
Date: Thu Oct 14 2010 - 12:41:08 EST


I realize this may start a flamewar, but I would like to have your inputs here:

Do we BUG_ON on NULL pointers before dereferencing them, or even more
idiotically, explicitly check the pointers and return an error if they
are invalid, or, can we sanely assume a NULL deref would Oops.

Yes, we had exploits, but can't we trust mmap_min_addr now ?
--
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/