Skip to content

btrfs-progs: bug fixes exposed during delayed chunk items insertion

Qu Wenruo linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Update the first patch to delaye memory allocation after all other checks

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: fix a memory leak when starting a transaction on fs with errorkernel-shared/transaction.c+7 -61 reply
2/2btrfs-progs: fix an error path which can lead to empty device listkernel-shared/volumes.c+15 -01 reply

Reviews trailers per patch

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

PatchJosef BacikJohannes Thumshirn
1/2R-b
2/2R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] btrfs-progs: bug fixes exposed during delayed chunk items insertion

[CHANGELOG]
v2:
- Update the first patch to delaye memory allocation after all other checks

There are two bugs in the existing code base of btrfs-progs:

- Memory leak due to wrong error handling in btrfs_start_transaction()

- Empty rw device list due to missing error handling in create_chunk()

Just fix them.

Qu Wenruo (2):
btrfs-progs: fix a memory leak when starting a transaction on fs with
error
btrfs-progs: fix an error path which can lead to empty device list

 kernel-shared/transaction.c | 13 +++++++------
 kernel-shared/volumes.c     | 15 +++++++++++++++
 2 files changed, 22 insertions(+), 6 deletions(-)
Signature · 1 line
2.35.1