Skip to content

Btrfs: mount error handling fixes

Ilya Dryomov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Btrfs: fix memory leak in btrfs_parse_early_options()fs/btrfs/super.c+1 -00 replies
2/5Btrfs: fix subvol_name leak on error in btrfs_mount()fs/btrfs/super.c+3 -10 replies
3/5Btrfs: avoid null dereference and leaks when bailing from open_ctree()fs/btrfs/disk-io.c+15 -200 replies
4/5Btrfs: close devices on all error paths in open_ctree()fs/btrfs/disk-io.c+3 -40 replies
5/5Btrfs: rework error handling in btrfs_mount()fs/btrfs/super.c+21 -210 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/5] Btrfs: mount error handling fixes

A bunch of fixes (memory leaks, NULL pointer dereferences and devices hanging in busy state) to sanitize error handling during mount sequence. This is on top of for-linus + slyfox's double-free fix.

Thanks,

Ilya

Ilya Dryomov (5):
Btrfs: fix memory leak in btrfs_parse_early_options()
Btrfs: fix subvol_name leak on error in btrfs_mount()
Btrfs: avoid null dereference and leaks when bailing from
open_ctree()
Btrfs: close devices on all error paths in open_ctree()
Btrfs: rework error handling in btrfs_mount()

 fs/btrfs/disk-io.c |   42 ++++++++++++++++++------------------------
 fs/btrfs/super.c   |   47 +++++++++++++++++++++++++----------------------
 2 files changed, 43 insertions(+), 46 deletions(-)
Signature · 1 line
1.7.6.3