Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1252751 > unrolled thread

Re: [v2] powerpc/prom: Avoid reference to potentially freed memory

Started byMichael Ellerman <mpe@ellerman.id.au>
First post2015-10-21 13:50 +0200
Last post2015-10-21 13:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [v2] powerpc/prom: Avoid reference to potentially freed memory Michael Ellerman <mpe@ellerman.id.au> - 2015-10-21 13:50 +0200

#1252751 — Re: [v2] powerpc/prom: Avoid reference to potentially freed memory

FromMichael Ellerman <mpe@ellerman.id.au>
Date2015-10-21 13:50 +0200
SubjectRe: [v2] powerpc/prom: Avoid reference to potentially freed memory
Message-ID<qm043-1Rq-29@gated-at.bofh.it>
On Fri, 2015-16-10 at 21:38:45 UTC, Christophe Jaillet wrote:
> 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.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/1856f50c66dff0afb4a6a3e2

cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web