Whamcloud - gitweb
LU-17000 mdt: symbolic link integer overflow 51/56151/8
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 31 Aug 2024 03:40:43 +0000 (10:40 +0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Dec 2024 08:10:58 +0000 (08:10 +0000)
commitbf04d2fdaa7ad3edfbf24e391107f447d6d0a9d0
treee37906cc2edc95fb39490ec23539d24ed272a60a
parent5a4c9a319c1a376ee100e2ccd40ac8e5c10bfe09
LU-17000 mdt: symbolic link integer overflow

CoverityID: 442376 ("Integer overflow")
Use ssize_t to avoid narrowing

CoverityID: 442114 ("Integer handling issues")
mdt_getattr_internal() a theoretical underflow when subtracting
from an unsigned int that could be 0

Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I560c9cbcbfed907725b101ca90661fe8d0d6cf45
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56151
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/mdt/mdt_handler.c