staging/lustre/llite: check for integer overflow in hsm user request
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Fri, 15 Aug 2014 16:48:06 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Aug 2014 16:38:42 +0000 (09:38 -0700)
commit6b2eb32e697d151ebaf52f9b0304d16f63a27b43
tree671a6e2d977040c22d8911122c60e5ff0f84dfac
parentd41b7b74cfab08cf7a5c07fafac474af9dd51d9c
staging/lustre/llite: check for integer overflow in hsm user request

Check to make sure total size of request does not overflow when
calculated.  Return -1 from hur_len() if it does overflow.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-on: http://review.whamcloud.com/10615
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4984
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/llite/dir.c