[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Getty on tty6. [ OK ] Started Getty on tty5. [ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.24' (ECDSA) to the list of known hosts. syzkaller login: [ 72.108401][ T27] audit: type=1400 audit(1596410006.698:8): avc: denied { execmem } for pid=6823 comm="syz-executor104" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 72.132529][ T6831] IPVS: ftp: loaded support on port[0] = 21 [ 72.140471][ T6830] IPVS: ftp: loaded support on port[0] = 21 [ 72.166814][ T6834] IPVS: ftp: loaded support on port[0] = 21 [ 72.167498][ T6832] IPVS: ftp: loaded support on port[0] = 21 [ 72.192050][ T6833] IPVS: ftp: loaded support on port[0] = 21 [ 72.203588][ T6835] 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 [ 75.380906][ T17] Bluetooth: hci0: command 0x0409 tx timeout [ 75.460160][ T17] Bluetooth: hci1: command 0x0409 tx timeout [ 75.460168][ T5] Bluetooth: hci2: command 0x0409 tx timeout [ 75.540189][ T17] Bluetooth: hci3: command 0x0409 tx timeout [ 75.546412][ T17] Bluetooth: hci4: command 0x0409 tx timeout [ 75.553507][ T17] Bluetooth: hci5: command 0x0409 tx timeout [ 77.459950][ T17] Bluetooth: hci0: command 0x041b tx timeout [ 77.539954][ T17] Bluetooth: hci2: command 0x041b tx timeout [ 77.546225][ T17] Bluetooth: hci1: command 0x041b tx timeout [ 77.619998][ T17] Bluetooth: hci5: command 0x041b tx timeout [ 77.626248][ T17] Bluetooth: hci4: command 0x041b tx timeout [ 77.633308][ T17] Bluetooth: hci3: 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 78.428710][ T6978] ================================================================== [ 78.436978][ T6978] BUG: KASAN: use-after-free in sco_chan_del+0xe6/0x430 [ 78.443918][ T6978] Write of size 4 at addr ffff8880a03d8010 by task syz-executor104/6978 [ 78.452325][ T6978] [ 78.454687][ T6978] CPU: 1 PID: 6978 Comm: syz-executor104 Not tainted 5.8.0-rc7-syzkaller #0 [ 78.463352][ T6978] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 78.473927][ T6978] Call Trace: [ 78.477249][ T6978] dump_stack+0x18f/0x20d [ 78.482842][ T6978] ? sco_chan_del+0xe6/0x430 [ 78.489042][ T6978] ? sco_chan_del+0xe6/0x430 [ 78.493664][ T6978] ? __sock_release+0x280/0x280 [ 78.498578][ T6978] print_address_description.constprop.0.cold+0xae/0x436 [ 78.505912][ T6978] ? sco_chan_del+0xab/0x430 [ 78.510759][ T6978] ? lockdep_hardirqs_off+0x66/0xa0 [ 78.516151][ T6978] ? vprintk_func+0x97/0x1a6 [ 78.524986][ T6978] ? sco_chan_del+0xe6/0x430 [ 78.529643][ T6978] kasan_report.cold+0x1f/0x37 [ 78.535049][ T6978] ? sco_chan_del+0xe6/0x430 [ 78.539692][ T6978] check_memory_region+0x13d/0x180 [ 78.544819][ T6978] sco_chan_del+0xe6/0x430 [ 78.549249][ T6978] __sco_sock_close+0x16e/0x5b0 [ 78.554507][ T6978] sco_sock_release+0x69/0x290 [ 78.559380][ T6978] __sock_release+0xcd/0x280 [ 78.563987][ T6978] sock_close+0x18/0x20 [ 78.568186][ T6978] __fput+0x33c/0x880 [ 78.572184][ T6978] task_work_run+0xdd/0x190 [ 78.576725][ T6978] do_exit+0xb72/0x2a40 [ 78.580888][ T6978] ? lock_acquire+0x1f1/0xad0 [ 78.585573][ T6978] ? find_held_lock+0x2d/0x110 [ 78.590345][ T6978] ? mm_update_next_owner+0x7a0/0x7a0 [ 78.595719][ T6978] ? get_signal+0x332/0x1ee0 [ 78.600325][ T6978] ? lock_downgrade+0x820/0x820 [ 78.605189][ T6978] ? lock_is_held_type+0xb0/0xe0 [ 78.610230][ T6978] do_group_exit+0x125/0x310 [ 78.614835][ T6978] get_signal+0x40b/0x1ee0 [ 78.619361][ T6978] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 78.625374][ T6978] ? trace_hardirqs_on+0x5f/0x220 [ 78.630411][ T6978] ? __local_bh_enable_ip+0x159/0x250 [ 78.635792][ T6978] do_signal+0x82/0x2520 [ 78.640048][ T6978] ? sco_sock_release+0x290/0x290 [ 78.645085][ T6978] ? __sys_connect_file+0x4e/0x1a0 [ 78.650229][ T6978] ? copy_siginfo_to_user32+0xa0/0xa0 [ 78.656050][ T6978] ? __sys_connect_file+0x1a0/0x1a0 [ 78.661290][ T6978] ? lock_is_held_type+0xb0/0xe0 [ 78.666278][ T6978] ? __prepare_exit_to_usermode+0xcc/0x1f0 [ 78.672093][ T6978] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 78.678383][ T6978] __prepare_exit_to_usermode+0x156/0x1f0 [ 78.684118][ T6978] do_syscall_64+0x6c/0xe0 [ 78.688549][ T6978] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 78.694446][ T6978] RIP: 0033:0x446e69 [ 78.698361][ T6978] Code: Bad RIP value. [ 78.702427][ T6978] RSP: 002b:00007fff15a45008 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 78.710859][ T6978] RAX: fffffffffffffffc RBX: 0000000000000000 RCX: 0000000000446e69 [ 78.718833][ T6978] RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000004 [ 78.726811][ T6978] RBP: 0000000000000004 R08: 0000000000000002 R09: 00000003000100ff [ 78.734815][ T6978] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 [ 78.742787][ T6978] R13: 0000000000407ac0 R14: 0000000000000000 R15: 0000000000000000 [ 78.750795][ T6978] [ 78.753577][ T6978] Allocated by task 6978: [ 78.757921][ T6978] save_stack+0x1b/0x40 [ 78.762079][ T6978] __kasan_kmalloc.constprop.0+0xc2/0xd0 [ 78.767717][ T6978] kmem_cache_alloc_trace+0x14f/0x2d0 [ 78.773122][ T6978] hci_conn_add+0x53/0x1340 [ 78.778608][ T6978] hci_connect_sco+0x350/0x860 [ 78.784679][ T6978] sco_sock_connect+0x308/0x980 [ 78.789539][ T6978] __sys_connect_file+0x155/0x1a0 [ 78.794567][ T6978] __sys_connect+0x160/0x190 [ 78.799166][ T6978] __x64_sys_connect+0x6f/0xb0 [ 78.803936][ T6978] do_syscall_64+0x60/0xe0 [ 78.808377][ T6978] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 78.814260][ T6978] [ 78.816588][ T6978] Freed by task 6972: [ 78.820578][ T6978] save_stack+0x1b/0x40 [ 78.824734][ T6978] __kasan_slab_free+0xf5/0x140 [ 78.829588][ T6978] kfree+0x103/0x2c0 [ 78.833490][ T6978] device_release+0x71/0x200 [ 78.838083][ T6978] kobject_put+0x1c0/0x270 [ 78.842503][ T6978] put_device+0x1b/0x30 [ 78.846667][ T6978] hci_conn_del+0x27e/0x6a0 [ 78.851191][ T6978] hci_phy_link_complete_evt.isra.0+0x508/0x790 [ 78.857436][ T6978] hci_event_packet+0x481a/0x86f5 [ 78.862459][ T6978] hci_rx_work+0x22e/0xb10 [ 78.866879][ T6978] process_one_work+0x94c/0x1670 [ 78.871821][ T6978] worker_thread+0x64c/0x1120 [ 78.876843][ T6978] kthread+0x3b5/0x4a0 [ 78.880923][ T6978] ret_from_fork+0x1f/0x30 [ 78.885330][ T6978] [ 78.887685][ T6978] The buggy address belongs to the object at ffff8880a03d8000 [ 78.887685][ T6978] which belongs to the cache kmalloc-4k of size 4096 [ 78.901739][ T6978] The buggy address is located 16 bytes inside of [ 78.901739][ T6978] 4096-byte region [ffff8880a03d8000, ffff8880a03d9000) [ 78.915000][ T6978] The buggy address belongs to the page: [ 78.920652][ T6978] page:ffffea000280f600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea000280f600 order:1 compound_mapcount:0 [ 78.934101][ T6978] flags: 0xfffe0000010200(slab|head) [ 78.939421][ T6978] raw: 00fffe0000010200 ffffea0002882888 ffffea00027ede08 ffff8880aa002000 [ 78.948043][ T6978] raw: 0000000000000000 ffff8880a03d8000 0000000100000001 0000000000000000 [ 78.956624][ T6978] page dumped because: kasan: bad access detected [ 78.963035][ T6978] [ 78.965362][ T6978] Memory state around the buggy address: [ 78.970992][ T6978] ffff8880a03d7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc 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 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 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 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 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 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 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 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 executing program executing program executing program executing program executing program executing program [ 78.979059][ T6978] ffff8880a03d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 78.987122][ T6978] >ffff8880a03d8000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.995176][ T6978] ^ [ 78.999763][ T6978] ffff8880a03d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 79.007826][ T6978] ffff8880a03d8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 79.015903][ T6978] ================================================================== [ 79.023957][ T6978] Disabling lock debugging due to kernel taint executing program executing program executing program [ 79.054012][ T6978] Kernel panic - not syncing: panic_on_warn set ... [ 79.060621][ T6978] CPU: 0 PID: 6978 Comm: syz-executor104 Tainted: G B 5.8.0-rc7-syzkaller #0 [ 79.070936][ T6978] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 79.080983][ T6978] Call Trace: [ 79.084278][ T6978] dump_stack+0x18f/0x20d [ 79.088615][ T6978] ? sco_chan_del+0x50/0x430 [ 79.093202][ T6978] ? __sock_release+0x280/0x280 [ 79.098053][ T6978] panic+0x2e3/0x75c [ 79.101948][ T6978] ? __warn_printk+0xf3/0xf3 [ 79.106543][ T6978] ? preempt_schedule_common+0x59/0xc0 [ 79.112000][ T6978] ? sco_chan_del+0xe6/0x430 [ 79.116589][ T6978] ? preempt_schedule_thunk+0x16/0x18 [ 79.121956][ T6978] ? trace_hardirqs_on+0x55/0x220 [ 79.126981][ T6978] ? sco_chan_del+0xe6/0x430 [ 79.131587][ T6978] ? sco_chan_del+0xe6/0x430 [ 79.136173][ T6978] ? __sock_release+0x280/0x280 [ 79.141017][ T6978] end_report+0x4d/0x53 [ 79.145172][ T6978] kasan_report.cold+0xd/0x37 [ 79.149848][ T6978] ? sco_chan_del+0xe6/0x430 [ 79.154433][ T6978] check_memory_region+0x13d/0x180 [ 79.159563][ T6978] sco_chan_del+0xe6/0x430 [ 79.163979][ T6978] __sco_sock_close+0x16e/0x5b0 [ 79.168823][ T6978] sco_sock_release+0x69/0x290 [ 79.173607][ T6978] __sock_release+0xcd/0x280 [ 79.178176][ T6978] sock_close+0x18/0x20 [ 79.182328][ T6978] __fput+0x33c/0x880 [ 79.186297][ T6978] task_work_run+0xdd/0x190 [ 79.190816][ T6978] do_exit+0xb72/0x2a40 [ 79.194950][ T6978] ? lock_acquire+0x1f1/0xad0 [ 79.199599][ T6978] ? find_held_lock+0x2d/0x110 [ 79.204354][ T6978] ? mm_update_next_owner+0x7a0/0x7a0 [ 79.209722][ T6978] ? get_signal+0x332/0x1ee0 [ 79.214299][ T6978] ? lock_downgrade+0x820/0x820 [ 79.219137][ T6978] ? lock_is_held_type+0xb0/0xe0 [ 79.224048][ T6978] do_group_exit+0x125/0x310 [ 79.229503][ T6978] get_signal+0x40b/0x1ee0 [ 79.233918][ T6978] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 79.239894][ T6978] ? trace_hardirqs_on+0x5f/0x220 [ 79.244895][ T6978] ? __local_bh_enable_ip+0x159/0x250 [ 79.250241][ T6978] do_signal+0x82/0x2520 [ 79.254467][ T6978] ? sco_sock_release+0x290/0x290 [ 79.259466][ T6978] ? __sys_connect_file+0x4e/0x1a0 [ 79.264564][ T6978] ? copy_siginfo_to_user32+0xa0/0xa0 [ 79.270085][ T6978] ? __sys_connect_file+0x1a0/0x1a0 [ 79.275267][ T6978] ? lock_is_held_type+0xb0/0xe0 [ 79.280183][ T6978] ? __prepare_exit_to_usermode+0xcc/0x1f0 [ 79.285965][ T6978] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 79.291928][ T6978] __prepare_exit_to_usermode+0x156/0x1f0 [ 79.297646][ T6978] do_syscall_64+0x6c/0xe0 [ 79.302053][ T6978] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 79.307935][ T6978] RIP: 0033:0x446e69 [ 79.311810][ T6978] Code: Bad RIP value. [ 79.315857][ T6978] RSP: 002b:00007fff15a45008 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 79.324241][ T6978] RAX: fffffffffffffffc RBX: 0000000000000000 RCX: 0000000000446e69 [ 79.332198][ T6978] RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000004 [ 79.340158][ T6978] RBP: 0000000000000004 R08: 0000000000000002 R09: 00000003000100ff [ 79.348115][ T6978] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 [ 79.356057][ T6978] R13: 0000000000407ac0 R14: 0000000000000000 R15: 0000000000000000 [ 79.365008][ T6978] Kernel Offset: disabled [ 79.369334][ T6978] Rebooting in 86400 seconds..