• Theodore Ts'o's avatar
    ext4: fix kernel oops caused by spurious casefold flag · 6456ca65
    Theodore Ts'o authored
    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>
    6456ca65
dir.c 18.1 KB