Whamcloud - gitweb
LU-17431 nodemap: sanity check ioctl user buffer 28/54928/4
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 26 Apr 2024 14:49:17 +0000 (16:49 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:46:07 +0000 (04:46 +0000)
commit1de7a72cd437c93c537377023d5243d43589394a
tree4671bfb7666174f6d9960d0fd45044eb91ebcfd1
parent3f13f89e2f19b46a8f27ad007c10251147984875
LU-17431 nodemap: sanity check ioctl user buffer

In server_iocontrol_nodemap(), user data is copied into a struct
lustre_cfg. Then this data must be sanity checked, by calling
lustre_cfg_sanity_check().

CoverityID: 425252 ("Passing tainted expression lcfg->lcfg_buflens to lustre_cfg_string")
CoverityID: 397130 ("Passing tainted expression lcfg->lcfg_buflens")
Fixes: 72734cf178 ("LU-17431 ptlrpc: move nodemap related ioctls to ptlrpc")

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I268b53fc0e977716ffd1985d145dc27b6acccf94
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54928
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/nodemap_handler.c