linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PULL] [PATCH 0/5] Btrfs: leak in btrfs_find_item and cleanups
@ 2015-01-14 18:36 David Sterba
  2015-01-14 18:36 ` [PATCH 1/5] btrfs: fix leak of path in btrfs_find_item David Sterba
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: David Sterba @ 2015-01-14 18:36 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Coverity for btrfs-progs spotted a variable leak in btrfs_find_item though the
same error is not reported in the kernel project and the code is the same.  The
leak is very rare though and does not need to go to stable immediatelly. The
rest of patches are cleanups in the related codepaths.

You can also pull the changes from
  git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git fix/find-item-path-leak

Top commit: 1d4c08e0a60be3561
Base: 3.19-rc4

David Sterba (5):
  btrfs: fix leak of path in btrfs_find_item
  btrfs: cleanup, remove inode_item_info helper
  btrfs: cleanup, remove inode_ref_info helper
  btrfs: simplify insert_orphan_item
  btrfs: expand btrfs_find_item if found_key is NULL

 fs/btrfs/backref.c  | 28 ++++++----------------------
 fs/btrfs/backref.h  |  3 ---
 fs/btrfs/ctree.c    | 18 +++++-------------
 fs/btrfs/disk-io.c  | 15 +++++++++++++--
 fs/btrfs/inode.c    | 10 +++++++---
 fs/btrfs/scrub.c    | 10 +++++++++-
 fs/btrfs/tree-log.c | 11 ++++++-----
 7 files changed, 46 insertions(+), 49 deletions(-)

-- 
1.8.4.5


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

end of thread, other threads:[~2015-01-14 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 18:36 [PULL] [PATCH 0/5] Btrfs: leak in btrfs_find_item and cleanups David Sterba
2015-01-14 18:36 ` [PATCH 1/5] btrfs: fix leak of path in btrfs_find_item David Sterba
2015-01-14 18:36 ` [PATCH 2/5] btrfs: cleanup, remove inode_item_info helper David Sterba
2015-01-14 18:36 ` [PATCH 3/5] btrfs: cleanup, remove inode_ref_info helper David Sterba
2015-01-14 18:36 ` [PATCH 4/5] btrfs: simplify insert_orphan_item David Sterba
2015-01-14 18:36 ` [PATCH 5/5] btrfs: expand btrfs_find_item if found_key is NULL David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).