btrfs: add missing NULL checks when searching for roots
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 5 repliesIn review
- v13 patches 1 replySuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: remove bogus root search condition in load_extent_tree_free()fs/ | +1 | 0 replies | |
| 2/3 | btrfs: check for NULL root after calls to btrfs_extent_root()fs/ fs/ fs/ +5 more | +193 | 2 replies | |
| 3/3 | btrfs: check for NULL root after calls to btrfs_csum_root()fs/ fs/ fs/ +4 more | +84 | 2 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Boris Burkov |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] btrfs: add missing NULL checks when searching for roots
From: Filipe Manana <[email protected]>
Remove a wrong but harmless expression before loading an extent root and add missing error handling for some root search functions, which can return NULL when using the extent tree v2 feature. Some places have the NULL checks already, but many others completely ignore it. Chris recently reported this with his AI generated reviews.
V2: Fixed a return without mutex unlock in patch 2/3, updated patch 3/3
to log the logical bytenr of a delayed ref in case we can't find the csum root.
Filipe Manana (3):
btrfs: remove bogus root search condition in load_extent_tree_free()
btrfs: check for NULL root after calls to btrfs_extent_root()
btrfs: check for NULL root after calls to btrfs_csum_root()
fs/btrfs/backref.c | 28 +++++++++++ fs/btrfs/block-group.c | 39 ++++++++++++++- fs/btrfs/disk-io.c | 17 ++++++- fs/btrfs/extent-tree.c | 98 ++++++++++++++++++++++++++++++++++++-- fs/btrfs/file-item.c | 7 +++ fs/btrfs/free-space-tree.c | 9 +++- fs/btrfs/inode.c | 18 ++++++- fs/btrfs/qgroup.c | 8 ++++ fs/btrfs/raid56.c | 12 ++++- fs/btrfs/relocation.c | 30 +++++++++++- fs/btrfs/tree-log.c | 21 ++++++++ fs/btrfs/zoned.c | 7 +++ 12 files changed, 278 insertions(+), 16 deletions(-)
Signature · 1 line
2.47.2