projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ef086
)
fuse: reject internal errno
author
Miklos Szeredi
<mszeredi@redhat.com>
Tue, 22 Jun 2021 07:15:35 +0000
(09:15 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Tue, 22 Jun 2021 07:15:35 +0000
(09:15 +0200)
Don't allow userspace to report errors that could be kernel-internal.
Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Fixes: 334f485df85a ("[PATCH] FUSE - device functions")
Cc: <stable@vger.kernel.org> # v2.6.14
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
patch
|
blob
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index 6e63bcba2a402552ca89fac6d733acbd1a1c795b..b8d58aa082062b6c2ed882b88b8ae93061b6fc83 100644
(file)
--- a/
fs/fuse/dev.c
+++ b/
fs/fuse/dev.c
@@
-1867,7
+1867,7
@@
static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
}
err = -EINVAL;
- if (oh.error <= -
1000
|| oh.error > 0)
+ if (oh.error <= -
512
|| oh.error > 0)
goto copy_finish;
spin_lock(&fpq->lock);