mbox series

[0/2,v2] ext4: Fix crash when adding entry to corrupted directory

Message ID 20220518093143.20955-1-jack@suse.cz
Headers show
Series ext4: Fix crash when adding entry to corrupted directory | expand

Message

Jan Kara May 18, 2022, 9:33 a.m. UTC
Hello,

two patches in this series try to fix a crash when adding directory entry to a
directory with corrupted h-tree. Since I don't have the filesystem image
causing the crash, I'm not sure what was the cause but the stacktrace suggests
we have corrupted one h-tree node while modifying another one so likely
there was a cycle created in the h-tree. This series checks for it and bails
out early.

Changes since v1:
* Fixed compilation error in the first patch (which got fixed in the second
  patch)
* Fixed stack corruption issue with largedir feature

								Honza

Previous versions:
Link: http://lore.kernel.org/r/20220428180355.15209-1-jack@suse.cz # v1