Warning: Permanently added '10.128.1.17' (ECDSA) to the list of known hosts. syzkaller login: [ 32.784467] audit: type=1400 audit(1596804060.984:8): avc: denied { execmem } for pid=6338 comm="syz-executor950" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 32.808331] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.967225] Bluetooth: hci0 command 0x0409 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.045054] Bluetooth: hci0 command 0x041b tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 40.123474] Bluetooth: hci0 command 0x040f tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 42.202135] Bluetooth: hci0 command 0x0419 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.280968] Bluetooth: hci0 command 0x0405 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.369161] ================================================================== [ 46.376624] BUG: KASAN: use-after-free in sco_chan_del+0x3b2/0x3d0 [ 46.382919] Read of size 1 at addr ffff888097bc62f5 by task syz-executor950/6606 [ 46.390423] [ 46.392030] CPU: 1 PID: 6606 Comm: syz-executor950 Not tainted 4.14.193-syzkaller #0 [ 46.399885] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.409226] Call Trace: [ 46.411793] dump_stack+0x1b2/0x283 [ 46.415417] print_address_description.cold+0x54/0x1d3 [ 46.420689] kasan_report_error.cold+0x8a/0x194 [ 46.425340] ? sco_chan_del+0x3b2/0x3d0 [ 46.429293] __asan_report_load1_noabort+0x68/0x70 [ 46.434269] ? sco_chan_del+0x3b2/0x3d0 [ 46.438227] sco_chan_del+0x3b2/0x3d0 [ 46.442002] __sco_sock_close+0xb0/0x670 [ 46.446047] sco_sock_release+0x6a/0x370 [ 46.450085] __sock_release+0xcd/0x2b0 [ 46.453946] ? __sock_release+0x2b0/0x2b0 [ 46.458063] sock_close+0x15/0x20 [ 46.461491] __fput+0x25f/0x7a0 [ 46.464749] task_work_run+0x11f/0x190 [ 46.468614] get_signal+0x18a3/0x1ca0 [ 46.472387] ? reacquire_held_locks+0xb5/0x3f0 [ 46.476965] ? sco_sock_connect+0x42b/0x860 [ 46.481276] do_signal+0x7c/0x1550 [ 46.484800] ? lock_downgrade+0x740/0x740 [ 46.488965] ? check_preemption_disabled+0x35/0x240 [ 46.493959] ? setup_sigcontext+0x820/0x820 [ 46.498262] ? kick_process+0xe4/0x170 [ 46.502168] ? task_work_add+0x87/0xe0 [ 46.506031] ? sco_sock_create+0xf0/0xf0 [ 46.510063] ? fput+0xaa/0x140 [ 46.513228] ? SyS_connect+0xf6/0x240 [ 46.517000] ? SyS_accept+0x30/0x30 [ 46.520649] ? lock_downgrade+0x740/0x740 [ 46.524771] ? exit_to_usermode_loop+0x41/0x200 [ 46.529415] exit_to_usermode_loop+0x160/0x200 [ 46.534010] do_syscall_64+0x4a3/0x640 [ 46.537874] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 46.543036] RIP: 0033:0x447129 [ 46.546202] RSP: 002b:00007f20abe0ddb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 46.553886] RAX: fffffffffffffffc RBX: 00000000006dcc28 RCX: 0000000000447129 [ 46.561128] RDX: 0000000000000008 RSI: 0000000020000540 RDI: 0000000000000004 [ 46.568380] RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 [ 46.575623] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc2c [ 46.582867] R13: 00007fff9e12562f R14: 00007f20abe0e9c0 R15: 00000000006dcc2c [ 46.590120] [ 46.591719] Allocated by task 6372: [ 46.595322] kasan_kmalloc+0xeb/0x160 [ 46.599094] kmem_cache_alloc_trace+0x131/0x3d0 [ 46.603735] hci_conn_add+0x53/0x12f0 [ 46.607507] hci_connect_sco+0x265/0x7d0 [ 46.611542] sco_sock_connect+0x26c/0x860 [ 46.615662] SyS_connect+0x1f4/0x240 [ 46.619348] do_syscall_64+0x1d5/0x640 [ 46.623230] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 46.628389] [ 46.629994] Freed by task 6366: [ 46.633255] kasan_slab_free+0xc3/0x1a0 [ 46.637199] kfree+0xc9/0x250 [ 46.640278] device_release+0xf0/0x1a0 [ 46.644139] kobject_put+0x1f3/0x2d0 [ 46.647821] put_device+0x1c/0x30 [ 46.651247] hci_conn_del+0x235/0x620 [ 46.655035] hci_phy_link_complete_evt.isra.0+0x4d0/0x6c0 [ 46.660572] hci_event_packet+0x2592/0x7c7a [ 46.664881] hci_rx_work+0x3e6/0x970 [ 46.668577] process_one_work+0x793/0x14a0 [ 46.672786] worker_thread+0x5cc/0xff0 [ 46.676656] kthread+0x30d/0x420 [ 46.679996] ret_from_fork+0x24/0x30 [ 46.683681] [ 46.685294] The buggy address belongs to the object at ffff888097bc62c0 [ 46.685294] which belongs to the cache kmalloc-4096 of size 4096 [ 46.698112] The buggy address is located 53 bytes inside of [ 46.698112] 4096-byte region [ffff888097bc62c0, ffff888097bc72c0) [ 46.709956] The buggy address belongs to the page: [ 46.714872] page:ffffea00025ef180 count:1 mapcount:0 mapping:ffff888097bc62c0 index:0x0 compound_mapcount: 0 [ 46.724811] flags: 0xfffe0000008100(slab|head) [ 46.729369] raw: 00fffe0000008100 ffff888097bc62c0 0000000000000000 0000000100000001 [ 46.737236] raw: ffffea0002616c20 ffffea00025e5020 ffff88812fe52dc0 0000000000000000 [ 46.745092] page dumped because: kasan: bad access detected [ 46.750771] [ 46.752383] Memory state around the buggy address: [ 46.757281] ffff888097bc6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.764628] ffff888097bc6200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.771959] >ffff888097bc6280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 46.779288] ^ [ 46.786273] ffff888097bc6300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.793605] ffff888097bc6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.800954] ================================================================== [ 46.808283] Disabling lock debugging due to kernel taint [ 46.814001] Kernel panic - not syncing: panic_on_warn set ... [ 46.814001] [ 46.821359] CPU: 1 PID: 6606 Comm: syz-executor950 Tainted: G B 4.14.193-syzkaller #0 [ 46.830444] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.839787] Call Trace: [ 46.842361] dump_stack+0x1b2/0x283 [ 46.845961] panic+0x1f9/0x42d [ 46.849122] ? add_taint.cold+0x16/0x16 [ 46.853077] ? ___preempt_schedule+0x16/0x18 [ 46.857461] kasan_end_report+0x43/0x49 [ 46.861407] kasan_report_error.cold+0xa7/0x194 [ 46.866048] ? sco_chan_del+0x3b2/0x3d0 [ 46.869999] __asan_report_load1_noabort+0x68/0x70 [ 46.874899] ? sco_chan_del+0x3b2/0x3d0 [ 46.878844] sco_chan_del+0x3b2/0x3d0 [ 46.882618] __sco_sock_close+0xb0/0x670 [ 46.886649] sco_sock_release+0x6a/0x370 [ 46.890770] __sock_release+0xcd/0x2b0 [ 46.894630] ? __sock_release+0x2b0/0x2b0 [ 46.898748] sock_close+0x15/0x20 [ 46.902189] __fput+0x25f/0x7a0 [ 46.905447] task_work_run+0x11f/0x190 [ 46.909320] get_signal+0x18a3/0x1ca0 [ 46.913099] ? reacquire_held_locks+0xb5/0x3f0 [ 46.917659] ? sco_sock_connect+0x42b/0x860 [ 46.921952] do_signal+0x7c/0x1550 [ 46.925468] ? lock_downgrade+0x740/0x740 [ 46.929590] ? check_preemption_disabled+0x35/0x240 [ 46.934694] ? setup_sigcontext+0x820/0x820 [ 46.938993] ? kick_process+0xe4/0x170 [ 46.942862] ? task_work_add+0x87/0xe0 [ 46.946730] ? sco_sock_create+0xf0/0xf0 [ 46.950765] ? fput+0xaa/0x140 [ 46.953932] ? SyS_connect+0xf6/0x240 [ 46.957704] ? SyS_accept+0x30/0x30 [ 46.961305] ? lock_downgrade+0x740/0x740 [ 46.965424] ? exit_to_usermode_loop+0x41/0x200 [ 46.970065] exit_to_usermode_loop+0x160/0x200 [ 46.974618] do_syscall_64+0x4a3/0x640 [ 46.978478] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 46.983639] RIP: 0033:0x447129 [ 46.986805] RSP: 002b:00007f20abe0ddb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 46.994482] RAX: fffffffffffffffc RBX: 00000000006dcc28 RCX: 0000000000447129 [ 47.001728] RDX: 0000000000000008 RSI: 0000000020000540 RDI: 0000000000000004 [ 47.008973] RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 [ 47.016215] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc2c [ 47.023458] R13: 00007fff9e12562f R14: 00007f20abe0e9c0 R15: 00000000006dcc2c [ 47.032031] Kernel Offset: disabled [ 47.035654] Rebooting in 86400 seconds..