[PATCH 1/1] drivers: of: bugfix partition fixups

Sascha Hauer s.hauer at pengutronix.de
Sun Jun 10 23:41:39 PDT 2018


On Fri, Jun 08, 2018 at 09:31:24AM +0200, Pascal Vizeli wrote:
> 2018-06-08 9:05 GMT+02:00 Sascha Hauer <s.hauer at pengutronix.de>:
> > of_find_property is not called directly from the code you are changing,
> > so how excatly is the code path that fails?
> 
> of_get_reproducible_name -> of_get_property -> of_find_property
> 
> >
> > What are you doing to get into this situation? This test should never
> > fail or else we are in trouble. Is there some "oftree -f" command
> > involved? I should really remove this command since in a device tree
> > based system there are always references to device nodes which are not
> > expected to become invalid.
> >
> 
> Yes, I load the device tree from first bootloader and overlay some state dtbo.
> But how I should do this without flush? I can do that also an a file
> and load this
> to bootm, but the fixups will also run on this and fails too.
> 
> I think we need remove `oftree -f` or apply this patch for hardening.

Just sent a patch for the former as the latter is a goal we do not seem
to reach.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list