Skip to content

Commit 4eab2e2

Browse files
Miklos Szeredigregkh
authored andcommitted
fuse: reject internal errno
commit 49221cf upstream. Don't allow userspace to report errors that could be kernel-internal. Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com> Fixes: 334f485 ("[PATCH] FUSE - device functions") Cc: <stable@vger.kernel.org> # v2.6.14 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bb7ee90 commit 4eab2e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/fuse/dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
18711871
}
18721872

18731873
err = -EINVAL;
1874-
if (oh.error <= -1000 || oh.error > 0)
1874+
if (oh.error <= -512 || oh.error > 0)
18751875
goto copy_finish;
18761876

18771877
spin_lock(&fpq->lock);

0 commit comments

Comments
 (0)