Merge tag 'xfs-6.1-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull xfs fixes from Darrick Wong: "Dave and I had thought that this would be a very quiet cycle, but we thought wrong. At first there were the usual trickle of minor bugfixes, but then Zorro pulled -rc1 and noticed complaints about the stronger memcpy checks w.r.t. flex arrays. Analyzing how to fix that revealed a bunch of validation gaps in validating ondisk log items during recovery, and then a customer hit an infinite loop in the refcounting code on a corrupt filesystem. So. This largeish batch of fixes addresses all those problems, I hope. Summary: - Fix a UAF bug during log recovery - Fix memory leaks when mount fails - Detect corrupt bestfree information in a directory block - Fix incorrect return value type for the dax page fault handlers - Fix fortify complaints about memcpy of xfs log item objects - Strengthen inadequate validation of recovered log items - Fix incorrectly declared flex array in EFI log item structs - Log corrupt log items for debugging purposes - Fix infinite loop problems in the refcount code if the refcount btree node block keys are corrupt - Fix infinite loop problems in the refcount code if the refcount btree records suffer MSB bitflips - Add more sanity checking to continued defer ops to prevent overflows from one AG to the next or off EOFS" * tag 'xfs-6.1-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (28 commits) xfs: rename XFS_REFC_COW_START to _COWFLAG xfs: fix uninitialized list head in struct xfs_refcount_recovery xfs: fix agblocks check in the cow leftover recovery function xfs: check record domain when accessing refcount records xfs: remove XFS_FIND_RCEXT_SHARED and _COW xfs: refactor domain and refcount checking xfs: report refcount domain in tracepoints xfs: track cow/shared record domains explicitly in xfs_refcount_irec xfs: refactor refcount record usage in xchk_refcountbt_rec xfs: dump corrupt recovered log intent items to dmesg consistently xfs: move _irec structs to xfs_types.h xfs: actually abort log recovery on corrupt intent-done log items xfs: check deferred refcount op continuation parameters xfs: refactor all the EFI/EFD log item sizeof logic xfs: create a predicate to verify per-AG extents xfs: fix memcpy fortify errors in EFI log format copying xfs: make sure aglen never goes negative in xfs_refcount_adjust_extents xfs: fix memcpy fortify errors in RUI log format copying xfs: fix memcpy fortify errors in CUI log format copying xfs: fix memcpy fortify errors in BUI log format copying ...
No related branches found
No related tags found
Showing
- fs/xfs/libxfs/xfs_ag.h 15 additions, 0 deletionsfs/xfs/libxfs/xfs_ag.h
- fs/xfs/libxfs/xfs_alloc.c 1 addition, 5 deletionsfs/xfs/libxfs/xfs_alloc.c
- fs/xfs/libxfs/xfs_dir2_leaf.c 7 additions, 2 deletionsfs/xfs/libxfs/xfs_dir2_leaf.c
- fs/xfs/libxfs/xfs_format.h 1 addition, 21 deletionsfs/xfs/libxfs/xfs_format.h
- fs/xfs/libxfs/xfs_log_format.h 54 additions, 6 deletionsfs/xfs/libxfs/xfs_log_format.h
- fs/xfs/libxfs/xfs_refcount.c 199 additions, 87 deletionsfs/xfs/libxfs/xfs_refcount.c
- fs/xfs/libxfs/xfs_refcount.h 36 additions, 4 deletionsfs/xfs/libxfs/xfs_refcount.h
- fs/xfs/libxfs/xfs_refcount_btree.c 12 additions, 3 deletionsfs/xfs/libxfs/xfs_refcount_btree.c
- fs/xfs/libxfs/xfs_rmap.c 2 additions, 7 deletionsfs/xfs/libxfs/xfs_rmap.c
- fs/xfs/libxfs/xfs_trans_resv.c 2 additions, 2 deletionsfs/xfs/libxfs/xfs_trans_resv.c
- fs/xfs/libxfs/xfs_types.h 30 additions, 0 deletionsfs/xfs/libxfs/xfs_types.h
- fs/xfs/scrub/alloc.c 1 addition, 3 deletionsfs/xfs/scrub/alloc.c
- fs/xfs/scrub/ialloc.c 2 additions, 3 deletionsfs/xfs/scrub/ialloc.c
- fs/xfs/scrub/refcount.c 30 additions, 42 deletionsfs/xfs/scrub/refcount.c
- fs/xfs/xfs_attr_item.c 33 additions, 34 deletionsfs/xfs/xfs_attr_item.c
- fs/xfs/xfs_bmap_item.c 28 additions, 26 deletionsfs/xfs/xfs_bmap_item.c
- fs/xfs/xfs_error.c 7 additions, 2 deletionsfs/xfs/xfs_error.c
- fs/xfs/xfs_extfree_item.c 45 additions, 49 deletionsfs/xfs/xfs_extfree_item.c
- fs/xfs/xfs_extfree_item.h 16 additions, 0 deletionsfs/xfs/xfs_extfree_item.h
- fs/xfs/xfs_file.c 4 additions, 3 deletionsfs/xfs/xfs_file.c
Loading
Please register or sign in to comment