[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/29360: vfs.generic.usermount and mount(8) general questions
On Sun, Sep 06, 2009 at 09:23:19PM +0300, Antti Kantee wrote:
> Apparently you can still make the system panic by just mounting a zillion
> kernfs's (which is just one way to make the kernel run out of memory).
> I think the problem is that somewhere along the line kmem_alloc(KM_SLEEP)
> returns NULL. I remember there being discussions that the caller of
> kmem_alloc() should always check against NULL return, but that of course
> makes calling it slightly inconvenient.
Well, I would expect all code pathes that allocate kernel memory with
KM_SLEEP / M_WAITOK to have resource limits on them. Don't we have one
for user mounts?
Main Index |
Thread Index |