[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 50.619566] kauditd_printk_skb: 4 callbacks suppressed [ 50.619581] audit: type=1400 audit(1561939998.985:35): avc: denied { map } for pid=7910 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 272.927861] audit: type=1400 audit(1561940221.295:36): avc: denied { map } for pid=7918 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.149' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 498.364718] audit: type=1400 audit(1561940446.725:37): avc: denied { map } for pid=7925 comm="syz-executor171" path="/root/syz-executor171668231" 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 [ 498.435721] kobject_add_internal failed for hci3 (error: -2 parent: bluetooth) [ 498.454614] Bluetooth: Can't register HCI device [ 498.466312] kobject_add_internal failed for hci5 (error: -2 parent: bluetooth) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 498.499308] Bluetooth: Can't register HCI device executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 499.009537] ------------[ cut here ]------------ [ 499.019262] refcount_t: increment on 0; use-after-free. [ 499.025379] WARNING: CPU: 0 PID: 8113 at lib/refcount.c:153 refcount_inc_checked+0x61/0x70 [ 499.033775] Kernel panic - not syncing: panic_on_warn set ... [ 499.033775] [ 499.041125] CPU: 0 PID: 8113 Comm: syz-executor171 Not tainted 4.19.56 #28 [ 499.048124] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 499.057495] Call Trace: [ 499.060111] dump_stack+0x172/0x1f0 [ 499.063788] panic+0x263/0x507 [ 499.066965] ? __warn_printk+0xf3/0xf3 [ 499.070847] ? refcount_inc_checked+0x61/0x70 [ 499.075362] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 499.081035] ? __warn.cold+0x5/0x4a [ 499.084862] ? __warn+0xe8/0x1d0 [ 499.088218] ? refcount_inc_checked+0x61/0x70 [ 499.092706] __warn.cold+0x20/0x4a [ 499.096241] ? refcount_inc_checked+0x61/0x70 [ 499.100811] report_bug+0x263/0x2b0 [ 499.104462] do_error_trap+0x204/0x360 [ 499.108337] ? math_error+0x340/0x340 [ 499.112162] ? vprintk_emit+0x264/0x690 [ 499.116126] ? vprintk_emit+0x1ab/0x690 [ 499.120096] ? error_entry+0x76/0xd0 [ 499.123955] ? trace_hardirqs_off_caller+0x65/0x220 [ 499.128955] ? vprintk_default+0x28/0x30 [ 499.133034] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 499.138051] do_invalid_op+0x1b/0x20 [ 499.141753] invalid_op+0x14/0x20 [ 499.145242] RIP: 0010:refcount_inc_checked+0x61/0x70 [ 499.150340] Code: 1d 1d 74 12 06 31 ff 89 de e8 9b 5f 47 fe 84 db 75 dd e8 52 5e 47 fe 48 c7 c7 c0 95 81 87 c6 05 fd 73 12 06 01 e8 8d 37 1b fe <0f> 0b eb c1 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 [ 499.169550] RSP: 0018:ffff88807f427920 EFLAGS: 00010286 [ 499.174953] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 499.182204] RDX: 0000000000000000 RSI: ffffffff8155b1c6 RDI: ffffed100fe84f16 [ 499.189611] RBP: ffff88807f427930 R08: ffff88808ad62580 R09: ffffed1015d03ee3 [ 499.197004] R10: ffffed1015d03ee2 R11: ffff8880ae81f717 R12: ffff8880a7fe5978 [ 499.204356] R13: ffff8880a8fe6720 R14: ffff8880a8fe6718 R15: ffff8880a7fe58f8 [ 499.211786] ? vprintk_func+0x86/0x189 [ 499.226646] kobject_get+0x66/0xc0 [ 499.230221] kobject_add_internal+0x14f/0x380 [ 499.234819] ? kfree_const+0x5e/0x70 [ 499.238563] kobject_add+0x150/0x1c0 [ 499.242385] ? kset_create_and_add+0x1a0/0x1a0 [ 499.247022] ? rcu_read_lock_sched_held+0x110/0x130 [ 499.252104] ? kmem_cache_alloc_trace+0x348/0x760 [ 499.257016] get_device_parent.isra.0+0x415/0x570 [ 499.261890] device_add+0x2f4/0x1760 [ 499.265631] ? device_initialize+0x440/0x440 [ 499.270187] ? get_device_parent.isra.0+0x570/0x570 [ 499.275264] hci_register_dev+0x304/0x880 [ 499.279498] __vhci_create_device+0x2d0/0x5a0 [ 499.284014] vhci_write+0x2d6/0x470 [ 499.287680] __vfs_write+0x587/0x810 [ 499.291413] ? kernel_read+0x120/0x120 [ 499.295368] ? __inode_security_revalidate+0xda/0x120 [ 499.300718] ? selinux_file_permission+0x92/0x550 [ 499.305587] ? security_file_permission+0x89/0x230 [ 499.310539] ? rw_verify_area+0x118/0x360 [ 499.314709] vfs_write+0x20c/0x560 [ 499.318270] ksys_write+0x14f/0x2d0 [ 499.321915] ? __ia32_sys_read+0xb0/0xb0 [ 499.325999] ? do_syscall_64+0x26/0x620 [ 499.330102] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 499.335609] ? do_syscall_64+0x26/0x620 [ 499.339611] __x64_sys_write+0x73/0xb0 [ 499.343697] do_syscall_64+0xfd/0x620 [ 499.347523] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 499.352730] RIP: 0033:0x441269 [ 499.355937] Code: e8 ac 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 499.374862] RSP: 002b:00007ffe86852678 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 499.382599] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441269 [ 499.389887] RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 [ 499.397173] RBP: 0000000000079d1d R08: 00000000004002c8 R09: 00000000004002c8 [ 499.404457] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401fe0 [ 499.411839] R13: 0000000000402070 R14: 0000000000000000 R15: 0000000000000000 [ 499.420939] Kernel Offset: disabled [ 499.424663] Rebooting in 86400 seconds..