]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fuse: limit user-specified values of max background requests
authorCsaba Henk <csaba@gluster.com>
Wed, 26 Aug 2009 17:17:22 +0000 (19:17 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 16 Sep 2009 12:15:29 +0000 (14:15 +0200)
commit487ea5af6358cb27c994e2cf056d4ee0872e43c3
tree26db6260934ad1743db6da6319cb7a502dd775e2
parentd6db07ded51c5fb4df2f4a32e6a41e9bb5db7fc4
fuse: limit user-specified values of max background requests

An untrusted user could DoS the system if s/he were allowed to accumulate an
arbitrary number of pending background requests by setting the above limits
to extremely high values in INIT. This patch excludes this possibility by
imposing global upper limits on the possible values of per-mount "max
background requests" and "congestion threshold" parameters for unprivileged
FUSE filesystems.

These global limits are implemented as module parameters.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c