Skip to content

nilfs2: prevent unexpected ENOENT propagation

Ryusuke Konishi linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] nilfs2-do-not-propagate-enoent-error-from-nilfs_sufile_mark_dirty.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5nilfs2: treat missing sufile header block as metadata corruptionfs/nilfs2/sufile.c+18 -50 repliesApplied
2/5nilfs2: treat missing cpfile header block as metadata corruptionfs/nilfs2/cpfile.c+12 -100 repliesApplied
3/5nilfs2: do not propagate ENOENT error from sufile during recoveryfs/nilfs2/recovery.c+10 -10 repliesApplied
4/5nilfs2: do not propagate ENOENT error from sufile during GCfs/nilfs2/segment.c+56 -80 repliesApplied
5/5nilfs2: do not propagate ENOENT error from nilfs_sufile_mark_dirty()fs/nilfs2/sufile.c+8 -10 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] nilfs2: prevent unexpected ENOENT propagation

Hi Andrew,

please add this series to the queue for the next cycle.

This series fixes potential issues where the result code -ENOENT, which is returned internally when a metadata file operation encouters a hole block, is exposed to user space without being properly handled.

Several issues with the same cause leading to hangs or WARN_ON check failures have been reported by syzbot and fixed each time in the past. This collectively fixes the missing -ENOENT conversions that do not cause stability issues and are not covered by syzbot.

Thanks,
Ryusuke Konishi

Ryusuke Konishi (5):
nilfs2: treat missing sufile header block as metadata corruption
nilfs2: treat missing cpfile header block as metadata corruption
nilfs2: do not propagate ENOENT error from sufile during recovery
nilfs2: do not propagate ENOENT error from sufile during GC
nilfs2: do not propagate ENOENT error from nilfs_sufile_mark_dirty()

 fs/nilfs2/cpfile.c   | 22 ++++++++-------
 fs/nilfs2/recovery.c | 11 +++++++-
 fs/nilfs2/segment.c  | 64 ++++++++++++++++++++++++++++++++++++++------
 fs/nilfs2/sufile.c   | 32 +++++++++++++++++-----
 4 files changed, 104 insertions(+), 25 deletions(-)
Signature · 1 line
2.34.1