narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
<poulecaca> like because irq is created with devm_request_threaded_irq() it will be freed after mmc_free_host().
<poulecaca> then handler could be called with a freed host pointer
ndufresne has quit [Ping timeout: 250 seconds]
Xogium has quit [Ping timeout: 252 seconds]
Xogium has joined #linux-amlogic
Xogium has quit [Client Quit]
Xogium_ has joined #linux-amlogic
Xogium_ is now known as Xogium
Xogium has quit [Remote host closed the connection]
Xogium has joined #linux-amlogic
Xogium has quit [Client Quit]
jakogut has quit [Quit: jakogut]
Xogium has joined #linux-amlogic
The_CooIest has quit [Quit: FOLD For The Cause!!!]
ndufresne has joined #linux-amlogic
afaerber has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
drieschel has joined #linux-amlogic
drieschel has quit [Client Quit]
chewitt has joined #linux-amlogic
pionen has joined #linux-amlogic
pionen has quit [Client Quit]
The_Coolest has joined #linux-amlogic
<poulecaca> adema_: I would try this patch https://pastebin.com/kA2LX35N. My two cents here is that because irq is managed allocated it is removed after meson_mmc_remove() has finished. And because irq is IRQF_SHARED the handler can be executed at free_irq() (if CONFIG_DEBUG_SHIRQ is enabled). So basically the meson_mmc_irq() will be called after mmc_free_host() hence dereferencing a freed host pointer
Darkmatter66_ has quit [Ping timeout: 250 seconds]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 258 seconds]
ldevulder has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
nsaenz has joined #linux-amlogic
maciejjo has quit [Quit: Lost terminal]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 268 seconds]
Darkmatter66 has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
maciejjo has joined #linux-amlogic
afaerber has joined #linux-amlogic
chewitt has quit [Ping timeout: 272 seconds]
<adema_> poulecaca, yeah your patch worked!
ldevulder has quit [Quit: Leaving]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 240 seconds]
jakogut has joined #linux-amlogic
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 250 seconds]
nsaenz has joined #linux-amlogic
nsaenz has quit [Excess Flood]
nsaenz has joined #linux-amlogic
Xogium has left #linux-amlogic ["leaving channel"]
drieschel has joined #linux-amlogic
nsaenz has quit [Ping timeout: 250 seconds]
afaerber has quit [Quit: Leaving]
AntonioND has joined #linux-amlogic
vagrantc has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 244 seconds]
Darkmatter66 has joined #linux-amlogic
nemunaire has joined #linux-amlogic
AntonioND has quit [Quit: Quit]
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-amlogic
Guest85632 has quit [Read error: Connection reset by peer]
jakogut has quit [Quit: jakogut]
drieschel has quit [Quit: drieschel]
jakogut has joined #linux-amlogic
sputnik_ has joined #linux-amlogic