Skip to content
Commit 6456ca65 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix kernel oops caused by spurious casefold flag



If an directory has the a casefold flag set without the casefold
feature set, s_encoding will not be initialized, and this will cause
the kernel to dereference a NULL pointer.  In addition to adding
checks to avoid these kernel oops, attempts to load inodes with the
casefold flag when the casefold feature is not enable will cause the
file system to be declared corrupted.

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 9ba55543
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment