Skip to content
Commit 4b3cb1d1 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: improve error handling from ext4_dirhash()



The ext4_dirhash() will *almost* never fail, especially when the hash
tree feature was first introduced.  However, with the addition of
support of encrypted, casefolded file names, that function can most
certainly fail today.

So make sure the callers of ext4_dirhash() properly check for
failures, and reflect the errors back up to their callers.

Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20230506142419.984260-1-tytso@mit.edu
Reported-by: default avatar <syzbot+394aa8a792cb99dbc837@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+344aaa8697ebd232bfc8@syzkaller.appspotmail.com>
Link: https://syzkaller.appspot.com/bug?id=db56459ea4ac4a676ae4b4678f633e55da005a9b
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent a44be64b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment