mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
orangefs: fix bounds check for listxattr
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Cc: stable@vger.kernel.org Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
418ce3eb66
commit
a956af337b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user