From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.201 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796536303; b=CwDXJHu8TetW/bkIDvH0nodNPyuTlJl2anmW98v/gyFj3wYQfX0DkrmTXmxJz2TMUNaA qsJXMNQnAoVXcIFfn/OMWKq8U5PkI50NBp2EJo9QHR+oWfYbyt3ARYnx6Uo7/yQdtBetu gW18GIc4SyAX2bdAsReCztVzjng9QhJO/hIDEed4C1EmC3JaWkV876O817tlcpHASc4Ak c/ISsuklbH06rLHSpwCsGzBDhsdk41p16SdpLd66nPsHW/P5v/OE8Y4mwgnM5qImmLveQ HRVy4lkpjSXnoi3ByAHh77YkK8C5VQ92NSKm5x5d1/JOrAlMciQOpm7jTc8HB7m1scA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796536303; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State: MIME-Version:X-Received:Date:X-Google-Appengine-App-Id: X-Google-Appengine-App-Id-Alias:Message-ID:Subject:From:To: Content-Type; bh=XoEfokDcgaLBXDfRsLrtPzvJTUJ6GcaIZpOohzPpEwY=; b=ayPNWHn0J5GvVwBG+p04Y7VM2akZ1YWgld416bApelhmvx9JTs2stwTar9o2w5hGX8Np Zo1RuBdanFs9OAKRrRiu++sz+zLFMaxZxaKWjxPOnT25m0HMzUwvg/nEooyeYdKneon5W L3MR/TeLY5UMQx7ocG093aNNQo1Q5lF2GPNPSB0WSLA5EOMSq7psT8tVO1Luy2O8yTkqU KObrw7TDxXgoRYfsx7liCmNzgcgh8Ovottid2+zGbGOe8URt7A2EjZcwx/vbFQbYOJUn+ UxMuNJQRI0BwIpvaSXqj43Ms4Or6F+RunR1+0cbYcaSY4daE7FNkgTtH/QGue0zoThA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=74.125.231.201 Received: from mail-oi2-f9.google.com (mail-oi2-f9.google.com [74.125.231.201]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8666E606A31F for ; Sun, 6 Dec 2026 05:51:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8666E606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi2-f9.google.com with SMTP id 5614622812f47-4f61e12e8e0so307182b6e.0 for ; Sat, 05 Dec 2026 21:51:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796536301; x=1797141101; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XoEfokDcgaLBXDfRsLrtPzvJTUJ6GcaIZpOohzPpEwY=; b=HBmKYwuglaZJqwSFZdnUrRpgVFDYX9FGODkIUjkP+hRErbY94GHzTFDjHDQ/73u6Q3 44qmGuzP6NBN4six07UPVmDJMgfXb3v6VtW0kUoqOool6lc2phj25jCdBd1A4qMZw1Xz ypwBJhcdywvoi8LjwseWs4wEWDIkn6q03BW/ayfQNb3XtNiDM/i7QH4Jyf22NILYI/ZN k9UrnC9HmrUAfNo32vT4f723jd0VaxSRGO4X/p8yDY+5wXMTaIfmSUHIVSm9btIZ8Fxw 30V4vxURHw+fSbTAwldiJOicIUxDlFEH8nuqwx+oeXqwuo6MEDeHxePqrBwxN5BJM50w XsyQ== X-Gm-Message-State: APuU4Z9nZ2EM3AZtRraaN1ZANlnF+m24hmHVpqLeGCS+lRfGM+dR+V0y AVdAPivKWtjL2KTH7lh44l9tB+6g3MMEHG8bVEMaC49L3Kw60ldGVJkKrUKYFVRNztvTgQxOsO8 p2ZeSUvuzYGXvm4Jq4JbwUKtjX6fvzYaghOY+osTWN3qZ3/eY7oDYHWqzh4yQ/A== X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:6716:b0:53c:5052:ea07 with SMTP id 5614622812f47-57f20423689mr6097795b6e.5.1796536301503; Sat, 05 Dec 2026 21:51:41 -0800 (PST) Date: Sat, 05 Dec 2026 21:51:41 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b14f7ed.fe9f304b.d2479.00dc.GAE@google.com> Subject: [syzbot] [media?] general protection fault in dmx_section_feed_release_filter From: syzbot To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@redhat.com, obi@linuxtv.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" 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 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: 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 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