Skip to content
  1. Oct 21, 2015
    • Christophe Jaillet's avatar
      powerpc/prom: Avoid reference to potentially freed memory · 1856f50c
      Christophe Jaillet authored
      
      
      of_get_property() is used inside the loop, but then the reference to the
      node is dropped before dereferencing the prop pointer, which could by then
      point to junk if the node has been freed.
      
      Instead use of_property_read_u32() to actually read the property
      value before dropping the reference.
      
      of_property_read_u32() requires at least one cell (u32) to be present,
      which is stricter than the old logic which would happily dereference a
      property of any size. However we believe all device trees in the wild
      have at least one cell.
      
      Skiboot may produce memory nodes with more than one cell, but that is
      OK, of_property_read_u32() will return the first one.
      
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      [mpe: Expand change log with device tree details]
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      1856f50c
  2. Oct 19, 2015
  3. Oct 15, 2015
  4. Oct 12, 2015
  5. Oct 09, 2015
  6. Oct 06, 2015
  7. Oct 05, 2015
  8. Oct 02, 2015
  9. Oct 01, 2015