Whamcloud - gitweb
LU-17895 lnet: Validate input for lnetctl import 40/55340/3
authorChris Horn <chris.horn@hpe.com>
Thu, 6 Jun 2024 16:55:39 +0000 (10:55 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jun 2024 01:16:03 +0000 (01:16 +0000)
commita197c77470772b0159c983a150b0f60d26c5bcc9
tree53ea7e8c3093cd5038eb10c097c0ce2f57db7a06
parent383fedf853e46edec18b7d2bb3699fb0b0a37438
LU-17895 lnet: Validate input for lnetctl import

Add validation of the input being parsed by lnetctl import when it is
expecting the global parameters. This resolves segmentation faults
when it encounters bad or missing keys and values.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I232daed773283ea89e9815bf6bd79526dfd5fd4f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55340
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh