Warning: Permanently added '10.128.15.205' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program [ 74.582811] audit: type=1400 audit(1546593832.703:36): avc: denied { map } for pid=8378 comm="syz-executor472" path="/root/syz-executor472457546" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 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 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 [ 75.929085] ================================================================== [ 75.936637] BUG: KASAN: use-after-free in hci_sock_release+0x154/0x3c0 [ 75.936653] Write of size 4 at addr ffff888098651620 by task syz-executor472/8899 [ 75.936655] [ 75.936665] CPU: 1 PID: 8899 Comm: syz-executor472 Not tainted 4.20.0+ #8 [ 75.936670] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 75.936673] Call Trace: [ 75.936685] dump_stack+0x1db/0x2d0 [ 75.936695] ? dump_stack_print_info.cold+0x20/0x20 [ 75.936706] ? hci_sock_release+0x154/0x3c0 [ 75.936733] print_address_description.cold+0x7c/0x20d [ 75.936740] ? hci_sock_release+0x154/0x3c0 [ 75.936748] ? hci_sock_release+0x154/0x3c0 [ 75.936756] kasan_report.cold+0x1b/0x40 [ 75.936775] ? hci_sock_release+0x154/0x3c0 [ 75.936786] check_memory_region+0x123/0x190 [ 75.951136] kasan_check_write+0x14/0x20 [ 75.951144] hci_sock_release+0x154/0x3c0 [ 75.951170] __sock_release+0xd3/0x250 [ 75.951179] sock_close+0x1b/0x30 [ 75.959695] __fput+0x3c5/0xb10 [ 75.959705] ? __sock_release+0x250/0x250 [ 75.959716] ? get_max_files+0x20/0x20 [ 75.971618] ? task_work_run+0x1bb/0x2b0 [ 75.971629] ? trace_hardirqs_off_caller+0x300/0x300 [ 75.971643] ? do_raw_spin_trylock+0x270/0x270 [ 75.984539] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 75.984551] ____fput+0x16/0x20 [ 75.984559] task_work_run+0x1f4/0x2b0 [ 75.984568] ? task_work_cancel+0x2c0/0x2c0 [ 75.984578] ? __close_fd+0x25f/0x3d0 [ 75.984588] ? do_syscall_64+0x8c/0x800 [ 75.984599] exit_to_usermode_loop+0x32a/0x3b0 [ 75.994167] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 75.994178] ? syscall_trace_enter+0x12a0/0x12a0 [ 75.994187] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 75.994200] do_syscall_64+0x696/0x800 [ 76.006916] ? syscall_return_slowpath+0x5f0/0x5f0 [ 76.006938] ? prepare_exit_to_usermode+0x232/0x3b0 [ 76.015388] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 76.015401] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.015409] RIP: 0033:0x446419 [ 76.015420] Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 7b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 76.015424] RSP: 002b:00007ff91cfd4da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 76.015446] RAX: 0000000000000000 RBX: 00000000006dbc28 RCX: 0000000000446419 [ 76.015454] RDX: 0000000000446419 RSI: 0000000000446419 RDI: 0000000000000004 [ 76.023460] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 76.023467] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 76.023472] R13: 6368762f7665642f R14: 00007ff91cfd59c0 R15: 00000000006dbd2c [ 76.023483] [ 76.042207] Allocated by task 8889: [ 76.042219] save_stack+0x45/0xd0 [ 76.042227] kasan_kmalloc+0xcf/0xe0 [ 76.042234] kmem_cache_alloc_trace+0x151/0x760 [ 76.042245] hci_alloc_dev+0x148/0x21a0 [ 76.042263] __vhci_create_device+0x101/0x5a0 [ 76.064571] vhci_write+0x2d0/0x470 [ 76.064580] __vfs_write+0x764/0xb40 [ 76.064587] vfs_write+0x20c/0x580 [ 76.064594] ksys_write+0x105/0x260 [ 76.064600] __x64_sys_write+0x73/0xb0 executing program [ 76.064608] do_syscall_64+0x1a3/0x800 [ 76.064616] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.064618] [ 76.064622] Freed by task 8888: [ 76.064632] save_stack+0x45/0xd0 [ 76.072844] kobject: 'rfkill320' (00000000e0cb8fff): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill320' [ 76.076676] __kasan_slab_free+0x102/0x150 [ 76.076685] kasan_slab_free+0xe/0x10 [ 76.076691] kfree+0xcf/0x230 [ 76.076700] bt_host_release+0x19/0x30 [ 76.076708] device_release+0x7d/0x210 [ 76.076716] kobject_put.cold+0x28f/0x2ec [ 76.076722] put_device+0x20/0x30 [ 76.076728] hci_free_dev+0x19/0x20 [ 76.076738] vhci_release+0x7e/0xf0 [ 76.145797] kobject: 'rfkill313' (00000000d3ffb8c5): kobject_uevent_env [ 76.149732] __fput+0x3c5/0xb10 [ 76.149740] ____fput+0x16/0x20 [ 76.149748] task_work_run+0x1f4/0x2b0 [ 76.149759] exit_to_usermode_loop+0x32a/0x3b0 [ 76.166979] kobject: 'rfkill313' (00000000d3ffb8c5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill313' [ 76.171548] do_syscall_64+0x696/0x800 [ 76.171558] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.171560] [ 76.171570] The buggy address belongs to the object at ffff8880986505c0 [ 76.171570] which belongs to the cache kmalloc-8k of size 8192 [ 76.171577] The buggy address is located 4192 bytes inside of [ 76.171577] 8192-byte region [ffff8880986505c0, ffff8880986525c0) [ 76.171583] The buggy address belongs to the page: [ 76.200459] kobject: 'rfkill313' (00000000d3ffb8c5): kobject_cleanup, parent (null) [ 76.203180] page:ffffea0002619400 count:1 mapcount:0 mapping:ffff88812c3f2080 index:0x0 compound_mapcount: 0 [ 76.203192] flags: 0x1fffc0000010200(slab|head) [ 76.203210] raw: 01fffc0000010200 ffffea0002616508 ffffea0002302f08 ffff88812c3f2080 [ 76.203223] raw: 0000000000000000 ffff8880986505c0 0000000100000001 0000000000000000 [ 76.220350] kobject: 'rfkill313' (00000000d3ffb8c5): calling ktype release [ 76.222472] page dumped because: kasan: bad access detected [ 76.222475] [ 76.222478] Memory state around the buggy address: [ 76.222497] ffff888098651500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.222521] ffff888098651580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.235475] kobject: 'rfkill313': free name [ 76.239005] >ffff888098651600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.239009] ^ [ 76.239016] ffff888098651680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.239021] ffff888098651700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.239024] ================================================================== [ 76.239027] Disabling lock debugging due to kernel taint [ 76.240656] Kernel panic - not syncing: panic_on_warn set ... [ 76.244061] kobject: 'rfkill314' (00000000f7fdc2b5): kobject_uevent_env [ 76.247351] CPU: 1 PID: 8899 Comm: syz-executor472 Tainted: G B 4.20.0+ #8 [ 76.247357] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 76.247360] Call Trace: [ 76.247381] dump_stack+0x1db/0x2d0 [ 76.269070] kobject: 'hci2' (00000000c2e76203): kobject_uevent_env [ 76.269355] ? dump_stack_print_info.cold+0x20/0x20 [ 76.279420] kobject: 'rfkill314' (00000000f7fdc2b5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill314' [ 76.281231] panic+0x2cb/0x589 [ 76.281243] ? add_taint.cold+0x16/0x16 [ 76.285882] kobject: 'hci2' (00000000c2e76203): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' [ 76.288304] ? hci_sock_release+0x154/0x3c0 [ 76.288312] ? preempt_schedule+0x4b/0x60 [ 76.288324] ? ___preempt_schedule+0x16/0x18 [ 76.297002] kobject: 'hci2' (00000000c2e76203): kobject_cleanup, parent (null) [ 76.298667] ? trace_hardirqs_on+0xb4/0x310 [ 76.298684] ? hci_sock_release+0x154/0x3c0 [ 76.298701] end_report+0x47/0x4f [ 76.304558] kobject: 'hci2' (00000000c2e76203): calling ktype release [ 76.305243] ? hci_sock_release+0x154/0x3c0 [ 76.310977] kobject: 'rfkill314' (00000000f7fdc2b5): kobject_cleanup, parent (null) [ 76.313688] kasan_report.cold+0xe/0x40 [ 76.313705] ? hci_sock_release+0x154/0x3c0 [ 76.313730] check_memory_region+0x123/0x190 [ 76.332199] kobject: 'hci2': free name [ 76.333692] kasan_check_write+0x14/0x20 [ 76.333718] hci_sock_release+0x154/0x3c0 [ 76.333742] __sock_release+0xd3/0x250 [ 76.343392] kobject: 'rfkill319' (00000000586ef248): kobject_uevent_env [ 76.348018] sock_close+0x1b/0x30 [ 76.348033] __fput+0x3c5/0xb10 [ 76.348049] ? __sock_release+0x250/0x250 [ 76.348062] ? get_max_files+0x20/0x20 [ 76.348085] ? task_work_run+0x1bb/0x2b0 [ 76.348099] ? trace_hardirqs_off_caller+0x300/0x300 [ 76.348116] ? do_raw_spin_trylock+0x270/0x270 [ 76.370685] kobject: 'rfkill314' (00000000f7fdc2b5): calling ktype release [ 76.373740] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 76.373757] ____fput+0x16/0x20 [ 76.373783] task_work_run+0x1f4/0x2b0 [ 76.402160] kobject: 'rfkill319' (00000000586ef248): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill319' [ 76.404176] ? task_work_cancel+0x2c0/0x2c0 [ 76.404192] ? __close_fd+0x25f/0x3d0 [ 76.404210] ? do_syscall_64+0x8c/0x800 [ 76.404226] exit_to_usermode_loop+0x32a/0x3b0 [ 76.404243] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.404260] ? syscall_trace_enter+0x12a0/0x12a0 [ 76.414191] kobject: 'rfkill319' (00000000586ef248): kobject_cleanup, parent (null) [ 76.416962] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 76.416982] do_syscall_64+0x696/0x800 [ 76.416998] ? syscall_return_slowpath+0x5f0/0x5f0 [ 76.421367] kobject: 'rfkill314': free name [ 76.423537] ? prepare_exit_to_usermode+0x232/0x3b0 [ 76.423555] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 76.423572] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.433717] kobject: 'rfkill319' (00000000586ef248): calling ktype release [ 76.438271] RIP: 0033:0x446419 [ 76.438287] Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 7b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 76.438294] RSP: 002b:00007ff91cfd4da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 76.438308] RAX: 0000000000000000 RBX: 00000000006dbc28 RCX: 0000000000446419 [ 76.438315] RDX: 0000000000446419 RSI: 0000000000446419 RDI: 0000000000000004 [ 76.438323] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 76.438331] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 76.438343] R13: 6368762f7665642f R14: 00007ff91cfd59c0 R15: 00000000006dbd2c [ 76.453515] kobject: 'rfkill319': free name [ 76.455256] Kernel Offset: disabled [ 76.853563] Rebooting in 86400 seconds..