public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] xfsprogs random fixes found by Coverity scan
@ 2024-04-17 16:16 Andrey Albershteyn
  2024-04-17 16:16 ` [PATCH v4 1/4] xfs_db: fix leak in flist_find_ftyp() Andrey Albershteyn
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrey Albershteyn @ 2024-04-17 16:16 UTC (permalink / raw)
  To: cem, linux-xfs; +Cc: djwong, hch, Andrey Albershteyn

Hi all,

This is bunch of random fixes found by Coverity scan, there's memory
leak, truncation of time_t to int, access overflow, and freeing of
uninitialized struct.

v4:
- remove parentheses and conversion in another expression; add
  spaces for operators
v3:
- better error message
v2:
- remove parentheses
- drop count initialization patch as this code goes away with parent
  pointers
- rename unload: label
- howlong limit

--
Andrey

Andrey Albershteyn (4):
  xfs_db: fix leak in flist_find_ftyp()
  xfs_repair: make duration take time_t
  xfs_scrub: don't call phase_end if phase_rusage was not initialized
  xfs_fsr: convert fsrallfs to use time_t instead of int

 db/flist.c          |  4 +++-
 fsr/xfs_fsr.c       | 10 ++++++++--
 repair/globals.c    |  2 +-
 repair/globals.h    |  2 +-
 repair/progress.c   |  7 ++++---
 repair/progress.h   |  2 +-
 repair/xfs_repair.c |  2 +-
 scrub/xfs_scrub.c   |  3 ++-
 8 files changed, 21 insertions(+), 11 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-23 12:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-17 16:16 [PATCH v4 0/4] xfsprogs random fixes found by Coverity scan Andrey Albershteyn
2024-04-17 16:16 ` [PATCH v4 1/4] xfs_db: fix leak in flist_find_ftyp() Andrey Albershteyn
2024-04-17 16:16 ` [PATCH v4 2/4] xfs_repair: make duration take time_t Andrey Albershteyn
2024-04-18  4:26   ` Christoph Hellwig
2024-04-23 12:06   ` Carlos Maiolino
2024-04-17 16:16 ` [PATCH v4 3/4] xfs_scrub: don't call phase_end if phase_rusage was not initialized Andrey Albershteyn
2024-04-18  4:26   ` Christoph Hellwig
2024-04-17 16:16 ` [PATCH v4 4/4] xfs_fsr: convert fsrallfs to use time_t instead of int Andrey Albershteyn
2024-04-18  4:27   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox