Warning: Permanently added '10.128.0.112' (ECDSA) to the list of known hosts. syzkaller login: [ 121.016611] IPVS: ftp: loaded support on port[0] = 21 executing program [ 123.069872] Bluetooth: hci0: command 0x0409 tx timeout [ 125.149519] Bluetooth: hci0: command 0x041b tx timeout executing program [ 127.229198] Bluetooth: hci0: command 0x040f tx timeout [ 129.308972] Bluetooth: hci0: command 0x0419 tx timeout executing program [ 131.388837] Bluetooth: hci0: command 0x0405 tx timeout executing program executing program executing program executing program executing program executing program [ 161.627877] ================================================================== [ 161.635285] BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 [ 161.641935] Read of size 8 at addr ffff8880afda2260 by task kworker/1:2/4380 [ 161.649185] [ 161.650798] CPU: 1 PID: 4380 Comm: kworker/1:2 Not tainted 4.19.172-syzkaller #0 [ 161.658352] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 161.667694] Workqueue: events l2cap_chan_timeout [ 161.672430] Call Trace: [ 161.675013] dump_stack+0x1fc/0x2ef [ 161.678644] print_address_description.cold+0x54/0x219 [ 161.683903] kasan_report_error.cold+0x8a/0x1b9 [ 161.688566] ? __lock_acquire+0x2cb4/0x3ff0 [ 161.692872] __asan_report_load8_noabort+0x88/0x90 [ 161.697787] ? __lock_acquire+0x2cb4/0x3ff0 [ 161.702089] __lock_acquire+0x2cb4/0x3ff0 [ 161.706219] ? trace_hardirqs_off+0x64/0x200 [ 161.710665] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 161.715764] ? debug_object_assert_init+0x242/0x2e0 [ 161.720770] ? mark_held_locks+0xf0/0xf0 [ 161.724816] ? debug_object_free+0x380/0x380 [ 161.729207] ? mark_held_locks+0xf0/0xf0 [ 161.733257] ? __save_stack_trace+0x9f/0x190 [ 161.738302] ? del_timer+0xc3/0x100 [ 161.741912] lock_acquire+0x170/0x3c0 [ 161.745697] ? lock_sock_nested+0x3b/0x110 [ 161.749913] _raw_spin_lock_bh+0x2f/0x40 [ 161.753955] ? lock_sock_nested+0x3b/0x110 [ 161.758188] lock_sock_nested+0x3b/0x110 [ 161.762231] l2cap_sock_teardown_cb+0xa0/0x6d0 [ 161.766796] ? lock_downgrade+0x720/0x720 [ 161.770924] l2cap_chan_del+0xbc/0xa50 [ 161.774802] ? trace_hardirqs_off+0x64/0x200 [ 161.779207] l2cap_chan_close+0x1b5/0x950 [ 161.783344] ? __set_monitor_timer+0x200/0x200 [ 161.787919] ? check_preemption_disabled+0x41/0x280 [ 161.792924] l2cap_chan_timeout+0x17e/0x2f0 [ 161.797233] process_one_work+0x864/0x1570 [ 161.801460] ? pwq_dec_nr_in_flight+0x2d0/0x2d0 [ 161.806110] worker_thread+0x64c/0x1130 [ 161.810067] ? __kthread_parkme+0x133/0x1e0 [ 161.814470] ? process_one_work+0x1570/0x1570 [ 161.819117] kthread+0x33f/0x460 [ 161.822463] ? kthread_park+0x180/0x180 [ 161.826419] ret_from_fork+0x24/0x30 [ 161.830110] [ 161.831715] Allocated by task 8136: [ 161.835328] __kmalloc+0x15a/0x3c0 [ 161.838870] sk_prot_alloc+0x1e2/0x2d0 [ 161.842754] sk_alloc+0x36/0xec0 [ 161.846102] l2cap_sock_alloc.constprop.0+0x31/0x210 [ 161.851207] l2cap_sock_create+0x123/0x1f0 [ 161.855434] bt_sock_create+0x154/0x2a0 [ 161.859386] __sock_create+0x3d8/0x740 [ 161.863251] __sys_socket+0xef/0x200 [ 161.866946] __x64_sys_socket+0x6f/0xb0 [ 161.870951] do_syscall_64+0xf9/0x620 [ 161.874749] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 161.879929] [ 161.881533] Freed by task 8136: [ 161.884790] kfree+0xcc/0x210 [ 161.887874] __sk_destruct+0x684/0x8a0 [ 161.891791] __sk_free+0x165/0x3b0 [ 161.895335] sk_free+0x3b/0x50 [ 161.898533] l2cap_sock_kill.part.0+0x124/0x150 [ 161.903189] l2cap_sock_release+0x1e6/0x290 [ 161.907496] __sock_release+0xcd/0x2a0 [ 161.911363] sock_close+0x15/0x20 [ 161.914806] __fput+0x2ce/0x890 [ 161.918079] task_work_run+0x148/0x1c0 [ 161.921949] do_exit+0xbf3/0x2be0 [ 161.925399] do_group_exit+0x125/0x310 [ 161.929297] get_signal+0x3f2/0x1f70 [ 161.932991] do_signal+0x8f/0x1670 [ 161.936511] exit_to_usermode_loop+0x204/0x2a0 [ 161.941097] do_syscall_64+0x538/0x620 [ 161.944966] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 161.950156] [ 161.951764] The buggy address belongs to the object at ffff8880afda21c0 [ 161.951764] which belongs to the cache kmalloc-2048 of size 2048 [ 161.964574] The buggy address is located 160 bytes inside of [ 161.964574] 2048-byte region [ffff8880afda21c0, ffff8880afda29c0) [ 161.976511] The buggy address belongs to the page: [ 161.981427] page:ffffea0002bf6880 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 [ 161.991380] flags: 0xfff00000008100(slab|head) [ 161.995945] raw: 00fff00000008100 ffffea0002c4b908 ffffea0002bfe108 ffff88813bff0c40 [ 162.003806] raw: 0000000000000000 ffff8880afda21c0 0000000100000003 0000000000000000 [ 162.011662] page dumped because: kasan: bad access detected [ 162.017346] [ 162.018951] Memory state around the buggy address: [ 162.023884] ffff8880afda2100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 162.031316] ffff8880afda2180: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 162.038660] >ffff8880afda2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 162.045997] ^ [ 162.052472] ffff8880afda2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 162.059835] ffff8880afda2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 162.067173] ================================================================== [ 162.074516] Disabling lock debugging due to kernel taint [ 162.079959] Kernel panic - not syncing: panic_on_warn set ... [ 162.079959] [ 162.087321] CPU: 1 PID: 4380 Comm: kworker/1:2 Tainted: G B 4.19.172-syzkaller #0 [ 162.096240] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 162.105582] Workqueue: events l2cap_chan_timeout [ 162.110424] Call Trace: [ 162.113036] dump_stack+0x1fc/0x2ef [ 162.116654] panic+0x26a/0x50e [ 162.119833] ? __warn_printk+0xf3/0xf3 [ 162.123705] ? lock_downgrade+0x720/0x720 [ 162.127836] ? print_shadow_for_address+0xb8/0x114 [ 162.132757] ? trace_hardirqs_off+0x64/0x200 [ 162.137152] kasan_end_report+0x43/0x49 [ 162.141114] kasan_report_error.cold+0xa7/0x1b9 [ 162.145769] ? __lock_acquire+0x2cb4/0x3ff0 [ 162.150073] __asan_report_load8_noabort+0x88/0x90 [ 162.155002] ? __lock_acquire+0x2cb4/0x3ff0 [ 162.159307] __lock_acquire+0x2cb4/0x3ff0 [ 162.163463] ? trace_hardirqs_off+0x64/0x200 [ 162.167854] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 162.172952] ? debug_object_assert_init+0x242/0x2e0 [ 162.177954] ? mark_held_locks+0xf0/0xf0 [ 162.181995] ? debug_object_free+0x380/0x380 [ 162.186397] ? mark_held_locks+0xf0/0xf0 [ 162.190442] ? __save_stack_trace+0x9f/0x190 [ 162.194849] ? del_timer+0xc3/0x100 [ 162.198478] lock_acquire+0x170/0x3c0 [ 162.202268] ? lock_sock_nested+0x3b/0x110 [ 162.206538] _raw_spin_lock_bh+0x2f/0x40 [ 162.210599] ? lock_sock_nested+0x3b/0x110 [ 162.214841] lock_sock_nested+0x3b/0x110 [ 162.218900] l2cap_sock_teardown_cb+0xa0/0x6d0 [ 162.223478] ? lock_downgrade+0x720/0x720 [ 162.227630] l2cap_chan_del+0xbc/0xa50 [ 162.231524] ? trace_hardirqs_off+0x64/0x200 [ 162.235942] l2cap_chan_close+0x1b5/0x950 [ 162.240073] ? __set_monitor_timer+0x200/0x200 [ 162.244638] ? check_preemption_disabled+0x41/0x280 [ 162.249653] l2cap_chan_timeout+0x17e/0x2f0 [ 162.253963] process_one_work+0x864/0x1570 [ 162.258189] ? pwq_dec_nr_in_flight+0x2d0/0x2d0 [ 162.262843] worker_thread+0x64c/0x1130 [ 162.266801] ? __kthread_parkme+0x133/0x1e0 [ 162.271107] ? process_one_work+0x1570/0x1570 [ 162.275614] kthread+0x33f/0x460 [ 162.278968] ? kthread_park+0x180/0x180 [ 162.282933] ret_from_fork+0x24/0x30 [ 162.287421] Kernel Offset: disabled [ 162.291053] Rebooting in 86400 seconds..