Whamcloud - gitweb
LU-16157 lnet: lst read-outside of allocation 47/48547/3
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Wed, 14 Sep 2022 19:59:11 +0000 (22:59 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Dec 2022 14:43:10 +0000 (14:43 +0000)
commit222fbed52e02122c752fcb7fca153e9d8fe487bf
tree4795b31820d5d3e94745902b423b4fd48c3c02b3
parentdce487f53a6f7835561df57a0489c6dbaed33fb1
LU-16157 lnet: lst read-outside of allocation

lnet_selftest want a some parameters from userspace,
but it never sends. It caused a read of outside of allocation
like
BUG: KASAN: slab-out-of-bounds in lstcon_testrpc_prep+0x19e7/0x1bb0
Read of size 4 at addr ffff8888bbaa866c by task lt-lst/6371

Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I2a98e60c4be65c49fa9da4b418e50f1c7309b69d
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48547
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/selftest/conrpc.c
lnet/utils/lst.c