qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.12] hmp: free sev info


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH for-2.12] hmp: free sev info
Date: Mon, 19 Mar 2018 13:39:30 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/19/2018 12:58 PM, Marc-André Lureau wrote:
Found thanks to ASAN:

Direct leak of 16 byte(s) in 1 object(s) allocated from:
     #0 0x7efe20417a38 in __interceptor_calloc (/lib64/libasan.so.4+0xdea38)
     #1 0x7efe1f7b2f75 in g_malloc0 ../glib/gmem.c:124
     #2 0x7efe1f7b3249 in g_malloc0_n ../glib/gmem.c:355
     #3 0x558272879162 in sev_get_info 
/home/elmarco/src/qemu/target/i386/sev.c:414
     #4 0x55827285113b in hmp_info_sev 
/home/elmarco/src/qemu/target/i386/monitor.c:684
     #5 0x5582724043b8 in handle_hmp_command 
/home/elmarco/src/qemu/monitor.c:3333

Signed-off-by: Marc-André Lureau <address@hidden>
---
  target/i386/monitor.c | 2 ++
  1 file changed, 2 insertions(+)

Reviewed-by: Eric Blake <address@hidden>

Worth mentioning in the commit message that this was introduced in commit 63036314.

And safe for freeze, as it's fixing a memory usage bug in material new to the 2.12 release.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]