[PATCH 0/2] media: dvbdev: Prevent a dangling pointer in dvb_minors
From: Petr Pavlu
Date: Fri Feb 13 2026 - 08:46:51 EST
Prevent a dangling pointer in dvb_minors and simplify error paths in
dvb_register_device().
The main patch attempts to address a syzbot report in try_module_get() [1].
The report provides limited information so I'm not entirely sure if the
patch resolves the specific issue. Nonetheless, the bug fixed in
dvb_register_device() is valid and can be reproduced by manually injecting
errors into the function.
Note that I don't have any DVB device available. I tested the code only by
writing a dummy module that calls dvb_register_adapter() and
dvb_register_device(), and by injecting errors into the latter function.
[1] https://syzkaller.appspot.com/bug?extid=71d5d861d9adc6905054
Petr Pavlu (2):
media: dvbdev: Prevent a dangling pointer in dvb_minors
media: dvbdev: Simplify error paths in dvb_register_device()
drivers/media/dvb-core/dvbdev.c | 83 ++++++++++++++-------------------
1 file changed, 35 insertions(+), 48 deletions(-)
base-commit: cee73b1e840c154f64ace682cb477c1ae2e29cc4
--
2.52.0