Whamcloud - gitweb
LU-16211 o2iblnd: Avoid NULL md deref 77/48777/3
authorChris Horn <chris.horn@hpe.com>
Mon, 3 Oct 2022 21:34:11 +0000 (15:34 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Oct 2022 05:54:20 +0000 (05:54 +0000)
commitf792297212387c2ff1b1dd6ead1e2d451a375ade
tree106bea3d46ee216ce395ec95a628cbeba5f93a75
parent3f5227b04ed712d5b441a7735a4beacdbb099156
LU-16211 o2iblnd: Avoid NULL md deref

struct lnet_msg::msg_md is NULL when a router is forwarding a
REPLY. ko2iblnd attempts to access this pointer on the receive path.
This causes a panic.

Test-Parameters: trivial
Fixes: 959304eac7 ("LU-15189 lnet: fix memory mapping.")
HPE-bug-id: LUS-11269
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I0c1dbb1e0bcd3c17b278f358755d465f7bbbb2b0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48777
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c