summaryrefslogtreecommitdiff
path: root/fs/ext4/move_extent.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-23 12:24:46 (GMT)
committerTheodore Ts'o <tytso@mit.edu>2009-11-23 12:24:46 (GMT)
commit503358ae01b70ce6909d19dd01287093f6b6271c (patch)
treeef81060e38e5eb0895e9455892d5f8cf186a0603 /fs/ext4/move_extent.c
parent2de770a406b06dfc619faabbf5d85c835ed3f2e1 (diff)
downloadlinux-503358ae01b70ce6909d19dd01287093f6b6271c.tar.xz
ext4: avoid divide by zero when trying to mount a corrupted file system
If s_log_groups_per_flex is greater than 31, then groups_per_flex will will overflow and cause a divide by zero error. This can cause kernel BUG if such a file system is mounted. Thanks to Nageswara R Sastry for analyzing the failure and providing an initial patch. http://bugzilla.kernel.org/show_bug.cgi?id=14287 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/move_extent.c')
0 files changed, 0 insertions, 0 deletions