From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.203 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512665; b=QjGwBSyYJCin3G1vxfo3auERTJEoQ0DYTCStQX3DJD4YEFF646tzDjaAzjn+m9v3DUBu vfUH+ZzbeooNxVb3G2HQXWCNX5RzVGJLq4dQFXzBUxZhgYtXe3EJseHuN5odMe1cgG/kJ P9htLpp9zVimdmDgkAZUR25Hd8iSmTcCKLDxFkWKCHidi1YvLWuqdVklZptIpd3DrWiZX v20M/KJlsLhqSKOyC3AjKPONEvhodOgnIrUWX1ZJ3gX6LIwdC7LbHQs0rxkAokSyvqrPS HEOIbOpvmDDiyw3nejbaBDjT6kmC0rqBMGfHq8yyp5dd+AmIOFVtW5K5yTd+WdkiI5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796512665; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: 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=dDEZsFx4vnxYdceTvECh/BERA1VHNHNBlN1CiUOb+9Y=; b=p/8ouB+wTLS8i5xLd4MhBmIZzSF1LRDUvMBOyCqD/HntCOCSZ/+mAi2uNxCfJg5+uwsA VOMvI/QiuSjLsKLFSpuOEglo27Hn3GBpaM3ceRjF0q98L7f0W2rGNuu2PcgO8XYWJ4dP9 q0GzqFrFbg/PAe+SnRoqNeol8XiShoSha8GiwFMs1HGkUuhlzekFTZqvcfSW0IQEukb6u OMTagWowYzIYBF6DJDyCXXze4c1sOXxYy78SttOTPHGA9UxRP73aFPZfzAxEApKI4Z9OF LBzEY1pdhGmpDZqih1EqtjKnUooXl11IFg32xIOwOQiNjmCR0Shcyyfa7QD9FALuNUg== 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.203 Received: from mail-oi2-f11.google.com (mail-oi2-f11.google.com [74.125.231.203]) (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 EEAA7606A31F for ; Sat, 5 Dec 2026 23:17:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EEAA7606A31F 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-f11.google.com with SMTP id 5614622812f47-5725b4210ffso808323b6e.1 for ; Sat, 05 Dec 2026 15:17:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796512664; x=1797117464; 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=dDEZsFx4vnxYdceTvECh/BERA1VHNHNBlN1CiUOb+9Y=; b=lJB8POndCCfXTILkUIIy168Baen4ZOUG5q98ysLN8j4ZRlCccuyuuvBdGVj2m7XTlo VhIxtt9DEmxRDrPTJY0mtb2YPZT7MzD6CtL3Q62GDUSwaTipoh0J4dFPwDNacXPsZpxf rH7gaqFQ5Pfyw0FD9ab7+L1/2PeeeJK6ZAwoPA5NliqTxqPth9O4vf61jV+/pSPzkFeb voJvqT7i8yD3Qgaz09x/dtvbk3n9o39Xcud8TYHtqfbXE5FeuM2uupIxYz5UhyMtudzI 1wnnffw1RsHJ3Hilj9GZLN9dJdqFt3Ou8aj+XMgcPBUcKjM9N03q6PgksUxuzQ8AyM9l fiWA== X-Forwarded-Encrypted: i=1; AL+hErFcDUpDzdAac0Zlt+Uaq3RcbP/dTJ6uI0qeR5m1LbyRX+8n1DlOxoaTQqenPBYQjgYHRjwNrx9Hqo+iwg==@vger.kernel.org X-Gm-Message-State: APuU4Z/p6LjLdyA33bppGEOlchgViGekcUqYYbKym2ABpQ+hvcBlgTed 5gKW3d+YeRMyO2F428/QF0akcNkL07QqVFU5kcR2QGkKFF/7NWb0VjnsQvP50zvaEp1lS0x1p+B nqfEK94r+17vRoGSzguNt87gCjd4RX40DWv00GeCfSnmkYSWmakuJDjxfymU= X-Mailing-List: linux-media@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:178a:b0:4d6:92b3:5c8b with SMTP id 5614622812f47-57f20891014mr6197533b6e.65.1796512663975; Sat, 05 Dec 2026 15:17:43 -0800 (PST) Date: Sat, 05 Dec 2026 15:17:43 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b149b97.5bcce40b.3b9993.0089.GAE@google.com> Subject: [syzbot] [media?] INFO: trying to register non-static key in dvb_frontend_release From: syzbot To: hverkuil+cisco@kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, max@duempel.org, mchehab@kernel.org, mchehab@s-opensource.com, ribalda@chromium.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=131bc553580000 kernel config: https://syzkaller.appspot.com/x/.config?x=fc1834b4a2e3ba54 dashboard link: https://syzkaller.appspot.com/bug?extid=4520e4f1dd0df92aeaa6 compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/1672743bbf86/disk-007722b8.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/be06cebda124/vmlinux-007722b8.xz kernel image: https://storage.googleapis.com/syzbot-assets/f36d4929339f/bzImage-007722b8.xz The issue was bisected by AI to: commit fe35637b0a9f8837a63ec4ffc52831de2af98fe4 Author: Max Kellermann Date: Mon Jul 4 12:08:51 2016 +0000 [media] dvb_frontend: eliminate blocking wait in dvb_unregister_frontend() reasoning: https://syzkaller.appspot.com/ai_job?id=7ef283f7-c074-4764-8734-d89eabe49d8b AI-generated root cause summary: A lifecycle mismatch in the DVB core causes a use-after-free of struct dvb_adapter (fe->dvb) in dvb_frontend_release(). When a DVB frontend device is opened, dvb_frontend_open() takes a reference on struct dvb_frontend (fe->refcount) and struct dvb_device, but struct dvb_adapter is not reference-counted, and dvb_unregister_frontend() and dvb_unregister_adapter() return immediately without waiting for open file descriptors to close. Upon device disconnect, the driver frees the device structure embedding struct dvb_adapter while userspace still holds the frontend fd open. When the fd is later closed in dvb_frontend_release(), accessing fe->dvb->mdev_lock hits the freed (and here reallocated/zeroed) adapter memory, causing KASAN to see live heap memory while lockdep detects an uninitialized non-static lock key. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=4520e4f1dd0df92aeaa6 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4520e4f1dd0df92aeaa6@syzkaller.appspotmail.com The bisection result may be wrong. If you agree with it, please also add: Fixes: fe35637b0a9f ("[media] dvb_frontend: eliminate blocking wait in dvb_unregister_frontend()") INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 0 UID: 0 PID: 11557 Comm: syz.4.1377 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 assign_lock_key+0x133/0x150 kernel/locking/lockdep.c:1028 register_lock_class+0xcc/0x2e0 kernel/locking/lockdep.c:1343 __lock_acquire+0x10c/0x2de0 kernel/locking/lockdep.c:5162 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/rtmutex_api.c:561 [inline] mutex_lock_nested+0x55/0x1d0 kernel/locking/rtmutex_api.c:580 dvb_frontend_release+0x1c2/0x4d0 drivers/media/dvb-core/dvb_frontend.c:2942 __fput+0x41a/0xa70 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync+0x6e/0xa0 fs/open.c:1574 close_files fs/file.c:572 [inline] put_files_struct+0x233/0x3c0 fs/file.c:584 do_exit+0x6f0/0x2360 kernel/exit.c:977 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 get_signal+0x136a/0x1430 kernel/signal.c:3113 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x336/0x540 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4b782fa4ce Code: Unable to access opcode bytes at 0x7f4b782fa4a4. RSP: 002b:00007fff7964d238 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 000055557d526500 RCX: 00007f4b782fa4ce RDX: 00007fff7964d290 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f4b785c7ea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000b2905 R13: 00007fff7964d3e0 R14: 00000000000b1d4c R15: 00007fff7964d3c0 --- 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