[PATCH] watch_queue: Limit the number of watches a user can hold

2020-08-17 Thread David Howells
Impose a limit on the number of watches that a user can hold so that they can't use this mechanism to fill up all the available memory. This is done by putting a counter in user_struct that's incremented when a watch is allocated and decreased when it is released. If the number exceeds the RLIMIT

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-30 Thread David Howells
David Howells wrote: > Could you consider taking this patch as a bugfix since the problem exists > already in upstream code? Alternatively, I can include it in a set with the mount notifications. David

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-30 Thread David Howells
Hi Linus, Could you consider taking this patch as a bugfix since the problem exists already in upstream code? David

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 11:17:26PM +0100, David Howells wrote: > Impose a limit on the number of watches that a user can hold so that they > can't use this mechanism to fill up all the available memory. > > This is done by putting a counter in user_struct that's incremented when a > watch is alloc

[PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-24 Thread David Howells
Impose a limit on the number of watches that a user can hold so that they can't use this mechanism to fill up all the available memory. This is done by putting a counter in user_struct that's incremented when a watch is allocated and decreased when it is released. If the number exceeds the RLIMIT