Warning: Permanently added '10.128.0.129' (ECDSA) to the list of known hosts. [ 42.960018] audit: type=1400 audit(1596805861.089:8): avc: denied { execmem } for pid=6360 comm="syz-executor112" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 42.981890] 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 executing program [ 46.125996] 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 [ 48.205069] Bluetooth: hci0 command 0x041b tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 49.774229] ================================================================== [ 49.781663] BUG: KASAN: use-after-free in sco_chan_del+0x3b2/0x3d0 [ 49.787953] Read of size 1 at addr ffff8880973a4735 by task syz-executor112/6500 [ 49.795453] [ 49.797143] CPU: 0 PID: 6500 Comm: syz-executor112 Not tainted 4.14.193-syzkaller #0 [ 49.804996] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.814362] Call Trace: [ 49.816942] dump_stack+0x1b2/0x283 [ 49.820547] print_address_description.cold+0x54/0x1d3 [ 49.825882] kasan_report_error.cold+0x8a/0x194 [ 49.830522] ? sco_chan_del+0x3b2/0x3d0 [ 49.834469] __asan_report_load1_noabort+0x68/0x70 [ 49.839416] ? sco_chan_del+0x3b2/0x3d0 [ 49.843362] sco_chan_del+0x3b2/0x3d0 [ 49.847142] __sco_sock_close+0xb0/0x670 [ 49.851197] sco_sock_release+0x6a/0x370 [ 49.855242] __sock_release+0xcd/0x2b0 [ 49.859110] ? __sock_release+0x2b0/0x2b0 [ 49.863234] sock_close+0x15/0x20 [ 49.866662] __fput+0x25f/0x7a0 [ 49.869967] task_work_run+0x11f/0x190 [ 49.873832] get_signal+0x18a3/0x1ca0 [ 49.877609] ? reacquire_held_locks+0xb5/0x3f0 [ 49.882170] ? sco_sock_connect+0x42b/0x860 [ 49.886469] do_signal+0x7c/0x1550 [ 49.889982] ? lock_downgrade+0x740/0x740 [ 49.894108] ? check_preemption_disabled+0x35/0x240 [ 49.899222] ? setup_sigcontext+0x820/0x820 [ 49.903514] ? kick_process+0xe4/0x170 [ 49.907374] ? task_work_add+0x87/0xe0 [ 49.911235] ? sco_sock_create+0xf0/0xf0 [ 49.915282] ? fput+0xaa/0x140 [ 49.918452] ? SyS_connect+0xf6/0x240 [ 49.922235] ? SyS_accept+0x30/0x30 [ 49.925836] ? lock_downgrade+0x740/0x740 [ 49.929971] ? exit_to_usermode_loop+0x41/0x200 [ 49.934613] exit_to_usermode_loop+0x160/0x200 [ 49.939169] do_syscall_64+0x4a3/0x640 [ 49.943030] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 49.948260] RIP: 0033:0x4470b9 [ 49.951425] RSP: 002b:00007f6cbec83db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 49.959233] RAX: fffffffffffffffc RBX: 00000000006dbc28 RCX: 00000000004470b9 [ 49.966564] RDX: 0000000000000008 RSI: 00000000200001c0 RDI: 0000000000000004 [ 49.973816] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 49.981065] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 49.988324] R13: 00007ffdfcdc5a6f R14: 00007f6cbec849c0 R15: 00000000006dbc2c [ 49.995577] [ 49.997180] Allocated by task 6392: [ 50.000783] kasan_kmalloc+0xeb/0x160 [ 50.004569] kmem_cache_alloc_trace+0x131/0x3d0 [ 50.009213] hci_conn_add+0x53/0x12f0 [ 50.012985] hci_connect_sco+0x265/0x7d0 [ 50.017018] sco_sock_connect+0x26c/0x860 [ 50.021139] SyS_connect+0x1f4/0x240 [ 50.024824] do_syscall_64+0x1d5/0x640 [ 50.028685] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 50.033843] [ 50.035442] Freed by task 6388: [ 50.038694] kasan_slab_free+0xc3/0x1a0 [ 50.042637] kfree+0xc9/0x250 [ 50.045717] device_release+0xf0/0x1a0 [ 50.049576] kobject_put+0x1f3/0x2d0 [ 50.053257] put_device+0x1c/0x30 [ 50.056683] hci_conn_del+0x235/0x620 [ 50.060453] hci_phy_link_complete_evt.isra.0+0x4d0/0x6c0 [ 50.066060] hci_event_packet+0x2592/0x7c7a [ 50.070353] hci_rx_work+0x3e6/0x970 [ 50.074041] process_one_work+0x793/0x14a0 [ 50.078247] worker_thread+0x5cc/0xff0 [ 50.082104] kthread+0x30d/0x420 [ 50.085443] ret_from_fork+0x24/0x30 [ 50.089124] [ 50.090725] The buggy address belongs to the object at ffff8880973a4700 [ 50.090725] which belongs to the cache kmalloc-4096 of size 4096 [ 50.103523] The buggy address is located 53 bytes inside of [ 50.103523] 4096-byte region [ffff8880973a4700, ffff8880973a5700) [ 50.115372] The buggy address belongs to the page: [ 50.120376] page:ffffea00025ce900 count:1 mapcount:0 mapping:ffff8880973a4700 index:0x0 compound_mapcount: 0 [ 50.130320] flags: 0xfffe0000008100(slab|head) [ 50.134879] raw: 00fffe0000008100 ffff8880973a4700 0000000000000000 0000000100000001 [ 50.142736] raw: ffffea0002641420 ffffea00025aeba0 ffff88812fe52dc0 0000000000000000 [ 50.150588] page dumped because: kasan: bad access detected [ 50.156272] [ 50.157871] Memory state around the buggy address: [ 50.162770] ffff8880973a4600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.170109] ffff8880973a4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.177444] >ffff8880973a4700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.184772] ^ [ 50.189671] ffff8880973a4780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.197090] ffff8880973a4800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.204420] ================================================================== [ 50.211912] Disabling lock debugging due to kernel taint [ 50.220466] Kernel panic - not syncing: panic_on_warn set ... [ 50.220466] [ 50.227844] CPU: 0 PID: 6500 Comm: syz-executor112 Tainted: G B 4.14.193-syzkaller #0 [ 50.236923] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.246262] Call Trace: [ 50.248824] dump_stack+0x1b2/0x283 [ 50.252426] panic+0x1f9/0x42d [ 50.255600] ? add_taint.cold+0x16/0x16 [ 50.259766] ? ___preempt_schedule+0x16/0x18 [ 50.264157] kasan_end_report+0x43/0x49 [ 50.268110] kasan_report_error.cold+0xa7/0x194 [ 50.272750] ? sco_chan_del+0x3b2/0x3d0 [ 50.276932] __asan_report_load1_noabort+0x68/0x70 [ 50.282015] ? sco_chan_del+0x3b2/0x3d0 [ 50.284204] Bluetooth: hci0 command 0x040f tx timeout [ 50.286357] sco_chan_del+0x3b2/0x3d0 [ 50.286365] __sco_sock_close+0xb0/0x670 [ 50.286373] sco_sock_release+0x6a/0x370 [ 50.303510] __sock_release+0xcd/0x2b0 [ 50.307388] ? __sock_release+0x2b0/0x2b0 [ 50.311551] sock_close+0x15/0x20 [ 50.315015] __fput+0x25f/0x7a0 [ 50.318291] task_work_run+0x11f/0x190 [ 50.322155] get_signal+0x18a3/0x1ca0 [ 50.325929] ? reacquire_held_locks+0xb5/0x3f0 [ 50.330487] ? sco_sock_connect+0x42b/0x860 [ 50.334784] do_signal+0x7c/0x1550 [ 50.338297] ? lock_downgrade+0x740/0x740 [ 50.342416] ? check_preemption_disabled+0x35/0x240 [ 50.347404] ? setup_sigcontext+0x820/0x820 [ 50.351698] ? kick_process+0xe4/0x170 [ 50.355566] ? task_work_add+0x87/0xe0 [ 50.359432] ? sco_sock_create+0xf0/0xf0 [ 50.363469] ? fput+0xaa/0x140 [ 50.366640] ? SyS_connect+0xf6/0x240 [ 50.370550] ? SyS_accept+0x30/0x30 [ 50.374161] ? lock_downgrade+0x740/0x740 [ 50.378292] ? exit_to_usermode_loop+0x41/0x200 [ 50.383045] exit_to_usermode_loop+0x160/0x200 [ 50.388274] do_syscall_64+0x4a3/0x640 [ 50.392145] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 50.397314] RIP: 0033:0x4470b9 [ 50.400650] RSP: 002b:00007f6cbec83db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 50.408339] RAX: fffffffffffffffc RBX: 00000000006dbc28 RCX: 00000000004470b9 [ 50.415580] RDX: 0000000000000008 RSI: 00000000200001c0 RDI: 0000000000000004 [ 50.422821] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 50.430069] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 50.437354] R13: 00007ffdfcdc5a6f R14: 00007f6cbec849c0 R15: 00000000006dbc2c [ 50.446078] Kernel Offset: disabled [ 50.449688] Rebooting in 86400 seconds..