Warning: Permanently added '10.128.0.18' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program [ 19.082999][ T22] audit: type=1400 audit(1583589516.272:13): avc: denied { map } for pid=1879 comm="syz-executor743" path="/root/syz-executor743187551" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 20.467978][ T1976] ================================================================== [ 20.476102][ T1976] BUG: KASAN: use-after-free in free_netdev+0x186/0x300 [ 20.483045][ T1976] Read of size 8 at addr ffff8881ce8794f0 by task syz-executor743/1976 [ 20.491261][ T1976] [ 20.493580][ T1976] CPU: 1 PID: 1976 Comm: syz-executor743 Not tainted 5.4.24-syzkaller-00181-g3334f0da669e #0 [ 20.503707][ T1976] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.513743][ T1976] Call Trace: [ 20.517023][ T1976] dump_stack+0x1b0/0x228 [ 20.521340][ T1976] ? show_regs_print_info+0x18/0x18 [ 20.526530][ T1976] ? vprintk_func+0x105/0x110 [ 20.531193][ T1976] ? printk+0xc0/0x109 [ 20.535248][ T1976] print_address_description+0x96/0x5d0 [ 20.540781][ T1976] ? devkmsg_release+0x127/0x127 [ 20.545712][ T1976] ? call_rcu+0x10/0x10 [ 20.549854][ T1976] __kasan_report+0x14b/0x1c0 [ 20.554525][ T1976] ? free_netdev+0x186/0x300 [ 20.559099][ T1976] kasan_report+0x26/0x50 [ 20.563421][ T1976] __asan_report_load8_noabort+0x14/0x20 [ 20.569037][ T1976] free_netdev+0x186/0x300 [ 20.573442][ T1976] netdev_run_todo+0xbc4/0xe00 [ 20.578203][ T1976] ? netdev_refcnt_read+0x1c0/0x1c0 [ 20.583386][ T1976] ? mutex_trylock+0xb0/0xb0 [ 20.587964][ T1976] ? netlink_net_capable+0x124/0x160 [ 20.593250][ T1976] rtnetlink_rcv_msg+0x963/0xc20 [ 20.598176][ T1976] ? is_bpf_text_address+0x2c8/0x2e0 [ 20.603459][ T1976] ? __kernel_text_address+0x9a/0x110 [ 20.608818][ T1976] ? rtnetlink_bind+0x80/0x80 [ 20.613483][ T1976] ? arch_stack_walk+0x98/0xe0 [ 20.618230][ T1976] ? __rcu_read_lock+0x50/0x50 [ 20.622985][ T1976] ? avc_has_perm_noaudit+0x2fc/0x3f0 [ 20.628357][ T1976] ? rhashtable_jhash2+0x1f1/0x330 [ 20.633468][ T1976] ? jhash+0x750/0x750 [ 20.637517][ T1976] ? rht_key_hashfn+0x157/0x240 [ 20.642353][ T1976] ? deferred_put_nlk_sk+0x200/0x200 [ 20.647618][ T1976] ? __alloc_skb+0x109/0x540 [ 20.652194][ T1976] ? jhash+0x750/0x750 [ 20.656246][ T1976] ? netlink_hash+0xd0/0xd0 [ 20.660738][ T1976] ? avc_has_perm+0x15f/0x260 [ 20.665406][ T1976] ? __rcu_read_lock+0x50/0x50 [ 20.670162][ T1976] netlink_rcv_skb+0x1f0/0x460 [ 20.674925][ T1976] ? rtnetlink_bind+0x80/0x80 [ 20.679589][ T1976] ? netlink_ack+0xa80/0xa80 [ 20.684164][ T1976] ? netlink_autobind+0x1c0/0x1c0 [ 20.689169][ T1976] ? __rcu_read_lock+0x50/0x50 [ 20.693918][ T1976] ? selinux_vm_enough_memory+0x160/0x160 [ 20.699653][ T1976] rtnetlink_rcv+0x1c/0x20 [ 20.704052][ T1976] netlink_unicast+0x87c/0xa20 [ 20.708804][ T1976] ? netlink_detachskb+0x60/0x60 [ 20.713729][ T1976] ? security_netlink_send+0xab/0xc0 [ 20.719001][ T1976] netlink_sendmsg+0x9a7/0xd40 [ 20.723757][ T1976] ? netlink_getsockopt+0x900/0x900 [ 20.728942][ T1976] ? security_socket_sendmsg+0xad/0xc0 [ 20.734381][ T1976] ? netlink_getsockopt+0x900/0x900 [ 20.739565][ T1976] ____sys_sendmsg+0x56f/0x860 [ 20.744313][ T1976] ? __sys_sendmsg_sock+0x2a0/0x2a0 [ 20.749507][ T1976] ? __fdget+0x17c/0x200 [ 20.753738][ T1976] __sys_sendmsg+0x26a/0x350 [ 20.758319][ T1976] ? errseq_set+0x102/0x140 [ 20.762804][ T1976] ? ____sys_sendmsg+0x860/0x860 [ 20.767723][ T1976] ? __rcu_read_lock+0x50/0x50 [ 20.772469][ T1976] ? alloc_file_pseudo+0x282/0x310 [ 20.777560][ T1976] ? __kasan_check_write+0x14/0x20 [ 20.782653][ T1976] ? __kasan_check_write+0x14/0x20 [ 20.787746][ T1976] ? __fpregs_load_activate+0x2fc/0x3b0 [ 20.793273][ T1976] ? switch_fpu_return+0x10/0x10 [ 20.798192][ T1976] ? __kasan_check_read+0x11/0x20 [ 20.803199][ T1976] ? fput_many+0x47/0x1a0 [ 20.807510][ T1976] __x64_sys_sendmsg+0x7f/0x90 [ 20.812260][ T1976] do_syscall_64+0xc0/0x100 [ 20.816755][ T1976] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 20.822716][ T1976] RIP: 0033:0x447339 [ 20.826597][ T1976] Code: e8 8c e7 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 fb 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 20.846181][ T1976] RSP: 002b:00007f813a91bce8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 20.854576][ T1976] RAX: ffffffffffffffda RBX: 00000000006dcc68 RCX: 0000000000447339 [ 20.862537][ T1976] RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005 [ 20.870488][ T1976] RBP: 00000000006dcc60 R08: 0000000000000000 R09: 0000000000000000 [ 20.878449][ T1976] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc6c [ 20.886402][ T1976] R13: 00007ffe8996689f R14: 00007f813a91c9c0 R15: 00000000006dcc6c [ 20.894358][ T1976] [ 20.896670][ T1976] Allocated by task 1976: [ 20.900989][ T1976] __kasan_kmalloc+0x117/0x1b0 [ 20.905738][ T1976] kasan_kmalloc+0x9/0x10 [ 20.910053][ T1976] __kmalloc+0x102/0x310 [ 20.914280][ T1976] sk_prot_alloc+0x11c/0x2f0 [ 20.918850][ T1976] sk_alloc+0x35/0x300 [ 20.922916][ T1976] tun_chr_open+0x7b/0x4a0 [ 20.927315][ T1976] misc_open+0x3ea/0x440 [ 20.931542][ T1976] chrdev_open+0x60a/0x670 [ 20.935942][ T1976] do_dentry_open+0x8f7/0x1070 [ 20.940684][ T1976] vfs_open+0x73/0x80 [ 20.944654][ T1976] path_openat+0x1681/0x42d0 [ 20.949232][ T1976] do_filp_open+0x1f7/0x430 [ 20.953720][ T1976] do_sys_open+0x36f/0x7a0 [ 20.958117][ T1976] __x64_sys_openat+0xa2/0xb0 [ 20.962781][ T1976] do_syscall_64+0xc0/0x100 [ 20.967270][ T1976] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 20.973135][ T1976] [ 20.975442][ T1976] Freed by task 1975: [ 20.979407][ T1976] __kasan_slab_free+0x168/0x220 [ 20.984323][ T1976] kasan_slab_free+0xe/0x10 [ 20.988818][ T1976] kfree+0x170/0x6d0 [ 20.992692][ T1976] __sk_destruct+0x45f/0x4e0 [ 20.997265][ T1976] __sk_free+0x35d/0x430 [ 21.001498][ T1976] sk_free+0x45/0x50 [ 21.005379][ T1976] __tun_detach+0x15d0/0x1a40 [ 21.010039][ T1976] tun_chr_close+0xb8/0xd0 [ 21.014439][ T1976] __fput+0x295/0x710 [ 21.018404][ T1976] ____fput+0x15/0x20 [ 21.022371][ T1976] task_work_run+0x176/0x1a0 [ 21.026941][ T1976] prepare_exit_to_usermode+0x2d8/0x370 [ 21.032574][ T1976] syscall_return_slowpath+0x6f/0x500 [ 21.037928][ T1976] do_syscall_64+0xe8/0x100 [ 21.042415][ T1976] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 21.048279][ T1976] [ 21.050593][ T1976] The buggy address belongs to the object at ffff8881ce879000 [ 21.050593][ T1976] which belongs to the cache kmalloc-2k of size 2048 [ 21.064625][ T1976] The buggy address is located 1264 bytes inside of [ 21.064625][ T1976] 2048-byte region [ffff8881ce879000, ffff8881ce879800) [ 21.078043][ T1976] The buggy address belongs to the page: [ 21.083662][ T1976] page:ffffea00073a1e00 refcount:1 mapcount:0 mapping:ffff8881da802800 index:0x0 compound_mapcount: 0 [ 21.094585][ T1976] flags: 0x8000000000010200(slab|head) [ 21.100029][ T1976] raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881da802800 [ 21.108596][ T1976] raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 [ 21.117155][ T1976] page dumped because: kasan: bad access detected [ 21.123547][ T1976] [ 21.125855][ T1976] Memory state around the buggy address: [ 21.131467][ T1976] ffff8881ce879380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.139509][ T1976] ffff8881ce879400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.147566][ T1976] >ffff8881ce879480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.155606][ T1976] ^ executing program [ 21.163309][ T1976] ffff8881ce879500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.171353][ T1976] ffff8881ce879580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.179390][ T1976] ================================================================== [ 21.187430][ T1976] 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