Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 8.479356][ T22] audit: type=1400 audit(1583874543.734:10): avc: denied { watch } for pid=1802 comm="restorecond" path="/root/.ssh" dev="sda1" ino=16179 scontext=system_u:system_r:kernel_t:s0 tcontext=unconfined_u:object_r:ssh_home_t:s0 tclass=dir permissive=1 [ 8.484183][ T22] audit: type=1400 audit(1583874543.734:11): avc: denied { watch } for pid=1802 comm="restorecond" path="/etc/selinux/restorecond.conf" dev="sda1" ino=2280 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 13.728363][ T22] audit: type=1400 audit(1583874548.984:12): avc: denied { map } for pid=1869 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 Warning: Permanently added '10.128.1.61' (ECDSA) to the list of known hosts. [ 19.800139][ T22] audit: type=1400 audit(1583874555.054:13): avc: denied { map } for pid=1887 comm="syz-executor186" path="/root/syz-executor186949128" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 19.809491][ T1896] cgroup1: Unknown subsys name 'perf_event' [ 19.831186][ T1894] cgroup1: Unknown subsys name 'perf_event' [ 19.834693][ T1897] cgroup1: Unknown subsys name 'perf_event' [ 19.840606][ T1895] cgroup1: Unknown subsys name 'perf_event' [ 19.845536][ T1898] cgroup1: Unknown subsys name 'perf_event' [ 19.851354][ T1894] cgroup1: Unknown subsys name 'net_cls' [ 19.857463][ T1899] cgroup1: Unknown subsys name 'perf_event' [ 19.862815][ T1895] cgroup1: Unknown subsys name 'net_cls' [ 19.868765][ T1897] cgroup1: Unknown subsys name 'net_cls' [ 19.880117][ T1898] cgroup1: Unknown subsys name 'net_cls' [ 19.886101][ T1899] cgroup1: Unknown subsys name 'net_cls' executing program executing program executing program executing program executing program executing program executing program [ 19.890350][ T22] audit: type=1400 audit(1583874555.144:14): avc: denied { associate } for pid=1894 comm="syz-executor186" name="syz3" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1 [ 19.905370][ T1896] cgroup1: Unknown subsys name 'net_cls' executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 28.515751][ T2569] ================================================================== [ 28.523893][ T2569] BUG: KASAN: use-after-free in free_netdev+0x186/0x300 [ 28.530821][ T2569] Read of size 8 at addr ffff8881c79574f0 by task syz-executor186/2569 [ 28.539032][ T2569] [ 28.541340][ T2569] CPU: 0 PID: 2569 Comm: syz-executor186 Not tainted 5.4.24-syzkaller-00194-ge15f370e9136 #0 [ 28.551456][ T2569] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.561486][ T2569] Call Trace: [ 28.564786][ T2569] dump_stack+0x1b0/0x228 [ 28.569106][ T2569] ? show_regs_print_info+0x18/0x18 [ 28.574297][ T2569] ? vprintk_func+0x105/0x110 [ 28.578972][ T2569] ? printk+0xc0/0x109 [ 28.583048][ T2569] print_address_description+0x96/0x5d0 [ 28.588567][ T2569] ? devkmsg_release+0x127/0x127 [ 28.593480][ T2569] ? call_rcu+0x10/0x10 [ 28.597608][ T2569] __kasan_report+0x14b/0x1c0 [ 28.602268][ T2569] ? free_netdev+0x186/0x300 [ 28.606840][ T2569] kasan_report+0x26/0x50 [ 28.611152][ T2569] __asan_report_load8_noabort+0x14/0x20 [ 28.616752][ T2569] free_netdev+0x186/0x300 [ 28.621136][ T2569] netdev_run_todo+0xbc4/0xe00 [ 28.625872][ T2569] ? netdev_refcnt_read+0x1c0/0x1c0 [ 28.631040][ T2569] ? mutex_trylock+0xb0/0xb0 [ 28.635602][ T2569] ? netlink_net_capable+0x124/0x160 [ 28.640866][ T2569] rtnetlink_rcv_msg+0x963/0xc20 [ 28.645775][ T2569] ? is_bpf_text_address+0x2c8/0x2e0 [ 28.651047][ T2569] ? __kernel_text_address+0x9a/0x110 [ 28.656407][ T2569] ? rtnetlink_bind+0x80/0x80 [ 28.661063][ T2569] ? arch_stack_walk+0x98/0xe0 [ 28.665806][ T2569] ? __rcu_read_lock+0x50/0x50 [ 28.670562][ T2569] ? avc_has_perm_noaudit+0x2fc/0x3f0 [ 28.675922][ T2569] ? rhashtable_jhash2+0x1f1/0x330 [ 28.681014][ T2569] ? jhash+0x750/0x750 [ 28.685067][ T2569] ? rht_key_hashfn+0x157/0x240 [ 28.689894][ T2569] ? deferred_put_nlk_sk+0x200/0x200 [ 28.695154][ T2569] ? __alloc_skb+0x109/0x540 [ 28.699718][ T2569] ? jhash+0x750/0x750 [ 28.703759][ T2569] ? netlink_hash+0xd0/0xd0 [ 28.708245][ T2569] ? avc_has_perm+0x15f/0x260 [ 28.712940][ T2569] ? __rcu_read_lock+0x50/0x50 [ 28.717762][ T2569] netlink_rcv_skb+0x1f0/0x460 [ 28.722497][ T2569] ? rtnetlink_bind+0x80/0x80 [ 28.727153][ T2569] ? netlink_ack+0xa80/0xa80 [ 28.731730][ T2569] ? netlink_autobind+0x1c0/0x1c0 [ 28.736726][ T2569] ? __rcu_read_lock+0x50/0x50 [ 28.741461][ T2569] ? selinux_vm_enough_memory+0x160/0x160 [ 28.747162][ T2569] rtnetlink_rcv+0x1c/0x20 [ 28.751557][ T2569] netlink_unicast+0x87c/0xa20 [ 28.756291][ T2569] ? netlink_detachskb+0x60/0x60 [ 28.761210][ T2569] ? security_netlink_send+0xab/0xc0 [ 28.766468][ T2569] netlink_sendmsg+0x9a7/0xd40 [ 28.771203][ T2569] ? netlink_getsockopt+0x900/0x900 [ 28.776388][ T2569] ? security_socket_sendmsg+0xad/0xc0 [ 28.781832][ T2569] ? netlink_getsockopt+0x900/0x900 [ 28.787018][ T2569] ____sys_sendmsg+0x56f/0x860 [ 28.791777][ T2569] ? __sys_sendmsg_sock+0x2a0/0x2a0 [ 28.796960][ T2569] ? __fdget+0x17c/0x200 [ 28.801180][ T2569] __sys_sendmsg+0x26a/0x350 [ 28.805758][ T2569] ? ____sys_sendmsg+0x860/0x860 [ 28.810682][ T2569] ? tun_chr_poll+0x620/0x620 [ 28.815333][ T2569] ? do_vfs_ioctl+0x757/0x1700 [ 28.820070][ T2569] ? selinux_file_ioctl+0x6e4/0x920 [ 28.825242][ T2569] ? ioctl_preallocate+0x240/0x240 [ 28.830327][ T2569] ? __kasan_check_write+0x14/0x20 [ 28.835427][ T2569] ? __kasan_check_write+0x14/0x20 [ 28.840510][ T2569] ? __fpregs_load_activate+0x2fc/0x3b0 [ 28.846027][ T2569] ? switch_fpu_return+0x10/0x10 [ 28.850945][ T2569] ? __kasan_check_read+0x11/0x20 [ 28.855950][ T2569] ? fput_many+0x47/0x1a0 [ 28.860251][ T2569] __x64_sys_sendmsg+0x7f/0x90 [ 28.865128][ T2569] do_syscall_64+0xc0/0x100 [ 28.869612][ T2569] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 28.875588][ T2569] RIP: 0033:0x447519 [ 28.879462][ T2569] Code: e8 3c e6 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 ab 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 28.899041][ T2569] RSP: 002b:00007fdcb92c6d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.907428][ T2569] RAX: ffffffffffffffda RBX: 00000000006ddc68 RCX: 0000000000447519 [ 28.915394][ T2569] RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005 [ 28.923359][ T2569] RBP: 00000000006ddc60 R08: 0000000000000000 R09: 0000000000000000 [ 28.931318][ T2569] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc6c [ 28.939278][ T2569] R13: 0000003065736f72 R14: 0000000000000000 R15: 0000000000000000 [ 28.947238][ T2569] [ 28.949551][ T2569] Allocated by task 2569: [ 28.953856][ T2569] __kasan_kmalloc+0x117/0x1b0 [ 28.958597][ T2569] kasan_kmalloc+0x9/0x10 [ 28.962906][ T2569] __kmalloc+0x102/0x310 [ 28.967122][ T2569] sk_prot_alloc+0x11c/0x2f0 [ 28.971687][ T2569] sk_alloc+0x35/0x300 [ 28.975727][ T2569] tun_chr_open+0x7b/0x4a0 [ 28.980112][ T2569] misc_open+0x3ea/0x440 [ 28.984335][ T2569] chrdev_open+0x60a/0x670 [ 28.988732][ T2569] do_dentry_open+0x8f7/0x1070 [ 28.993468][ T2569] vfs_open+0x73/0x80 [ 28.997418][ T2569] path_openat+0x1681/0x42d0 [ 29.001976][ T2569] do_filp_open+0x1f7/0x430 [ 29.006450][ T2569] do_sys_open+0x36f/0x7a0 [ 29.010841][ T2569] __x64_sys_openat+0xa2/0xb0 [ 29.015590][ T2569] do_syscall_64+0xc0/0x100 [ 29.020077][ T2569] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 29.025939][ T2569] [ 29.028242][ T2569] Freed by task 2568: [ 29.032203][ T2569] __kasan_slab_free+0x168/0x220 [ 29.037252][ T2569] kasan_slab_free+0xe/0x10 [ 29.041731][ T2569] kfree+0x170/0x6d0 [ 29.045608][ T2569] __sk_destruct+0x45f/0x4e0 [ 29.050185][ T2569] __sk_free+0x35d/0x430 [ 29.054406][ T2569] sk_free+0x45/0x50 [ 29.058288][ T2569] __tun_detach+0x15d0/0x1a40 [ 29.062938][ T2569] tun_chr_close+0xb8/0xd0 [ 29.067325][ T2569] __fput+0x295/0x710 [ 29.071288][ T2569] ____fput+0x15/0x20 [ 29.075253][ T2569] task_work_run+0x176/0x1a0 [ 29.079815][ T2569] prepare_exit_to_usermode+0x2d8/0x370 [ 29.085332][ T2569] syscall_return_slowpath+0x6f/0x500 [ 29.090680][ T2569] do_syscall_64+0xe8/0x100 [ 29.095154][ T2569] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 29.101011][ T2569] [ 29.103418][ T2569] The buggy address belongs to the object at ffff8881c7957000 [ 29.103418][ T2569] which belongs to the cache kmalloc-2k of size 2048 [ 29.117467][ T2569] The buggy address is located 1264 bytes inside of [ 29.117467][ T2569] 2048-byte region [ffff8881c7957000, ffff8881c7957800) [ 29.130885][ T2569] The buggy address belongs to the page: [ 29.136505][ T2569] page:ffffea00071e5400 refcount:1 mapcount:0 mapping:ffff8881da802800 index:0x0 compound_mapcount: 0 [ 29.147402][ T2569] flags: 0x8000000000010200(slab|head) [ 29.152833][ T2569] raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881da802800 [ 29.161410][ T2569] raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 [ 29.175435][ T2569] page dumped because: kasan: bad access detected [ 29.181814][ T2569] [ 29.184116][ T2569] Memory state around the buggy address: [ 29.189719][ T2569] ffff8881c7957380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.197751][ T2569] ffff8881c7957400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.205794][ T2569] >ffff8881c7957480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program [ 29.213830][ T2569] ^ [ 29.221523][ T2569] ffff8881c7957500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.229554][ T2569] ffff8881c7957580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.237676][ T2569] ================================================================== [ 29.245715][ T2569] Disabling lock debugging due to kernel taint executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program