Skip to content

nilfs2: protect busy buffer heads from being force-cleared

Ryusuke Konishi stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nilfs2: do not output warnings when clearing dirty buffersfs/nilfs2/inode.c fs/nilfs2/mdt.c fs/nilfs2/page.c +1 more+10 -241 reply
2/3nilfs2: do not force clear folio if buffer is referencedfs/nilfs2/page.c+29 -60 replies
3/3nilfs2: protect access to buffers with no active referencesfs/nilfs2/segment.c+3 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

Patch[email protected]
1/3
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 6.1 0/3] nilfs2: protect busy buffer heads from being force-cleared

Please apply this series to the 6.1-stable tree.

This series makes it possible to backport the latter two patches (fixing some syzbot issues and a use-after-free issue) that could not be backported to 6.1.y.

To achieve this, one dependent patch (patch 1/3) is included, and each patch is tailored to avoid extensive page/folio conversion. Both adjustments are specific to nilfs2 and do not include tree-wide changes.

It has also been tested against the latest 6.1.y.

Thanks,
Ryusuke Konishi

Ryusuke Konishi (3):
nilfs2: do not output warnings when clearing dirty buffers
nilfs2: do not force clear folio if buffer is referenced
nilfs2: protect access to buffers with no active references

 fs/nilfs2/inode.c   |  4 ++--
 fs/nilfs2/mdt.c     |  6 ++---
 fs/nilfs2/page.c    | 55 ++++++++++++++++++++++++++-------------------
 fs/nilfs2/page.h    |  4 ++--
 fs/nilfs2/segment.c |  4 +++-
 5 files changed, 42 insertions(+), 31 deletions(-)
Signature · 1 line
2.43.5