* [syzbot] [media?] general protection fault in dmx_section_feed_release_filter
@ 2026-12-06 5:51 syzbot
0 siblings, 0 replies; only message in thread
From: syzbot @ 2026-12-06 5:51 UTC (permalink / raw)
To: linux-kernel, linux-media, mchehab, mchehab, obi, syzkaller-bugs
Hello,
syzbot found the following issue on:
HEAD commit: 007722b8211f Merge tag 'net-7.4-rc6' of git://git.kernel.o..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=148c9fbd580000
kernel config: https://syzkaller.appspot.com/x/.config?x=d101084bd46d029c
dashboard link: https://syzkaller.appspot.com/bug?extid=504c8fb32a90d697fc6a
compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=128c9fbd580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/98fce4d0b21b/non_bootable_disk-007722b8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0a575c832bb3/vmlinux-007722b8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/31f4d8a73be5/bzImage-007722b8.xz
The issue was bisected by AI to:
commit 1cb662a3144992259edfd3cf9f54a6b25a913a0f
Author: Andreas Oberritter <obi@linuxtv.org>
Date: Tue Jul 14 23:28:50 2009 +0000
V4L/DVB (12275): Add two new ioctls: DMX_ADD_PID and DMX_REMOVE_PID
reasoning: https://syzkaller.appspot.com/ai_job?id=48f7f65f-cc0e-41a6-bfed-71167b888559
AI-generated root cause summary:
In dvb_dmxdev_start_feed() (drivers/media/dvb-core/dmxdev.c), when tsfeed->set()
or tsfeed->start_filtering() fails, release_ts_feed() is called without
resetting feed->ts to NULL, leaving a dangling pointer on the dmxdev_filter's
feed.ts list. A concurrent open demux handle can reallocate the freed
dvb_demux_feed and dvb_demux_filter slots as a section feed (DMX_TYPE_SEC),
after which dvb_dmxdev_remove_pid() (DMX_REMOVE_PID) uses the dangling feed->ts
pointer to stop and prematurely release that active section feed via
dvbdmx_release_ts_feed(). A third handle can then reallocate the same feed and
filter slots, causing two open handles to share ownership; closing them
sequentially unlinks the filter on the first close (leaving dvbdmxfeed->filter
== NULL while dvbdmxfilter->feed still points to dvbdmxfeed) and causes
dmx_section_feed_release_filter() (drivers/media/dvb-core/dvb_demux.c) to
dereference NULL->next at offset 0x70 on the second close.
full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=504c8fb32a90d697fc6a
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+504c8fb32a90d697fc6a@syzkaller.appspotmail.com
The bisection result may be wrong.
If you agree with it, please also add:
Fixes: 1cb662a31449 ("V4L/DVB (12275): Add two new ioctls: DMX_ADD_PID and DMX_REMOVE_PID")
dvb_demux: dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff)
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
CPU: 2 UID: 0 PID: 6300 Comm: syz.2.177 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:dmx_section_feed_release_filter+0x11a/0x2b0 drivers/media/dvb-core/dvb_demux.c:1044
Code: 11 00 00 49 bc 00 00 00 00 00 fc ff df 48 39 dd 75 08 e9 08 01 00 00 48 89 c3 e8 a1 65 c9 f9 48 8d 7b 70 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 3f 01 00 00 48 8b 43 70 48 39 e8 75 d9 e8 7d
RSP: 0018:ffffc9000e9c7bd0 EFLAGS: 00010002
RAX: 000000000000000e RBX: 0000000000000000 RCX: 0000000000000001
RDX: ffff88802804a580 RSI: ffffffff8845611f RDI: 0000000000000070
RBP: ffffc900060b1090 R08: 0000000000000001 R09: fffff52001d38f6c
R10: 0000000000000003 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88802f4044b0 R14: ffff88802f404428 R15: ffffc9000ccb2180
FS: 0000555581b9f500(0000) GS:ffff8880d4658000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f414e9932c0 CR3: 0000000053785000 CR4: 0000000000352ef0
Call Trace:
<TASK>
dvb_dmxdev_filter_stop+0x17e/0x390 drivers/media/dvb-core/dmxdev.c:565
dvb_dmxdev_filter_free drivers/media/dvb-core/dmxdev.c:856 [inline]
dvb_demux_release+0x92/0x560 drivers/media/dvb-core/dmxdev.c:1256
__fput+0x3fb/0xb50 fs/file_table.c:512
fput_close_sync+0x118/0x250 fs/file_table.c:618
filp_close_sync+0x75/0xa0 fs/open.c:1574
__range_close+0x4a6/0x8b0 fs/file.c:919
__do_sys_close_range fs/file.c:1003 [inline]
__se_sys_close_range fs/file.c:954 [inline]
__x64_sys_close_range+0x1f8/0x430 fs/file.c:954
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f73bb7a9c99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe83a0e5d8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: ffffffffffffffda RBX: 00007ffe83a0e6c8 RCX: 00007f73bb7a9c99
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000010462 R08: 0000000000000001 R09: 0000000000000000
R10: 0000001b31020000 R11: 0000000000000246 R12: 00007f73bba35fac
R13: 0000000000000000 R14: 00007f73bba35fa8 R15: 00007f73bba35fa0
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dmx_section_feed_release_filter+0x11a/0x2b0 drivers/media/dvb-core/dvb_demux.c:1044
Code: 11 00 00 49 bc 00 00 00 00 00 fc ff df 48 39 dd 75 08 e9 08 01 00 00 48 89 c3 e8 a1 65 c9 f9 48 8d 7b 70 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 3f 01 00 00 48 8b 43 70 48 39 e8 75 d9 e8 7d
RSP: 0018:ffffc9000e9c7bd0 EFLAGS: 00010002
RAX: 000000000000000e RBX: 0000000000000000 RCX: 0000000000000001
RDX: ffff88802804a580 RSI: ffffffff8845611f RDI: 0000000000000070
RBP: ffffc900060b1090 R08: 0000000000000001 R09: fffff52001d38f6c
R10: 0000000000000003 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88802f4044b0 R14: ffff88802f404428 R15: ffffc9000ccb2180
FS: 0000555581b9f500(0000) GS:ffff8880d4658000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f414e9932c0 CR3: 0000000053785000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
0: 11 00 adc %eax,(%rax)
2: 00 49 bc add %cl,-0x44(%rcx)
5: 00 00 add %al,(%rax)
7: 00 00 add %al,(%rax)
9: 00 fc add %bh,%ah
b: ff lcall (bad)
c: df 48 39 fisttps 0x39(%rax)
f: dd 75 08 fnsave 0x8(%rbp)
12: e9 08 01 00 00 jmp 0x11f
17: 48 89 c3 mov %rax,%rbx
1a: e8 a1 65 c9 f9 call 0xf9c965c0
1f: 48 8d 7b 70 lea 0x70(%rbx),%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 0f 85 3f 01 00 00 jne 0x174
35: 48 8b 43 70 mov 0x70(%rbx),%rax
39: 48 39 e8 cmp %rbp,%rax
3c: 75 d9 jne 0x17
3e: e8 .byte 0xe8
3f: 7d .byte 0x7d
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-06 5:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06 5:51 [syzbot] [media?] general protection fault in dmx_section_feed_release_filter syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox