projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
418ce3e
)
orangefs: fix bounds check for listxattr
author
Martin Brandenburg
<martin@omnibond.com>
Tue, 25 Apr 2017 19:37:56 +0000
(15:37 -0400)
committer
Mike Marshall
<hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000
(14:33 -0400)
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/orangefs/xattr.c
b/fs/orangefs/xattr.c
index 74a81b1daaac8850b68f37bc46110657082dfcc1..fba4db7d0512c59087101412d2234fb7acaa61ae 100644
(file)
--- a/
fs/orangefs/xattr.c
+++ b/
fs/orangefs/xattr.c
@@
-358,7
+358,7
@@
try_again:
returned_count = new_op->downcall.resp.listxattr.returned_count;
if (returned_count < 0 ||
- returned_count >
=
ORANGEFS_MAX_XATTR_LISTLEN) {
+ returned_count > ORANGEFS_MAX_XATTR_LISTLEN) {
gossip_err("%s: impossible value for returned_count:%d:\n",
__func__,
returned_count);