summaryrefslogtreecommitdiff
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>2020-04-20 19:39:59 -0700
committerTheodore Ts'o <tytso@mit.edu>2020-06-03 23:16:49 -0400
commitc36a71b4e35ab35340facdd6964a00956b9fef0a (patch)
treebd5d5792db46bc4e03233af0e696601e56385e14 /fs/ext4/ialloc.c
parent39c0ae163f3b3ae691e7cce226ba1984ef6456b1 (diff)
downloadlwn-c36a71b4e35ab35340facdd6964a00956b9fef0a.tar.gz
lwn-c36a71b4e35ab35340facdd6964a00956b9fef0a.zip
ext4: fix EXT_MAX_EXTENT/INDEX to check for zeroed eh_max
If eh->eh_max is 0, EXT_MAX_EXTENT/INDEX would evaluate to unsigned (-1) resulting in illegal memory accesses. Although there is no consistent repro, we see that generic/019 sometimes crashes because of this bug. Ran gce-xfstests smoke and verified that there were no regressions. Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com> Link: https://lore.kernel.org/r/20200421023959.20879-2-harshadshirwadkar@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/ialloc.c')
0 files changed, 0 insertions, 0 deletions