Skip to content

btrfs-progs: Several more static analysis defect fixes

Eric Sandeen linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16btrfs-progs: fix potential double-frees in cmd_subvol_delete()cmds-subvolume.c+2 -00 replies
2/16btrfs-progs: fix error returns in get_df()cmds-filesystem.c+4 -31 reply
3/16btrfs-progs: use strncpy in btrfs_scan_lblkid()utils.c+1 -11 reply
4/16btrfs-progs: fix test for return of realpath in find_mount_root()cmds-send.c+1 -11 reply
5/16btrfs-progs: don't leak fd in test_dev_for_mkfs() error pathsutils.c+2 -01 reply
6/16btrfs-progs: fix leak of "buf" in make_btrfs() error pathsutils.c+32 -300 replies
7/16btrfs-progs: don't leak buffer on add_file_items() errormkfs.c+1 -00 replies
8/16btrfs-progs: fix resource leak in scrub_start()cmds-scrub.c+2 -14 replies
9/16btrfs-progs: btrfs_scan_kernel(): fd==0 is not an errorcmds-filesystem.c+2 -21 reply
10/16btrfs-progs: Check for open failure in btrfs_scan_lblkid()utils.c+5 -10 replies
11/16btrfs-progs: pass positive errno to strerror in cmd_df()cmds-filesystem.c+1 -11 reply
12/16btrfs-progs: remove more dead code from check_extent_refscmds-check.c+0 -30 replies
13/16btrfs-progs: check btrfs_scan_one_device in btrfs_scan_lblkid()utils.c+8 -11 reply
14/16btrfs-progs: check for fstat failure in cmd_defragcmds-filesystem.c+7 -10 replies
15/16btrfs-progs: annotate fallthroughs in parse_sizeutils.c+6 -00 replies
16/16btrfs-progs: annotate fallthroughs in parse_limitcmds-qgroup.c+3 -00 replies

Reviews trailers per patch

5 of 16 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/16
2/16R-b
3/16
4/16R-b
5/16R-b
6/16
7/16
8/16
9/16R-b
10/16
11/16
12/16
13/16R-b
14/16
15/16
16/16

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 00/16] btrfs-progs: Several more static analysis defect fixes

These all apply to the integration branch in Chris's current git tree. (Which saw the defects rise by from 55 to 65 in the last l6 commits :()

This beats back the defect count again. Compile tested only, FWIW.

Thanks,
-Eric