INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.19' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 syzkaller login: [ 32.483106] IPVS: ftp: loaded support on port[0] = 21 net.ipv6.conf.syz_tun.router_solicitations = 0 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 32.738576] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 33.104187] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 33.110287] 8021q: adding VLAN 0 to HW filter on device bond0 [ 33.149601] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 33.188772] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 33.229422] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 33.235608] 8021q: adding VLAN 0 to HW filter on device team0 [ 33.261728] bond0: Enslaving bond_slave as an active interface with an up link [ 33.270227] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 33.287712] team0: Port device team_slave added [ 33.292969] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 33.299829] ip (4637) used greatest stack depth: 15720 bytes left [ 33.331106] ================================================================== [ 33.338512] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 33.345155] Write of size 4 at addr ffff8801d86d7de0 by task syzkaller477815/4466 [ 33.352745] [ 33.354354] CPU: 0 PID: 4466 Comm: syzkaller477815 Not tainted 4.16.0+ #17 [ 33.361341] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.370679] Call Trace: [ 33.373249] dump_stack+0x1b9/0x294 [ 33.376855] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.382029] ? printk+0x9e/0xba [ 33.385288] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.390034] ? kasan_check_write+0x14/0x20 [ 33.394250] print_address_description+0x6c/0x20b [ 33.399071] ? skb_release_data+0x19b/0x860 [ 33.403371] kasan_report.cold.7+0xac/0x2f5 [ 33.407670] check_memory_region+0x13e/0x1b0 [ 33.412064] kasan_check_write+0x14/0x20 [ 33.416110] skb_release_data+0x19b/0x860 [ 33.420239] ? skb_tx_error+0x2f0/0x2f0 [ 33.424187] ? kasan_check_read+0x11/0x20 [ 33.428311] ? rcu_is_watching+0x85/0x140 [ 33.432437] ? kasan_check_write+0x14/0x20 [ 33.436647] ? sock_rmem_free+0x6f/0x90 [ 33.440598] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.446137] skb_release_all+0x4a/0x60 [ 33.450002] kfree_skb+0x195/0x560 [ 33.453528] ? skb_queue_purge+0x19/0x40 [ 33.457566] ? __kfree_skb+0x20/0x20 [ 33.461258] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.465817] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 33.470905] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.475905] ? trace_hardirqs_on+0xd/0x10 [ 33.480041] ? skb_dequeue+0x12f/0x180 [ 33.483908] skb_queue_purge+0x19/0x40 [ 33.487773] packet_sock_destruct+0x93/0x290 [ 33.492165] ? packet_mm_close+0xc0/0xc0 [ 33.496201] ? graph_lock+0x170/0x170 [ 33.499985] ? __free_object+0x16e/0x330 [ 33.504031] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 33.509285] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.513842] ? packet_mm_close+0xc0/0xc0 [ 33.517877] __sk_destruct+0xff/0xa40 [ 33.521657] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 33.526567] ? graph_lock+0x170/0x170 [ 33.530342] ? lock_downgrade+0x8e0/0x8e0 [ 33.534468] ? __lock_is_held+0xb5/0x140 [ 33.538505] ? kasan_check_read+0x11/0x20 [ 33.542631] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.547020] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.551584] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 33.556664] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.562180] ? refcount_sub_and_test+0x212/0x330 [ 33.566916] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.571645] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.576377] ? pcpu_free_area+0xa90/0xa90 [ 33.580506] sk_destruct+0x78/0x90 [ 33.584030] __sk_free+0x22e/0x340 [ 33.587548] sk_free+0x42/0x50 [ 33.590720] packet_release+0xa18/0xd50 [ 33.594668] ? lock_downgrade+0x8e0/0x8e0 [ 33.598795] ? packet_lookup_frame+0x270/0x270 [ 33.603363] ? cpumask_weight.constprop.5+0x44/0x44 [ 33.608360] ? do_raw_spin_lock+0xc1/0x200 [ 33.612572] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.618091] ? locks_remove_file+0x3f7/0x5a0 [ 33.622474] ? fcntl_setlk+0x1020/0x1020 [ 33.626511] ? fsnotify+0x415/0x1100 [ 33.630206] ? fsnotify_first_mark+0x330/0x330 [ 33.634769] sock_release+0x96/0x1b0 [ 33.638459] ? sock_alloc_file+0x4e0/0x4e0 [ 33.642669] sock_close+0x16/0x20 [ 33.646097] __fput+0x34d/0x890 [ 33.649353] ? fput+0x1a0/0x1a0 [ 33.652608] ? check_same_owner+0x320/0x320 [ 33.656905] ____fput+0x15/0x20 [ 33.660162] task_work_run+0x1e4/0x290 [ 33.664034] ? task_work_cancel+0x240/0x240 [ 33.668339] ? switch_task_namespaces+0xbd/0xd0 [ 33.672984] do_exit+0x1aee/0x2730 [ 33.676501] ? find_held_lock+0x36/0x1c0 [ 33.680540] ? mm_update_next_owner+0x980/0x980 [ 33.685199] ? kasan_check_read+0x11/0x20 [ 33.689325] ? rcu_is_watching+0x85/0x140 [ 33.693461] ? tun_get+0x22b/0x360 [ 33.696980] ? tun_chr_close+0x60/0x60 [ 33.700851] ? tun_chr_write_iter+0x110/0x154 [ 33.705323] ? fsnotify+0x415/0x1100 [ 33.709030] ? kasan_check_read+0x11/0x20 [ 33.713156] ? rcu_is_watching+0x85/0x140 [ 33.717278] ? rcu_pm_notify+0xc0/0xc0 [ 33.721146] ? vfs_writev+0x255/0x330 [ 33.724924] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.729914] ? kfree+0x1e9/0x260 [ 33.733257] ? vfs_writev+0xfc/0x330 [ 33.736951] ? vfs_iter_write+0xb0/0xb0 [ 33.740902] ? lock_downgrade+0x8e0/0x8e0 [ 33.745040] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.750562] ? sockfd_lookup_light+0xc5/0x160 [ 33.755044] ? __fdget_pos+0xd6/0x1e0 [ 33.758824] ? __fdget_raw+0x20/0x20 [ 33.762520] do_group_exit+0x16f/0x430 [ 33.766387] ? SyS_exit+0x30/0x30 [ 33.769820] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 33.774637] ? do_syscall_64+0xb7/0x9d0 [ 33.778586] ? do_group_exit+0x430/0x430 [ 33.782623] SyS_exit_group+0x1d/0x20 [ 33.786400] do_syscall_64+0x29e/0x9d0 [ 33.790266] ? vmalloc_sync_all+0x30/0x30 [ 33.794389] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.799124] ? syscall_return_slowpath+0x5c0/0x5c0 [ 33.804037] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.808951] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 33.814293] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.819114] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 33.824280] RIP: 0033:0x441909 [ 33.827444] RSP: 002b:00007ffdd6cc4e28 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 33.835126] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441909 [ 33.842369] RDX: 0000000000441840 RSI: 0000000000000003 RDI: 0000000000000001 [ 33.849615] RBP: 00000000004a3529 R08: 0000000000000027 R09: 00000000006cd018 [ 33.856858] R10: 0000000000000004 R11: 0000000000000206 R12: 00007ffdd6cc4f38 [ 33.864102] R13: 0000000000402690 R14: 0000000000000000 R15: 0000000000000000 [ 33.871350] [ 33.872952] Allocated by task 4466: [ 33.876556] save_stack+0x43/0xd0 [ 33.879987] kasan_kmalloc+0xc4/0xe0 [ 33.883679] __kmalloc_node_track_caller+0x47/0x70 [ 33.888586] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 33.893318] __alloc_skb+0x14d/0x780 [ 33.897021] alloc_skb_with_frags+0x137/0x760 [ 33.901498] sock_alloc_send_pskb+0x87a/0xae0 [ 33.905975] packet_sendmsg+0x1bd1/0x6100 [ 33.910099] sock_sendmsg+0xd5/0x120 [ 33.913788] ___sys_sendmsg+0x805/0x940 [ 33.917735] __sys_sendmsg+0x115/0x270 [ 33.921597] SyS_sendmsg+0x29/0x30 [ 33.925113] do_syscall_64+0x29e/0x9d0 [ 33.928973] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 33.934132] [ 33.935735] Freed by task 4466: [ 33.938987] save_stack+0x43/0xd0 [ 33.942417] __kasan_slab_free+0x11a/0x170 [ 33.946623] kasan_slab_free+0xe/0x10 [ 33.950398] kfree+0xd9/0x260 [ 33.953479] skb_free_head+0x99/0xc0 [ 33.957165] skb_release_data+0x690/0x860 [ 33.961290] skb_release_all+0x4a/0x60 [ 33.965155] kfree_skb+0x195/0x560 [ 33.968672] ip6_tnl_start_xmit+0xa44/0x2290 [ 33.973058] dev_hard_start_xmit+0x264/0xc10 [ 33.977441] __dev_queue_xmit+0x2724/0x34c0 [ 33.981738] dev_queue_xmit+0x17/0x20 [ 33.985514] packet_sendmsg+0x411d/0x6100 [ 33.989639] sock_sendmsg+0xd5/0x120 [ 33.993331] ___sys_sendmsg+0x805/0x940 [ 33.997281] __sys_sendmsg+0x115/0x270 [ 34.001142] SyS_sendmsg+0x29/0x30 [ 34.004666] do_syscall_64+0x29e/0x9d0 [ 34.008530] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 34.013691] [ 34.015297] The buggy address belongs to the object at ffff8801d86d7d00 [ 34.015297] which belongs to the cache kmalloc-512 of size 512 [ 34.027936] The buggy address is located 224 bytes inside of [ 34.027936] 512-byte region [ffff8801d86d7d00, ffff8801d86d7f00) [ 34.039786] The buggy address belongs to the page: [ 34.044693] page:ffffea000761b5c0 count:1 mapcount:0 mapping:ffff8801d86d7080 index:0x0 [ 34.052814] flags: 0x2fffc0000000100(slab) [ 34.057037] raw: 02fffc0000000100 ffff8801d86d7080 0000000000000000 0000000100000006 [ 34.064893] raw: ffffea00076180e0 ffffea0007605020 ffff8801dac00940 0000000000000000 [ 34.072748] page dumped because: kasan: bad access detected [ 34.078428] [ 34.080039] Memory state around the buggy address: [ 34.084944] ffff8801d86d7c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.092282] ffff8801d86d7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.099624] >ffff8801d86d7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.106965] ^ [ 34.113434] ffff8801d86d7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.120770] ffff8801d86d7e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.128099] ================================================================== [ 34.135428] Disabling lock debugging due to kernel taint [ 34.141213] Kernel panic - not syncing: panic_on_warn set ... [ 34.141213] [ 34.148581] CPU: 0 PID: 4466 Comm: syzkaller477815 Tainted: G B 4.16.0+ #17 [ 34.156889] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.166216] Call Trace: [ 34.168783] dump_stack+0x1b9/0x294 [ 34.172392] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.177562] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.182292] ? skb_release_data+0xd0/0x860 [ 34.186500] panic+0x22f/0x4de [ 34.189665] ? add_taint.cold.5+0x16/0x16 [ 34.193792] ? do_raw_spin_unlock+0x9e/0x2e0 [ 34.198174] ? do_raw_spin_unlock+0x9e/0x2e0 [ 34.202556] ? skb_release_data+0x19b/0x860 [ 34.206852] kasan_end_report+0x47/0x4f [ 34.210801] kasan_report.cold.7+0xc9/0x2f5 [ 34.215105] check_memory_region+0x13e/0x1b0 [ 34.219490] kasan_check_write+0x14/0x20 [ 34.223525] skb_release_data+0x19b/0x860 [ 34.227648] ? skb_tx_error+0x2f0/0x2f0 [ 34.231596] ? kasan_check_read+0x11/0x20 [ 34.235720] ? rcu_is_watching+0x85/0x140 [ 34.239843] ? kasan_check_write+0x14/0x20 [ 34.244052] ? sock_rmem_free+0x6f/0x90 [ 34.248004] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.253528] skb_release_all+0x4a/0x60 [ 34.257392] kfree_skb+0x195/0x560 [ 34.260905] ? skb_queue_purge+0x19/0x40 [ 34.264940] ? __kfree_skb+0x20/0x20 [ 34.268628] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 34.273276] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 34.278352] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.283341] ? trace_hardirqs_on+0xd/0x10 [ 34.287465] ? skb_dequeue+0x12f/0x180 [ 34.291327] skb_queue_purge+0x19/0x40 [ 34.295190] packet_sock_destruct+0x93/0x290 [ 34.299574] ? packet_mm_close+0xc0/0xc0 [ 34.303605] ? graph_lock+0x170/0x170 [ 34.307385] ? __free_object+0x16e/0x330 [ 34.311420] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 34.316671] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 34.321229] ? packet_mm_close+0xc0/0xc0 [ 34.325263] __sk_destruct+0xff/0xa40 [ 34.329041] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 34.333945] ? graph_lock+0x170/0x170 [ 34.337720] ? lock_downgrade+0x8e0/0x8e0 [ 34.341842] ? __lock_is_held+0xb5/0x140 [ 34.345876] ? kasan_check_read+0x11/0x20 [ 34.349997] ? do_raw_spin_unlock+0x9e/0x2e0 [ 34.354389] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 34.358946] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 34.364031] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.369546] ? refcount_sub_and_test+0x212/0x330 [ 34.374293] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 34.379034] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 34.383768] ? pcpu_free_area+0xa90/0xa90 [ 34.387892] sk_destruct+0x78/0x90 [ 34.391408] __sk_free+0x22e/0x340 [ 34.394921] sk_free+0x42/0x50 [ 34.398091] packet_release+0xa18/0xd50 [ 34.402039] ? lock_downgrade+0x8e0/0x8e0 [ 34.406164] ? packet_lookup_frame+0x270/0x270 [ 34.410722] ? cpumask_weight.constprop.5+0x44/0x44 [ 34.415712] ? do_raw_spin_lock+0xc1/0x200 [ 34.419922] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.425433] ? locks_remove_file+0x3f7/0x5a0 [ 34.429813] ? fcntl_setlk+0x1020/0x1020 [ 34.433849] ? fsnotify+0x415/0x1100 [ 34.437539] ? fsnotify_first_mark+0x330/0x330 [ 34.442097] sock_release+0x96/0x1b0 [ 34.445785] ? sock_alloc_file+0x4e0/0x4e0 [ 34.449996] sock_close+0x16/0x20 [ 34.453433] __fput+0x34d/0x890 [ 34.456688] ? fput+0x1a0/0x1a0 [ 34.459944] ? check_same_owner+0x320/0x320 [ 34.464242] ____fput+0x15/0x20 [ 34.467494] task_work_run+0x1e4/0x290 [ 34.471354] ? task_work_cancel+0x240/0x240 [ 34.475652] ? switch_task_namespaces+0xbd/0xd0 [ 34.480295] do_exit+0x1aee/0x2730 [ 34.483809] ? find_held_lock+0x36/0x1c0 [ 34.487847] ? mm_update_next_owner+0x980/0x980 [ 34.492491] ? kasan_check_read+0x11/0x20 [ 34.496613] ? rcu_is_watching+0x85/0x140 [ 34.500741] ? tun_get+0x22b/0x360 [ 34.504268] ? tun_chr_close+0x60/0x60 [ 34.508136] ? tun_chr_write_iter+0x110/0x154 [ 34.512607] ? fsnotify+0x415/0x1100 [ 34.516297] ? kasan_check_read+0x11/0x20 [ 34.520416] ? rcu_is_watching+0x85/0x140 [ 34.524544] ? rcu_pm_notify+0xc0/0xc0 [ 34.528412] ? vfs_writev+0x255/0x330 [ 34.532187] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.537175] ? kfree+0x1e9/0x260 [ 34.540517] ? vfs_writev+0xfc/0x330 [ 34.544203] ? vfs_iter_write+0xb0/0xb0 [ 34.548153] ? lock_downgrade+0x8e0/0x8e0 [ 34.552277] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.557790] ? sockfd_lookup_light+0xc5/0x160 [ 34.562260] ? __fdget_pos+0xd6/0x1e0 [ 34.566042] ? __fdget_raw+0x20/0x20 [ 34.569735] do_group_exit+0x16f/0x430 [ 34.573598] ? SyS_exit+0x30/0x30 [ 34.577032] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 34.581849] ? do_syscall_64+0xb7/0x9d0 [ 34.585795] ? do_group_exit+0x430/0x430 [ 34.589834] SyS_exit_group+0x1d/0x20 [ 34.593613] do_syscall_64+0x29e/0x9d0 [ 34.597474] ? vmalloc_sync_all+0x30/0x30 [ 34.601597] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.606327] ? syscall_return_slowpath+0x5c0/0x5c0 [ 34.611230] ? syscall_return_slowpath+0x30f/0x5c0 [ 34.616136] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 34.621474] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.626293] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 34.631453] RIP: 0033:0x441909 [ 34.634616] RSP: 002b:00007ffdd6cc4e28 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 34.642295] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441909 [ 34.649552] RDX: 0000000000441840 RSI: 0000000000000003 RDI: 0000000000000001 [ 34.656793] RBP: 00000000004a3529 R08: 0000000000000027 R09: 00000000006cd018 [ 34.664038] R10: 0000000000000004 R11: 0000000000000206 R12: 00007ffdd6cc4f38 [ 34.671280] R13: 0000000000402690 R14: 0000000000000000 R15: 0000000000000000 [ 34.678942] Dumping ftrace buffer: [ 34.682457] (ftrace buffer empty) [ 34.686142] Kernel Offset: disabled [ 34.689741] Rebooting in 86400 seconds..