Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 9.556456][ T22] audit: type=1400 audit(1583604421.395:10): avc: denied { watch } for pid=1798 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 [ 9.563156][ T22] audit: type=1400 audit(1583604421.395:11): avc: denied { watch } for pid=1798 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: [ 14.462536][ T22] audit: type=1400 audit(1583604426.295:12): avc: denied { map } for pid=1864 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.0.156' (ECDSA) to the list of known hosts. [ 20.617261][ T22] audit: type=1400 audit(1583604432.455:13): avc: denied { map } for pid=1882 comm="syz-executor077" path="/root/syz-executor077102656" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 20.630120][ T1890] cgroup1: Unknown subsys name 'perf_event' [ 20.648947][ T1889] cgroup1: Unknown subsys name 'perf_event' [ 20.652350][ T1891] cgroup1: Unknown subsys name 'perf_event' [ 20.656651][ T1889] cgroup1: Unknown subsys name 'net_cls' [ 20.662432][ T1892] cgroup1: Unknown subsys name 'perf_event' [ 20.670577][ T1890] cgroup1: Unknown subsys name 'net_cls' [ 20.676915][ T1893] cgroup1: Unknown subsys name 'perf_event' [ 20.681485][ T1894] cgroup1: Unknown subsys name 'perf_event' [ 20.687944][ T1893] cgroup1: Unknown subsys name 'net_cls' [ 20.691453][ T1894] cgroup1: Unknown subsys name 'net_cls' [ 20.696934][ T1891] cgroup1: Unknown subsys name 'net_cls' [ 20.708144][ T1892] cgroup1: Unknown subsys name 'net_cls' [ 20.793565][ T22] audit: type=1400 audit(1583604432.625:14): avc: denied { create } for pid=1890 comm="syz-executor077" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 20.821699][ T22] audit: type=1400 audit(1583604432.625:15): avc: denied { write } for pid=1890 comm="syz-executor077" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 20.859363][ T22] audit: type=1400 audit(1583604432.625:16): avc: denied { read } for pid=1890 comm="syz-executor077" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 executing program executing program [ 24.563379][ T22] audit: type=1400 audit(1583604436.395:17): avc: denied { associate } for pid=1889 comm="syz-executor077" name="syz2" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem 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 [ 26.625938][ T4522] ================================================================== [ 26.634045][ T4522] BUG: KASAN: use-after-free in free_netdev+0x186/0x300 [ 26.640968][ T4522] Read of size 8 at addr ffff8881d58c34f0 by task syz-executor077/4522 [ 26.649174][ T4522] [ 26.651483][ T4522] CPU: 0 PID: 4522 Comm: syz-executor077 Not tainted 5.4.24-syzkaller-00181-g3334f0da669e #0 [ 26.661597][ T4522] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.671632][ T4522] Call Trace: [ 26.674915][ T4522] dump_stack+0x1b0/0x228 [ 26.679221][ T4522] ? show_regs_print_info+0x18/0x18 [ 26.684392][ T4522] ? vprintk_func+0x105/0x110 [ 26.689043][ T4522] ? printk+0xc0/0x109 [ 26.693086][ T4522] print_address_description+0x96/0x5d0 [ 26.698607][ T4522] ? devkmsg_release+0x127/0x127 [ 26.703517][ T4522] ? call_rcu+0x10/0x10 [ 26.707648][ T4522] __kasan_report+0x14b/0x1c0 [ 26.712303][ T4522] ? free_netdev+0x186/0x300 [ 26.716868][ T4522] kasan_report+0x26/0x50 [ 26.721171][ T4522] __asan_report_load8_noabort+0x14/0x20 [ 26.726778][ T4522] free_netdev+0x186/0x300 [ 26.731185][ T4522] netdev_run_todo+0xbc4/0xe00 [ 26.735937][ T4522] ? netdev_refcnt_read+0x1c0/0x1c0 [ 26.741128][ T4522] ? mutex_trylock+0xb0/0xb0 [ 26.745742][ T4522] ? netlink_net_capable+0x124/0x160 [ 26.751023][ T4522] rtnetlink_rcv_msg+0x963/0xc20 [ 26.755938][ T4522] ? is_bpf_text_address+0x2c8/0x2e0 [ 26.761207][ T4522] ? __kernel_text_address+0x9a/0x110 [ 26.766566][ T4522] ? rtnetlink_bind+0x80/0x80 [ 26.771218][ T4522] ? arch_stack_walk+0x98/0xe0 [ 26.776064][ T4522] ? __rcu_read_lock+0x50/0x50 [ 26.780808][ T4522] ? avc_has_perm_noaudit+0x2fc/0x3f0 [ 26.786336][ T4522] ? rhashtable_jhash2+0x1f1/0x330 [ 26.791433][ T4522] ? jhash+0x750/0x750 [ 26.795487][ T4522] ? rht_key_hashfn+0x157/0x240 [ 26.800315][ T4522] ? deferred_put_nlk_sk+0x200/0x200 [ 26.805577][ T4522] ? __alloc_skb+0x109/0x540 [ 26.810147][ T4522] ? jhash+0x750/0x750 [ 26.814197][ T4522] ? netlink_hash+0xd0/0xd0 [ 26.818673][ T4522] ? avc_has_perm+0x15f/0x260 [ 26.823324][ T4522] ? __rcu_read_lock+0x50/0x50 [ 26.828060][ T4522] netlink_rcv_skb+0x1f0/0x460 [ 26.832799][ T4522] ? rtnetlink_bind+0x80/0x80 [ 26.837446][ T4522] ? netlink_ack+0xa80/0xa80 [ 26.842008][ T4522] ? netlink_autobind+0x1c0/0x1c0 [ 26.847002][ T4522] ? __rcu_read_lock+0x50/0x50 [ 26.851748][ T4522] ? selinux_vm_enough_memory+0x160/0x160 [ 26.857442][ T4522] rtnetlink_rcv+0x1c/0x20 [ 26.861835][ T4522] netlink_unicast+0x87c/0xa20 [ 26.866572][ T4522] ? netlink_detachskb+0x60/0x60 [ 26.871484][ T4522] ? security_netlink_send+0xab/0xc0 [ 26.876740][ T4522] netlink_sendmsg+0x9a7/0xd40 [ 26.881489][ T4522] ? netlink_getsockopt+0x900/0x900 [ 26.886662][ T4522] ? security_socket_sendmsg+0xad/0xc0 [ 26.892094][ T4522] ? netlink_getsockopt+0x900/0x900 [ 26.897275][ T4522] ____sys_sendmsg+0x56f/0x860 [ 26.902011][ T4522] ? __sys_sendmsg_sock+0x2a0/0x2a0 [ 26.907183][ T4522] ? __fdget+0x17c/0x200 [ 26.911397][ T4522] __sys_sendmsg+0x26a/0x350 [ 26.915963][ T4522] ? errseq_set+0x102/0x140 [ 26.920440][ T4522] ? ____sys_sendmsg+0x860/0x860 [ 26.925362][ T4522] ? __rcu_read_lock+0x50/0x50 [ 26.930097][ T4522] ? alloc_file_pseudo+0x282/0x310 [ 26.935182][ T4522] ? __kasan_check_write+0x14/0x20 [ 26.940275][ T4522] ? __kasan_check_write+0x14/0x20 [ 26.945535][ T4522] ? __fpregs_load_activate+0x2fc/0x3b0 [ 26.951142][ T4522] ? switch_fpu_return+0x10/0x10 [ 26.956071][ T4522] ? __kasan_check_read+0x11/0x20 [ 26.961075][ T4522] ? fput_many+0x47/0x1a0 [ 26.965381][ T4522] __x64_sys_sendmsg+0x7f/0x90 [ 26.970122][ T4522] do_syscall_64+0xc0/0x100 [ 26.974606][ T4522] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 26.980493][ T4522] RIP: 0033:0x44b7b9 [ 26.984364][ T4522] Code: e8 7c 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 1b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 27.003948][ T4522] RSP: 002b:00007fc3f2249ce8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.012351][ T4522] RAX: ffffffffffffffda RBX: 00000000006e8a28 RCX: 000000000044b7b9 [ 27.020297][ T4522] RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005 [ 27.028241][ T4522] RBP: 00000000006e8a20 R08: 0000000000000000 R09: 0000000000000000 [ 27.036193][ T4522] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006e8a2c [ 27.044140][ T4522] R13: 00007ffc7371e2cf R14: 00007fc3f224a9c0 R15: 20c49ba5e353f7cf [ 27.052114][ T4522] [ 27.054435][ T4522] Allocated by task 4522: [ 27.058756][ T4522] __kasan_kmalloc+0x117/0x1b0 [ 27.063499][ T4522] kasan_kmalloc+0x9/0x10 [ 27.067963][ T4522] __kmalloc+0x102/0x310 [ 27.072180][ T4522] sk_prot_alloc+0x11c/0x2f0 [ 27.076741][ T4522] sk_alloc+0x35/0x300 [ 27.080782][ T4522] tun_chr_open+0x7b/0x4a0 [ 27.085173][ T4522] misc_open+0x3ea/0x440 [ 27.089386][ T4522] chrdev_open+0x60a/0x670 [ 27.093775][ T4522] do_dentry_open+0x8f7/0x1070 [ 27.098512][ T4522] vfs_open+0x73/0x80 [ 27.102470][ T4522] path_openat+0x1681/0x42d0 [ 27.107031][ T4522] do_filp_open+0x1f7/0x430 [ 27.111507][ T4522] do_sys_open+0x36f/0x7a0 [ 27.115895][ T4522] __x64_sys_openat+0xa2/0xb0 [ 27.120547][ T4522] do_syscall_64+0xc0/0x100 [ 27.125025][ T4522] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 27.130884][ T4522] [ 27.133186][ T4522] Freed by task 4521: [ 27.137140][ T4522] __kasan_slab_free+0x168/0x220 [ 27.142060][ T4522] kasan_slab_free+0xe/0x10 [ 27.146536][ T4522] kfree+0x170/0x6d0 [ 27.150406][ T4522] __sk_destruct+0x45f/0x4e0 [ 27.154970][ T4522] __sk_free+0x35d/0x430 [ 27.159184][ T4522] sk_free+0x45/0x50 [ 27.163050][ T4522] __tun_detach+0x15d0/0x1a40 [ 27.167714][ T4522] tun_chr_close+0xb8/0xd0 [ 27.172111][ T4522] __fput+0x295/0x710 [ 27.176069][ T4522] ____fput+0x15/0x20 [ 27.180026][ T4522] task_work_run+0x176/0x1a0 [ 27.184587][ T4522] prepare_exit_to_usermode+0x2d8/0x370 [ 27.190113][ T4522] syscall_return_slowpath+0x6f/0x500 [ 27.195460][ T4522] do_syscall_64+0xe8/0x100 [ 27.199943][ T4522] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 27.205805][ T4522] [ 27.208108][ T4522] The buggy address belongs to the object at ffff8881d58c3000 [ 27.208108][ T4522] which belongs to the cache kmalloc-2k of size 2048 [ 27.222264][ T4522] The buggy address is located 1264 bytes inside of [ 27.222264][ T4522] 2048-byte region [ffff8881d58c3000, ffff8881d58c3800) [ 27.235695][ T4522] The buggy address belongs to the page: [ 27.241321][ T4522] page:ffffea0007563000 refcount:1 mapcount:0 mapping:ffff8881da802800 index:0x0 compound_mapcount: 0 [ 27.252228][ T4522] flags: 0x8000000000010200(slab|head) [ 27.257663][ T4522] raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881da802800 [ 27.266222][ T4522] raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 [ 27.274786][ T4522] page dumped because: kasan: bad access detected [ 27.281179][ T4522] [ 27.283491][ T4522] Memory state around the buggy address: [ 27.289097][ T4522] ffff8881d58c3380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.297143][ T4522] ffff8881d58c3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.305179][ T4522] >ffff8881d58c3480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.313221][ T4522] ^ executing program [ 27.320912][ T4522] ffff8881d58c3500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.329204][ T4522] ffff8881d58c3580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.337234][ T4522] ================================================================== [ 27.345264][ T4522] 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