Skip to content

btrfs: fix error paths of btrfs_orphan_cleanup()

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix double iput() on inode after an error during orphan cleanupfs/btrfs/inode.c+1 -01 reply
2/2btrfs: fix iput() on error pointer after error during orphan cleanupfs/btrfs/inode.c+10 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBoris Burkov
1/2R-b
2/2R-b

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 0/2] btrfs: fix error paths of btrfs_orphan_cleanup()

From: Filipe Manana <[email protected]>

These fix two issues with error paths of btrfs_orphan_cleanup(), a double iput() on an inode and an iput() against a ERR_PTR(-ENOENT) inode pointer, resulting in a crash. More details on the changelogs.

Filipe Manana (2):
btrfs: fix double iput() on inode after an error during orphan cleanup
btrfs: fix iput() on error pointer after error during orphan cleanup

 fs/btrfs/inode.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1