[alsa-devel] [regression] snd_soc_simple_card: refcount_t: underflow; use-after-free.

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Feb 15 07:40:58 CET 2019


Hi Vicente, again

> > of_node_put+0x24/0x30
> > __of_get_next_child+0x50/0x70
> > of_get_next_child+0x64/0x90
> > asoc_simple_card_probe+0xe4/0x6b0 [snd_soc_simple_card]
> > platform_drv_probe+0x58/0xa8
> 
> I can't reproduce this issue, but according to this back-trace,
> I *guess* of_get_child_count() at asoc_simple_card_parse_of()
> is the issue (= we need of_node_get(node) before it) ?

I could reproduce this issue.
Thank you for reporting.
I will post fixup patch soon.
Please check it.

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list