[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191125151747.hqm55drde5ldkrte@axis.com>
Date: Mon, 25 Nov 2019 16:17:47 +0100
From: Vincent Whitchurch <vincent.whitchurch@...s.com>
To: Frank Rowand <frowand.list@...il.com>
Cc: Rob Herring <robh+dt@...nel.org>,
"pantelis.antoniou@...sulko.com" <pantelis.antoniou@...sulko.com>,
Pantelis Antoniou <panto@...oniou-consulting.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"geert@...ux-m68k.org" <geert@...ux-m68k.org>,
Alan Tull <atull@...nel.org>
Subject: Re: [PATCH] of: overlay: add_changeset_property() memory leak
On Thu, Nov 21, 2019 at 08:20:21PM +0100, Frank Rowand wrote:
> On 11/21/19 1:16 PM, frowand.list@...il.com wrote:
> > From: Frank Rowand <frank.rowand@...y.com>
> >
> > No changeset entries are created for #address-cells and #size-cells
> > properties, but the duplicated properties are never freed. This
> > results in a memory leak which is detected by kmemleak:
> >
> > unreferenced object 0x85887180 (size 64):
> > backtrace:
> > kmem_cache_alloc_trace+0x1fb/0x1fc
> > __of_prop_dup+0x25/0x7c
> > add_changeset_property+0x17f/0x370
> > build_changeset_next_level+0x29/0x20c
> > of_overlay_fdt_apply+0x32b/0x6b4
> > ...
> >
> > Fixes: 6f75118800acf77f8 ("of: overlay: validate overlay properties #address-cells and #size-cells")
> > Reported-by: Vincent Whitchurch <vincent.whitchurch@...s.com>
> > Signed-off-by: Frank Rowand <frank.rowand@...y.com>
>
> Can you please check whether this patch fixes the memleak that you
> found and fixed in "[PATCH 1/2] of: overlay: fix properties memory leak"?
Tested-by: Vincent Whitchurch <vincent.whitchurch@...s.com>
Thanks.
Powered by blists - more mailing lists