All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5 v2 resend] mdadm: fix memory leak and double free
@ 2022-08-02  2:14 Wu Guanghao
  2022-08-02  2:15 ` [PATCH 1/5 v2] parse_layout_faulty: fix memleak Wu Guanghao
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Wu Guanghao @ 2022-08-02  2:14 UTC (permalink / raw)
  To: Jes Sorensen, linux-raid, Mariusz Tkaczyk; +Cc: linfeilong, lixiaokeng

Through tool scanning and code review, we found several memory leaks and double free.

v2:
- add empty lines to separate declarations and not related code
sections. [1/5]
- free super->buf and set NULL in load_imsm_mpb [3/5]
- optimize code to avoid code duplication. [4/5]


Wu Guanghao (5):
  parse_layout_faulty: fix memleak
  Detail: fix memleak
  load_imsm_mpb: fix double free
  find_disk_attached_hba: fix memleak
  get_vd_num_of_subarray: fix memleak

 Detail.c      | 1 +
 super-ddf.c   | 9 +++++++--
 super-intel.c | 5 +++--
 util.c        | 3 +++
 4 files changed, 14 insertions(+), 4 deletions(-)

--
2.27.0

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/5 v2] mdadm: fix memory leak and double free
@ 2022-06-09  3:05 Wu Guanghao
  2022-06-09  3:06 ` [PATCH 2/5 v2] Detail: fix memleak Wu Guanghao
  0 siblings, 1 reply; 14+ messages in thread
From: Wu Guanghao @ 2022-06-09  3:05 UTC (permalink / raw)
  To: jes, linux-raid, Mariusz Tkaczyk, Paul Menzel; +Cc: linfeilong, lixiaokeng

Through tool scanning and code review, we found several memory leaks and double free.

v2:
- add empty lines to separate declarations and not related code
sections. [1/5]
- free super->buf and set NULL in load_imsm_mpb [3/5]
- optimize code to avoid code duplication. [4/5]

Wu Guanghao (5):
  parse_layout_faulty: fix memleak
  Detail: fix memleak
  load_imsm_mpb: fix double free
  find_disk_attached_hba: fix memleak
  get_vd_num_of_subarray: fix memleak

 Detail.c      | 1 +
 super-ddf.c   | 9 +++++++--
 super-intel.c | 5 +++--
 util.c        | 3 +++
 4 files changed, 14 insertions(+), 4 deletions(-)

--
2.27.0

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

end of thread, other threads:[~2022-09-14 14:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02  2:14 [PATCH 0/5 v2 resend] mdadm: fix memory leak and double free Wu Guanghao
2022-08-02  2:15 ` [PATCH 1/5 v2] parse_layout_faulty: fix memleak Wu Guanghao
2022-09-03  8:26   ` Coly Li
2022-08-02  2:15 ` [PATCH 2/5 v2] Detail: " Wu Guanghao
2022-09-03  8:26   ` Coly Li
2022-08-02  2:16 ` [PATCH 3/5 v2] load_imsm_mpb: fix double free Wu Guanghao
2022-09-03  8:38   ` Coly Li
2022-08-02  2:16 ` [PATCH 4/5 v2] find_disk_attached_hba: fix memleak Wu Guanghao
2022-09-03  8:37   ` Coly Li
2022-08-02  2:17 ` [PATCH 5/5 v2] get_vd_num_of_subarray: " Wu Guanghao
2022-09-03  8:25   ` Coly Li
2022-09-14 14:56     ` Coly Li
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09  3:05 [PATCH 0/5 v2] mdadm: fix memory leak and double free Wu Guanghao
2022-06-09  3:06 ` [PATCH 2/5 v2] Detail: fix memleak Wu Guanghao
2022-06-20 17:04   ` Coly Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.