mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
dvb_dmxdev_add_pid() allocates a new dmxdev_feed, links it into filter->feed.ts and, when the filter is already running, immediately starts the feed. If starting the feed fails, the newly allocated feed remains on the list. Subsequent restart and rollback paths may then operate on this stale entry, leaving feed resources allocated and causing leaks in drivers that allocate resources from ->start_feed() and release them from ->stop_feed(). Remove the feed from the list and free it when dvb_dmxdev_start_feed() fails. Reported-by: syzbot+e9a1f5e196de6663631b@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=e9a1f5e196de6663631b Signed-off-by: Rituparna Warwatkar <rwarwatkar@gmail.com> Link: https://patch.msgid.link/20260714141059.63582-1-rwarwatkar@gmail.com Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Message-ID: <20260714141059.63582-1-rwarwatkar@gmail.com> |
||
|---|---|---|
| .. | ||
| dmxdev.c | ||
| dvb_ca_en50221.c | ||
| dvb_demux.c | ||
| dvb_frontend.c | ||
| dvb_net.c | ||
| dvb_ringbuffer.c | ||
| dvb_vb2.c | ||
| dvbdev.c | ||
| Kconfig | ||
| Makefile | ||