> Date: Thu, 8 Nov 2012 13:08:24 +0000 > From: Stuart Henderson <[email protected]> > > Oh talking of RLIMIT reminds me...can someone who knows this area take > a look at http://thread.gmane.org/gmane.os.aeriebsd.general/100 please?
Change looks reasonable, but I think that instead of multiplying vm_ssize by PAGE_SIZE, the could should use atop() to convert rlim_cur/rlim_max to a number of pages. That is how the checks are done in uvm/uvm_unix.c.
