linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] ext4: Fix crash when adding entry to corrupted directory
@ 2022-05-18  9:33 Jan Kara
  2022-05-18  9:33 ` [PATCH 1/2] ext4: Verify dir block before splitting it Jan Kara
  2022-05-18  9:33 ` [PATCH 2/2] ext4: Avoid cycles in directory h-tree Jan Kara
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Kara @ 2022-05-18  9:33 UTC (permalink / raw)
  To: Ted Tso; +Cc: linux-ext4, Jan Kara

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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/2] ext4: Fix crash when adding entry to corrupted directory
@ 2022-04-28 18:31 Jan Kara
  2022-04-28 18:31 ` [PATCH 1/2] ext4: Verify dir block before splitting it Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kara @ 2022-04-28 18:31 UTC (permalink / raw)
  To: Ted Tso; +Cc: linux-ext4, Jan Kara

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.

								Honza

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-19  2:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-18  9:33 [PATCH 0/2 v2] ext4: Fix crash when adding entry to corrupted directory Jan Kara
2022-05-18  9:33 ` [PATCH 1/2] ext4: Verify dir block before splitting it Jan Kara
2022-05-19  2:16   ` Theodore Ts'o
2022-05-18  9:33 ` [PATCH 2/2] ext4: Avoid cycles in directory h-tree Jan Kara
  -- strict thread matches above, loose matches on Subject: below --
2022-04-28 18:31 [PATCH 0/2] ext4: Fix crash when adding entry to corrupted directory Jan Kara
2022-04-28 18:31 ` [PATCH 1/2] ext4: Verify dir block before splitting it Jan Kara
2022-05-17 23:40   ` Theodore Ts'o
2022-05-18  9:09     ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).