Skip to content

Fix oops / warning when allocation of symlink fails

Jan Kara linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext3: Fix truncation of symlinks after failed writefs/ext3/inode.c+10 -90 replies
2/2ext4: Fix truncation of symlinks after failed writefs/ext4/inode.c+13 -132 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix oops / warning when allocation of symlink fails

Hi,

the two patches in this series fix a problem for ext3/ext4 when we fail
to allocate blocks for a symlink. In ext3 this could lead to a memory corruption (since freed inode could remain on in-memory orphan list), in ext4 just to some warnings on the next mount (Sigh. Ted was maybe right we should always do ext?_orphan_del() regardless of calling truncate ;)).
Ted, would you please merge the patch (or both if you like)? Thanks.

Honza