Skip to content

btrfs: anon_dev related fixes

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix anon_dev leak when snapshot creation races with a root readfs/btrfs/disk-io.c fs/btrfs/ioctl.c+8 -70 replies
2/2btrfs: fix double free of anon_dev in btrfs_get_root_ref() on -EEXISTfs/btrfs/disk-io.c+6 -00 replies

Reviews trailers per patch

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

PatchFilipe Manana
SeriesR-b
1/2
2/2

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: anon_dev related fixes

The first one is a Sashiko bug report, that we have a very narrow window to hit an anon_dev ID leak.

The second one is another small bug related to double freeing the same anon_dev ID, exposed by LLM.

Qu Wenruo (2):
btrfs: fix anon_dev leak when snapshot creation races with a root read
btrfs: fix double free of anon_dev in btrfs_get_root_ref() on -EEXIST

 fs/btrfs/disk-io.c | 13 +++++++++++++
 fs/btrfs/ioctl.c   |  8 +-------
 2 files changed, 14 insertions(+), 7 deletions(-)
Signature · 1 line
2.56.0