2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/fs/fuse
Miklos Szeredi 08a53cdce6 [PATCH] fuse: account background requests
The previous patch removed limiting the number of outstanding requests.  This
patch adds a much simpler limiting, that is also compatible with file locking
operations.

A task may have at most one synchronous request allocated.  So these requests
need not be otherwise limited.

However the number of background requests (release, forget, asynchronous
reads, interrupted requests) can grow indefinitely.  This can be used by a
malicous user to cause FUSE to allocate arbitrary amounts of unswappable
kernel memory, denying service.

For this reason add a limit for the number of background requests, and block
allocations of new requests until the number goes bellow the limit.

Also use this mechanism to block all requests until the INIT reply is
received.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-11 06:18:49 -07:00
..
dev.c [PATCH] fuse: account background requests 2006-04-11 06:18:49 -07:00
dir.c [PATCH] fuse: clean up request accounting 2006-04-11 06:18:49 -07:00
file.c [PATCH] fuse: clean up request accounting 2006-04-11 06:18:49 -07:00
fuse_i.h [PATCH] fuse: account background requests 2006-04-11 06:18:49 -07:00
inode.c [PATCH] fuse: account background requests 2006-04-11 06:18:49 -07:00
Makefile [PATCH] FUSE - file operations 2005-09-09 14:03:45 -07:00