Whamcloud - gitweb
LU-12600 tgt: shortio size should be unsigned 53/35653/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 30 Jul 2019 18:10:32 +0000 (14:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:51:17 +0000 (07:51 +0000)
commit4c3864cf97711d73b12905fea720570cf814d179
tree27fb125fec83f00593b5ded0a448cdda5c8cb8dc
parentc32c7401426d46b371fa993bba17265443fefa1b
LU-12600 tgt: shortio size should be unsigned

The short_io_size value is accepting unsigned values from
req_capsule_get_size, and so needs to be unsigned as well.

If it's not, it's possible for the short_io_size memcopy to
act on an incorrect value and cause memory corruption.

Reported-by: Alibaba Cloud <yunye.ry@alibaba-inc.com>
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I043e314cd43a7b40519f951a605fa5a36ff91dcf
Reviewed-on: https://review.whamcloud.com/35653
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/target/tgt_handler.c