From: Jan Kiszka Subject: Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT Date: Wed, 25 Apr 2018 22:09:38 +0200 Message-ID: References: <1520122673-11003-1-git-send-email-frowand.list@gmail.com> <1520122673-11003-3-git-send-email-frowand.list@gmail.com> <09e3db63-cbf9-52a2-ee77-520979f17fea@web.de> <7bbf615b-3cdd-6bb4-6918-33e48de4225d@gmail.com> <7bbb9472-9c96-6012-68e6-4ec2773c7732@gmail.com> <4422f58a-ca7c-16e6-e0df-63faea50f553@web.de> <3d7cb4d3-5070-e878-51d3-59f9772f756b@gmail.com> <53ee2d0b-1867-5cad-667c-7f70085c645d@web.de> <3050f0c1-549e-d4b9-50b5-468c11effea9@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: jailhouse-dev@googlegroups.com In-Reply-To: Content-Language: en-US List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Geert Uytterhoeven Cc: Frank Rowand , Rob Herring , Alan Tull , Pantelis Antoniou , Pantelis Antoniou , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Laurent Pinchart , Jailhouse List-Id: devicetree@vger.kernel.org On 2018-04-25 21:53, Geert Uytterhoeven wrote: > Hi Jan, > > On Wed, Apr 25, 2018 at 9:40 PM, Jan Kiszka wrote: >> What other pointers are we talking about? > > There's also the issue that some data has been allocated using kmalloc(), > while others hasn't. The "other" pointers point to e.g. early bootmem or > memblock. Should not be an issue for overlays or of_changesets, should it? Yes, I've learned the hard way that it is a very bad idea to build changesets with properties that were not dynamically allocated. Maybe that is documented somewhere, how the ownership of those objects change after apply and how they may get handled later on. But now as I know, it's kind of consistent and rather easy to account for. Jan