Commit a956af33 authored by Martin Brandenburg's avatar Martin Brandenburg Committed by Mike Marshall

orangefs: fix bounds check for listxattr

Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 418ce3eb
...@@ -358,7 +358,7 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size) ...@@ -358,7 +358,7 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
returned_count = new_op->downcall.resp.listxattr.returned_count; returned_count = new_op->downcall.resp.listxattr.returned_count;
if (returned_count < 0 || 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", gossip_err("%s: impossible value for returned_count:%d:\n",
__func__, __func__,
returned_count); returned_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment