Whamcloud - gitweb
LU-18751 lnet: Segfault in lnetctl fault command 16/58216/2
authorFrank Sehr <fsehr@whamcloud.com>
Wed, 26 Feb 2025 00:24:17 +0000 (16:24 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Mar 2025 08:10:13 +0000 (08:10 +0000)
commit30868de94003ae436d7177b92e22553c22f54b9f
tree5876044e9bea0c31434a87324d7c91ab383647dd
parent129ac1bbd779249f681270616737d1dda993c83b
LU-18751 lnet: Segfault in lnetctl fault command

"lnetctl fault reset 0" and similar variations cause a segfault. This
is caused by a null pointer that is not checked in the code.

Test-Parameters: trivial
Signed-off-by: Frank Sehr <fsehr@whamcloud.com>
Change-Id: Iec580b19f97c2a189ae8f29444bf3e3cc91d78a0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58216
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Manish Regmi <mregmi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c
lustre/tests/sanity-lnet.sh