projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2764f8
)
orangefs: fix bounds check for listxattr
author
Martin Brandenburg
<martin@omnibond.com>
Tue, 25 Apr 2017 19:37:56 +0000
(15:37 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:28:39 +0000
(14:28 +0200)
commit
a956af337b9ff25822d9ce1a59c6ed0c09fc14b9
upstream.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/orangefs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/orangefs/xattr.c
b/fs/orangefs/xattr.c
index
74a81b1
..
fba4db7
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);