Re: Local DoS on single_open?

From: Nick Piggin
Date: Wed Sep 10 2003 - 23:52:52 EST




Keith Owens wrote:

single_open() requires the kernel to kmalloc a buffer which lives until
the userspace caller closes the file. What prevents a malicious user
opening the same /proc entry multiple times, allocating lots of kmalloc
space and causing a local DoS?



ulimit?


-
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/