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

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Feb 15 02:36:52 CET 2019


Hi Vicente

Thank you for your reporting

> 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) ?

If so, we need to fix is not simple-card, but of.h I think
like this patch

c0a480d1acf7dc184f9f3e7cf724483b0d28dc2e
("device property: Fix usecount for of_graph_get_port_parent()")

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list