Whamcloud - gitweb
LU-12600 tgt: shortio size should be unsigned 67/35867/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 30 Jul 2019 18:10:32 +0000 (14:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2019 03:48:22 +0000 (03:48 +0000)
commit7c8d76862717400c7498757ae6e491805cd701de
tree69f68c6ed5c890037f51c55d775d80823a24f3e3
parentd70c45a124aa2580115111aa8a77648f073dc799
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.

Lustre-change: https://review.whamcloud.com/35653
Lustre-commit: 4c3864cf97711d73b12905fea720570cf814d179

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