qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3]hw: Fixs memleak of fdevice tree blob
@ 2020-02-18  9:11 kuhn.chenqun
  2020-02-18  9:11 ` [PATCH 1/3] hw/nios2:fix leak " kuhn.chenqun
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: kuhn.chenqun @ 2020-02-18  9:11 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc, jcmvbkbc, crwulff, marex, edgar.iglesias, david
  Cc: qemu-trivial, pbonzini, pannengyuan, zhang.zhanghailiang, Chen Qun

From: Chen Qun <kuhn.chenqun@huawei.com>

The device tree blob returned by load_device_tree is malloced.
We should free it after cpu_physical_memory_write().Otherwise,
if we repeatedly call 'system_reset',it will repeatedly load fdt,
so there are many memleaks.

Paolo Bonzini :
https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg00129.html

Pan Nengyuan:
https://lists.gnu.org/archive/html/qemu-devel/2020-02/msg03594.html

After searching the device code, I found three similar issues.
This series fixes the last three.

Chen Qun (3):
  hw/nios2:fix leak of fdevice tree blob
  hw/ppc/virtex_ml507:fix leak of fdevice tree blob
  hw/xtensa/xtfpga:fix leak of fdevice tree blob

 hw/nios2/boot.c       | 1 +
 hw/ppc/virtex_ml507.c | 1 +
 hw/xtensa/xtfpga.c    | 1 +
 3 files changed, 3 insertions(+)

-- 
2.23.0




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

end of thread, other threads:[~2020-02-19  9:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18  9:11 [PATCH 0/3]hw: Fixs memleak of fdevice tree blob kuhn.chenqun
2020-02-18  9:11 ` [PATCH 1/3] hw/nios2:fix leak " kuhn.chenqun
2020-02-19  9:33   ` Laurent Vivier
2020-02-18  9:11 ` [PATCH 2/3] hw/ppc/virtex_ml507:fix " kuhn.chenqun
2020-02-18 23:03   ` David Gibson
2020-02-18  9:11 ` [PATCH 3/3] hw/xtensa/xtfpga:fix " kuhn.chenqun
2020-02-18 16:35   ` Max Filippov
2020-02-19  9:30   ` Laurent Vivier
2020-02-18  9:46 ` [PATCH 0/3]hw: Fixs memleak " Chenqun (kuhn)

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).