[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZFkzlQCoUYDimcMI@liuwe-devbox-debian-v2>
Date: Mon, 8 May 2023 17:38:29 +0000
From: Wei Liu <wei.liu@...nel.org>
To: Dexuan Cui <decui@...rosoft.com>
Cc: "Michael Kelley (LINUX)" <mikelley@...rosoft.com>,
KY Srinivasan <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
"wei.liu@...nel.org" <wei.liu@...nel.org>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"stable@...nel.org" <stable@...nel.org>
Subject: Re: [PATCH] Drivers: hv: vmbus: Call hv_synic_free() if
hv_synic_alloc() fails
On Sat, May 06, 2023 at 02:38:04AM +0000, Dexuan Cui wrote:
> > From: Michael Kelley (LINUX) <mikelley@...rosoft.com>
> > Sent: Friday, May 5, 2023 5:30 PM
> > ...
> > From: Dexuan Cui <decui@...rosoft.com> Sent: Thursday, May 4, 2023 3:42
> > PM
> > >
> > > Commit 572086325ce9 ("Drivers: hv: vmbus: Cleanup synic memory free
> > > path")
> > > says "Any memory allocations that succeeded will be freed when the caller
> > > cleans up by calling hv_synic_free()", but if the get_zeroed_page() in
> > > hv_synic_alloc() fails, currently hv_synic_free() is not really called
> > > in vmbus_bus_init(), consequently there will be a memory lead, e.g.
> >
> > s/lead/leak/
>
> Sorry for the typo. Wei, can you please help fix this?
>
> > > hv_context.hv_numa_map is not freed in the error path. Fix this by
> > > updating the goto lables.
> >
> > s/lables/labels/
> Ditto.
>
> > The statement in commit 572086325ce9 was true at the time of that
> > commit. But I broke things in commit 4df4cb9e99f8. Should add a
> > "Fixes:" tag for 4df4cb9e99f8.
>
> I suppose Wei can help add the line:
> Fixes: 4df4cb9e99f8 ("x86/hyperv: Initialize clockevents earlier in CPU onlining")
>
> > Nits notwithstanding,
> >
> > Reviewed-by: Michael Kelley <mikelley@...rosoft.com>
Applied to hyperv-fixes. Thanks.
Powered by blists - more mailing lists