On Wed, Mar 24, 2010 at 10:47:42PM +0100, Andrea Arcangeli wrote: > As far as I can tell, VM_BUG_ON would make _zero_ differences there. > > I think you mistaken a VM_BUG_ON for a: > > if (could_be_null->something) { Ooops, I wrote ->something to indicate that "could_be_null" was going to later be dereferenced for ->something and here we're checking if it could be null when we dereference something, but now I think it could be very confusing as I use strict C for all the rest, so maybe I should clarify in C it would be !could_be_null. > WARN_ON(1); > return -ESOMETHING; > } > > adding a VM_BUG_ON(inode->something) would _still_ be as exploitable here the same !inode. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>