Skip to content

btrfs: fix exploits that allow malicious users to turn fs into RO mode

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: fix transaction abort on file creation due to name hash collisionfs/btrfs/inode.c+19 -03 replies
2/5btrfs: fix transaction abort when snapshotting received subvolumesfs/btrfs/transaction.c+16 -02 replies
3/5btrfs: stop checking for -EEXIST return value from btrfs_uuid_tree_add()fs/btrfs/ioctl.c fs/btrfs/transaction.c+2 -20 replies
4/5btrfs: remove duplicated uuid tree existence check in btrfs_uuid_tree_add()fs/btrfs/uuid-tree.c+1 -40 replies
5/5btrfs: remove pointless error check in btrfs_check_dir_item_collision()fs/btrfs/dir-item.c+1 -30 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBoris BurkovQu Wenruo
SeriesR-b R-b
1/5R-b
2/5
3/5
4/5
5/5

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/5] btrfs: fix exploits that allow malicious users to turn fs into RO mode

From: Filipe Manana <[email protected]>

We have a couple scenarios that regular users can exploit to trigger a transaction abort and turn a filesystem into RO mode, causing some disruption. The first 2 patches fix these, the remainder are just a few trivial and cleanups.

Filipe Manana (5):
btrfs: fix transaction abort on file creation due to name hash collision
btrfs: fix transaction abort when snapshotting received subvolumes
btrfs: stop checking for -EEXIST return value from btrfs_uuid_tree_add()
btrfs: remove duplicated uuid tree existence check in btrfs_uuid_tree_add()
btrfs: remove pointless error check in btrfs_check_dir_item_collision()

 fs/btrfs/dir-item.c    |  4 +---
 fs/btrfs/inode.c       | 19 +++++++++++++++++++
 fs/btrfs/ioctl.c       |  2 +-
 fs/btrfs/transaction.c | 18 +++++++++++++++++-
 fs/btrfs/uuid-tree.c   |  5 +----
 5 files changed, 39 insertions(+), 9 deletions(-)
Signature · 1 line
2.47.2