• Mauro Carvalho Chehab's avatar
    Revert "media: dvb-core: Fix use-after-free on race condition at dvb_frontend" · ec21a38d
    Mauro Carvalho Chehab authored
    As reported by Thomas Voegtle <tv@lio96.de>, sometimes a DVB card does
    not initialize properly booting Linux 6.4-rc4. This is not always, maybe
    in 3 out of 4 attempts.
    
    After double-checking, the root cause seems to be related to the
    UAF fix, which is causing a race issue:
    
    [   26.332149] tda10071 7-0005: found a 'NXP TDA10071' in cold state, will try to load a firmware
    [   26.340779] tda10071 7-0005: downloading firmware from file 'dvb-fe-tda10071.fw'
    [  989.277402] INFO: task vdr:743 blocked for more than 491 seconds.
    [  989.283504]       Not tainted 6.4.0-rc5-i5 #249
    [  989.288036] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [  989.295860] task:vdr             state:D stack:0     pid:743   ppid:711    flags:0x00004002
    [  989.295865] Call Trace:
    [  989.295867]  <TASK>
    [  989.295869]  __schedule+0x2ea/0x12d0
    [  989.295877]  ? asm_sysvec_apic_timer_interrupt+0x16/0x20
    [  989.295881]  schedule+0x57/...
    ec21a38d
dvb_frontend.h 30.4 KB