Bluetooth: hci1: command 0x0419 tx timeout IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready Bluetooth: hci2: command 0x0419 tx timeout Bluetooth: hci0: command 0x0419 tx timeout ================================================================== BUG: KASAN: use-after-free in snd_seq_timer_interrupt+0x2c8/0x370 sound/core/seq/seq_timer.c:145 Read of size 8 at addr ffff888097a7dcd8 by task syz-executor.0/10874 CPU: 0 PID: 10874 Comm: syz-executor.0 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 snd_seq_timer_interrupt+0x2c8/0x370 sound/core/seq/seq_timer.c:145 snd_timer_interrupt sound/core/timer.c:877 [inline] snd_timer_interrupt+0x617/0x1080 sound/core/timer.c:789 snd_timer_s_function+0xa7/0x120 sound/core/timer.c:1116 call_timer_fn+0x14c/0x510 kernel/time/timer.c:1338 expire_timers+0x255/0x3a0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x1dc/0x570 kernel/time/timer.c:1709 __do_softirq+0x25f/0x919 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:debug_lockdep_rcu_enabled.part.0+0xb/0x60 kernel/rcu/update.c:251 Code: a0 e8 09 89 40 00 48 8b 45 a0 e9 bc fd ff ff 48 8b 7d d0 e8 f7 88 40 00 e9 95 fd ff ff 66 90 48 b8 00 00 00 00 00 fc ff df 55 <48> 89 e5 53 65 48 8b 1c 25 80 df 01 00 48 8d bb 84 08 00 00 48 89 RSP: 0018:ffff88808f657990 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 00000000000041ed RCX: 0000000000200000 RDX: 0000000000000004 RSI: 0000000000000081 RDI: ffffffff89e34a00 RBP: ffff88808f6579a0 R08: 0000000000000000 R09: 0000000000000040 R10: ffff88808f657d18 R11: 0000000000000000 R12: ffff8880b5ae0b60 R13: 0000000000000081 R14: ffff8880b5ae0b62 R15: ffff8880b5384280 acl_permission_check fs/namei.c:299 [inline] generic_permission+0x4b/0x360 fs/namei.c:341 do_inode_permission fs/namei.c:393 [inline] inode_permission+0x67/0x3c0 fs/namei.c:451 may_lookup fs/namei.c:1697 [inline] link_path_walk.part.11+0x161/0xf50 fs/namei.c:2085 link_path_walk fs/namei.c:2073 [inline] path_openat+0x1aa/0x2900 fs/namei.c:3536 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 __do_sys_openat fs/open.c:1112 [inline] __se_sys_openat fs/open.c:1106 [inline] __x64_sys_openat+0x98/0xf0 fs/open.c:1106 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7f16f19188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000002 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc61a54f6f R14: 00007f7f16f19300 R15: 0000000000022000 Allocated by task 10874: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 kmem_cache_alloc_trace+0x152/0x3a0 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] queue_new sound/core/seq/seq_queue.c:113 [inline] snd_seq_queue_alloc+0x52/0x4d0 sound/core/seq/seq_queue.c:185 snd_seq_ioctl_create_queue+0xaa/0x2e0 sound/core/seq/seq_clientmgr.c:1531 snd_seq_ioctl+0x1c6/0x3e0 sound/core/seq/seq_clientmgr.c:2140 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10872: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x13c/0x220 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 queue_delete+0x8b/0xa0 sound/core/seq/seq_queue.c:156 snd_seq_queue_client_leave+0x27/0x110 sound/core/seq/seq_queue.c:592 seq_free_client1.part.8+0xef/0x260 sound/core/seq/seq_clientmgr.c:263 seq_free_client1 sound/core/seq/seq_clientmgr.c:256 [inline] seq_free_client+0x5c/0xd0 sound/core/seq/seq_clientmgr.c:285 snd_seq_release+0x48/0xe0 sound/core/seq/seq_clientmgr.c:366 __fput+0x249/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x185/0x1e0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888097a7dc80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 88 bytes inside of 512-byte region [ffff888097a7dc80, ffff888097a7de80) The buggy address belongs to the page: page:ffffea00025e9f40 count:1 mapcount:0 mapping:ffff88813bff6940 index:0xffff888097a7d780 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00025e7d48 ffffea0002d30908 ffff88813bff6940 raw: ffff888097a7d780 ffff888097a7d000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888097a7db80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888097a7dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888097a7dc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888097a7dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888097a7dd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================