RE: [PATCH] xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS

2020-01-13 Thread Chenqun (kuhn)
>-Original Message- >From: Gerd Hoffmann [mailto:kra...@redhat.com] >Sent: Monday, January 13, 2020 3:48 PM >To: Philippe Mathieu-Daudé >Cc: Chenqun (kuhn) ; qemu- >de...@nongnu.org; qemu-triv...@nongnu.org; Pannengyuan >; Zhanghailiang > >Subject: Re: [PATC

Re: [PATCH] xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS

2020-01-12 Thread Gerd Hoffmann
> > diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c > > index 80988bb305..0d3d96d05a 100644 > > --- a/hw/usb/hcd-xhci.c > > +++ b/hw/usb/hcd-xhci.c > > @@ -2000,6 +2000,7 @@ static void xhci_kick_epctx(XHCIEPContext *epctx, > > unsigned int streamid) > > if (xfer != NULL && xfer->runn

RE: [PATCH] xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS

2020-01-10 Thread Chenqun (kuhn)
>-Original Message- >From: Philippe Mathieu-Daudé [mailto:phi...@redhat.com] >Sent: Friday, January 10, 2020 9:14 PM >To: Chenqun (kuhn) ; qemu- >de...@nongnu.org; kra...@redhat.com >Cc: qemu-triv...@nongnu.org; Pannengyuan ; >Zhanghailiang >Subject: Re: [PATCH]

Re: [PATCH] xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS

2020-01-10 Thread Philippe Mathieu-Daudé
On 1/10/20 11:58 AM, kuhn.chen...@huawei.com wrote: From: Chen Qun start vm with libvirt, when GuestOS running, enter poweroff command using the xhci keyboard, then ASAN shows memory leak stack: Direct leak of 80 byte(s) in 5 object(s) allocated from: #0 0xfffd1e6431cb in __interceptor_ma

[PATCH] xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS

2020-01-10 Thread kuhn.chenqun
From: Chen Qun start vm with libvirt, when GuestOS running, enter poweroff command using the xhci keyboard, then ASAN shows memory leak stack: Direct leak of 80 byte(s) in 5 object(s) allocated from: #0 0xfffd1e6431cb in __interceptor_malloc (/lib64/libasan.so.4+0xd31cb) #1 0xfffd1e10716