================================================================== BUG: KASAN: use-after-free in __mutex_lock_common kernel/locking/mutex.c:625 [inline] BUG: KASAN: use-after-free in __mutex_lock+0x14e/0x15a0 kernel/locking/mutex.c:821 Read of size 8 at addr ffff88807f8dc160 by task syz.5.6913/28197 CPU: 1 UID: 0 PID: 28197 Comm: syz.5.6913 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_re kasan_report+0x117/0x150 mm/kasan/report.c:595 __mutex_lock_common kernel/locking/mutex.c:625 [inline] __mutex_lock+0x14e/0x15a0 kernel/locking/mutex.c:821 dvb_frontend_release+0x1bc/0x4d0 drivers/media/dvb-core/dvb_frontend.c:2942 __fput+0x408/0xa40 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+0x230/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_fast_syscall_32+0x447/0x6d0 arch/x86/entry/syscall_32.c:289 do_fast_syscall_32+0x33/0x70 arch/x86/entry/syscall_32.c:311 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f67f1c Code: Unable to access opcode bytes at 0xf7f67ef2. RSP: 002b:00000000f53f55bc EFLAGS: 00000206 ORIG_RAX: 00000000000000f0 RAX: fffffffffffffe00 RBX: 00000000f7425024 RCX: 0000000000000080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000f7425028 RBP: 0000000000000081 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x34 pfn:0x7f8dc flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0000ae5908 ffff8880b82422c0 0000000000000000 raw: 0000000000000034 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 28218, tgid 28217 (syz.4.6919), ts 1697067000811 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1873 prep_new_page+0x22/0xb0 mm/page_alloc.c:1881 get_page_from_freelist+0x22a1/0x22e0 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5505 alloc_pages_mpol+0x21e/0x390 mm/mempolicy.c:2520 ___kmalloc_large_node+0x7b/0x170 mm/slub.c:5470 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5502 __do_kmalloc_node mm/slub.c:5519 [inline] __kmalloc_noprof+0x3f6/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] snd_seq_oss_readq_new+0x3c/0x1d0 sound/core/seq/oss/seq_oss_readq.c:37 snd_seq_oss_open+0x803/0xf80 sound/core/seq/oss/seq_oss_init.c:226 odev_open+0x67/0xa0 sound/core/seq/oss/seq_oss.c:131 chrdev_open+0x4d9/0x600 fs/char_dev.c:413 do_dentry_open+0x80e/0x1360 fs/open.c:1000 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4851 [inline] path_openat+0x16fc/0x20f0 fs/namei.c:5016 do_file_open+0x23e/0x4a0 fs/namei.c:5045 page last free pid 28217 tgid 28217 ts 1697098272315 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2971 free_devinfo+0x8b/0xa0 sound/core/seq/oss/seq_oss_init.c:391 port_free+0xa4/0x160 sound/core/seq/seq_ports.c:261 port_delete sound/core/seq/seq_ports.c:280 [inline] snd_seq_delete_port+0x1ac/0x200 sound/core/seq/seq_ports.c:302 snd_seq_ioctl_delete_port+0x98/0x270 sound/core/seq/seq_clientmgr.c:1375 snd_seq_event_port_detach+0xfb/0x180 sound/core/seq/seq_ports.c:730 delete_port sound/core/seq/oss/seq_oss_init.c:336 [inline] snd_seq_oss_release+0x19a/0x360 sound/core/seq/oss/seq_oss_init.c:417 odev_release+0x53/0x70 sound/core/seq/oss/seq_oss.c:144 __fput+0x408/0xa40 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync+0x6e/0xa0 fs/open.c:1574 __range_close fs/file.c:919 [inline] __do_sys_close_range fs/file.c:1003 [inline] __se_sys_close_range+0xa77/0xef0 fs/file.c:954 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x28a/0x6d0 arch/x86/entry/syscall_32.c:286 do_fast_syscall_32+0x33/0x70 arch/x86/entry/syscall_32.c:311 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Memory state around the buggy address: ffff88807f8dc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807f8dc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88807f8dc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807f8dc180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807f8dc200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================