yup, this is really done in a leading-to-bugs way... :(This patch fixes error path in setup_arg_pages() functions, since it misses vm_unacct_memory() after successful call of security_vm_enough_memory(). Also it cleans up error path.
Ugh. The identifier `security_vm_enough_memory()' sounds like some
predicate which has no side-effects. Except it performs accounting. Hence
bugs like this.
It's a shame that you mixed a largeish cleanup along with a bugfix - pleasenot a problem :) thanks for your time and looking at the patches I sent.
don't do that in future.