summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorMiklos Szeredi2006-04-11 07:54:59 +0200
committerLinus Torvalds2006-04-11 15:18:49 +0200
commit08a53cdce62d37d918530bbbf726cc01b21dc3d1 (patch)
tree2db5e37737da91f1b2b32136e4e10ad540d8dc09 /COPYING
parent[PATCH] fuse: clean up request accounting (diff)
downloadkernel-qcow2-linux-08a53cdce62d37d918530bbbf726cc01b21dc3d1.tar.gz
kernel-qcow2-linux-08a53cdce62d37d918530bbbf726cc01b21dc3d1.tar.xz
kernel-qcow2-linux-08a53cdce62d37d918530bbbf726cc01b21dc3d1.zip
[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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions