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.10.7' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 syzkaller login: [ 29.381226] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 29.639949] 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 [ 30.020188] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 30.026294] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.071105] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 30.111395] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 30.152650] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 30.158758] 8021q: adding VLAN 0 to HW filter on device team0 [ 30.186635] bond0: Enslaving bond_slave as an active interface with an up link [ 30.195143] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 30.212732] team0: Port device team_slave added [ 30.218072] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 30.255120] ================================================================== [ 30.262571] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 30.269217] Write of size 4 at addr ffff8801d9a3a360 by task syzkaller180277/4438 [ 30.276805] [ 30.278412] CPU: 1 PID: 4438 Comm: syzkaller180277 Not tainted 4.16.0+ #19 [ 30.285398] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.294735] Call Trace: [ 30.297302] dump_stack+0x1b9/0x294 [ 30.300909] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.306073] ? printk+0x9e/0xba [ 30.309328] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.314062] ? kasan_check_write+0x14/0x20 [ 30.318282] print_address_description+0x6c/0x20b [ 30.323100] ? skb_release_data+0x19b/0x860 [ 30.327399] kasan_report.cold.7+0xac/0x2f5 [ 30.331706] check_memory_region+0x13e/0x1b0 [ 30.336093] kasan_check_write+0x14/0x20 [ 30.340128] skb_release_data+0x19b/0x860 [ 30.344254] ? skb_tx_error+0x2f0/0x2f0 [ 30.348203] ? kasan_check_read+0x11/0x20 [ 30.352326] ? rcu_is_watching+0x85/0x140 [ 30.356451] ? kasan_check_write+0x14/0x20 [ 30.360664] ? sock_rmem_free+0x6f/0x90 [ 30.364619] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.370133] skb_release_all+0x4a/0x60 [ 30.373998] kfree_skb+0x195/0x560 [ 30.377529] ? skb_queue_purge+0x19/0x40 [ 30.381568] ? __kfree_skb+0x20/0x20 [ 30.385260] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.389820] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.394898] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.400572] ? trace_hardirqs_on+0xd/0x10 [ 30.404713] ? skb_dequeue+0x12f/0x180 [ 30.408579] skb_queue_purge+0x19/0x40 [ 30.412443] packet_sock_destruct+0x93/0x290 [ 30.416827] ? packet_mm_close+0xc0/0xc0 [ 30.420863] ? graph_lock+0x170/0x170 [ 30.424640] ? __free_object+0x16e/0x330 [ 30.428690] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 30.433967] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.438530] ? packet_mm_close+0xc0/0xc0 [ 30.442570] __sk_destruct+0xff/0xa40 [ 30.446350] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 30.451256] ? graph_lock+0x170/0x170 [ 30.455041] ? lock_downgrade+0x8e0/0x8e0 [ 30.459167] ? __lock_is_held+0xb5/0x140 [ 30.463205] ? kasan_check_read+0x11/0x20 [ 30.467328] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.471714] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.476272] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.481355] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.486871] ? refcount_sub_and_test+0x212/0x330 [ 30.491615] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.496348] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.501079] ? pcpu_free_area+0xa90/0xa90 [ 30.505206] sk_destruct+0x78/0x90 [ 30.508728] __sk_free+0x22e/0x340 [ 30.512245] sk_free+0x42/0x50 [ 30.515416] packet_release+0xa18/0xd50 [ 30.519367] ? lock_downgrade+0x8e0/0x8e0 [ 30.524024] ? packet_lookup_frame+0x270/0x270 [ 30.528589] ? cpumask_weight.constprop.5+0x44/0x44 [ 30.533582] ? do_raw_spin_lock+0xc1/0x200 [ 30.538322] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.543835] ? locks_remove_file+0x3f7/0x5a0 [ 30.548220] ? fcntl_setlk+0x1020/0x1020 [ 30.552258] ? fsnotify+0x415/0x1100 [ 30.555954] ? fsnotify_first_mark+0x330/0x330 [ 30.560513] sock_release+0x96/0x1b0 [ 30.564206] ? sock_alloc_file+0x4e0/0x4e0 [ 30.568419] sock_close+0x16/0x20 [ 30.571850] __fput+0x34d/0x890 [ 30.575107] ? fput+0x1a0/0x1a0 [ 30.578374] ? check_same_owner+0x320/0x320 [ 30.582676] ____fput+0x15/0x20 [ 30.585939] task_work_run+0x1e4/0x290 [ 30.589804] ? task_work_cancel+0x240/0x240 [ 30.594104] ? switch_task_namespaces+0xbd/0xd0 [ 30.598761] do_exit+0x1aee/0x2730 [ 30.602277] ? find_held_lock+0x36/0x1c0 [ 30.606315] ? mm_update_next_owner+0x980/0x980 [ 30.610967] ? kasan_check_read+0x11/0x20 [ 30.615090] ? rcu_is_watching+0x85/0x140 [ 30.619222] ? tun_get+0x22b/0x360 [ 30.622744] ? tun_chr_close+0x60/0x60 [ 30.626620] ? tun_chr_write_iter+0x110/0x154 [ 30.631092] ? fsnotify+0x415/0x1100 [ 30.634788] ? kasan_check_read+0x11/0x20 [ 30.638919] ? rcu_is_watching+0x85/0x140 [ 30.643050] ? rcu_pm_notify+0xc0/0xc0 [ 30.646919] ? vfs_writev+0x255/0x330 [ 30.650697] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.655689] ? kfree+0x1e9/0x260 [ 30.659038] ? vfs_writev+0xfc/0x330 [ 30.662728] ? vfs_iter_write+0xb0/0xb0 [ 30.666681] ? lock_downgrade+0x8e0/0x8e0 [ 30.670810] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.676323] ? sockfd_lookup_light+0xc5/0x160 [ 30.680797] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.686313] ? __fdget_pos+0xd6/0x1e0 [ 30.690090] ? __fdget_raw+0x20/0x20 [ 30.693785] do_group_exit+0x16f/0x430 [ 30.697657] ? SyS_exit+0x30/0x30 [ 30.701090] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 30.705912] ? do_syscall_64+0xb7/0x9d0 [ 30.709865] ? do_group_exit+0x430/0x430 [ 30.713902] SyS_exit_group+0x1d/0x20 [ 30.717679] do_syscall_64+0x29e/0x9d0 [ 30.721543] ? vmalloc_sync_all+0x30/0x30 [ 30.725670] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.730404] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.735310] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.740220] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 30.745561] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.750380] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.755543] RIP: 0033:0x4418c9 [ 30.758708] RSP: 002b:00007ffd65ae73f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 30.766393] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004418c9 [ 30.773638] RDX: 0000000000441800 RSI: 0000000000000002 RDI: 0000000000000001 [ 30.780881] RBP: 00000000004a34e9 R08: 0000000000000000 R09: 00000000006cd018 [ 30.788125] R10: 0000000000000001 R11: 0000000000000206 R12: 00007ffd65ae74e8 [ 30.795370] R13: 0000000000402650 R14: 0000000000000000 R15: 0000000000000000 [ 30.802620] [ 30.804225] Allocated by task 4438: [ 30.807829] save_stack+0x43/0xd0 [ 30.811258] kasan_kmalloc+0xc4/0xe0 [ 30.814954] __kmalloc_node_track_caller+0x47/0x70 [ 30.819859] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 30.824591] __alloc_skb+0x14d/0x780 [ 30.828278] alloc_skb_with_frags+0x137/0x760 [ 30.832746] sock_alloc_send_pskb+0x87a/0xae0 [ 30.837221] packet_sendmsg+0x1bd1/0x6100 [ 30.841347] sock_sendmsg+0xd5/0x120 [ 30.845040] ___sys_sendmsg+0x805/0x940 [ 30.848999] __sys_sendmsg+0x115/0x270 [ 30.852868] SyS_sendmsg+0x29/0x30 [ 30.856383] do_syscall_64+0x29e/0x9d0 [ 30.860245] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.865405] [ 30.867007] Freed by task 4438: [ 30.870271] save_stack+0x43/0xd0 [ 30.873698] __kasan_slab_free+0x11a/0x170 [ 30.877914] kasan_slab_free+0xe/0x10 [ 30.881688] kfree+0xd9/0x260 [ 30.884768] skb_free_head+0x99/0xc0 [ 30.888456] skb_release_data+0x690/0x860 [ 30.892581] skb_release_all+0x4a/0x60 [ 30.896444] kfree_skb+0x195/0x560 [ 30.899960] ip6_tnl_start_xmit+0xa44/0x2290 [ 30.904348] dev_hard_start_xmit+0x264/0xc10 [ 30.908728] __dev_queue_xmit+0x2724/0x34c0 [ 30.913030] dev_queue_xmit+0x17/0x20 [ 30.916805] packet_sendmsg+0x411d/0x6100 [ 30.920929] sock_sendmsg+0xd5/0x120 [ 30.924618] ___sys_sendmsg+0x805/0x940 [ 30.928566] __sys_sendmsg+0x115/0x270 [ 30.932429] SyS_sendmsg+0x29/0x30 [ 30.935946] do_syscall_64+0x29e/0x9d0 [ 30.939811] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.944971] [ 30.946574] The buggy address belongs to the object at ffff8801d9a3a280 [ 30.946574] which belongs to the cache kmalloc-512 of size 512 [ 30.959206] The buggy address is located 224 bytes inside of [ 30.959206] 512-byte region [ffff8801d9a3a280, ffff8801d9a3a480) [ 30.971053] The buggy address belongs to the page: [ 30.975970] page:ffffea0007668e80 count:1 mapcount:0 mapping:ffff8801d9a3a000 index:0x0 [ 30.984091] flags: 0x2fffc0000000100(slab) [ 30.988307] raw: 02fffc0000000100 ffff8801d9a3a000 0000000000000000 0000000100000006 [ 30.996167] raw: ffffea0007650d20 ffffea000766ee60 ffff8801dac00940 0000000000000000 [ 31.004031] page dumped because: kasan: bad access detected [ 31.009711] [ 31.011311] Memory state around the buggy address: [ 31.016216] ffff8801d9a3a200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.023549] ffff8801d9a3a280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.030881] >ffff8801d9a3a300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.038212] ^ [ 31.044679] ffff8801d9a3a380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.052021] ffff8801d9a3a400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.059358] ================================================================== [ 31.066688] Disabling lock debugging due to kernel taint [ 31.072211] Kernel panic - not syncing: panic_on_warn set ... [ 31.072211] [ 31.079582] CPU: 1 PID: 4438 Comm: syzkaller180277 Tainted: G B 4.16.0+ #19 [ 31.087895] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.097232] Call Trace: [ 31.099799] dump_stack+0x1b9/0x294 [ 31.103402] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.108576] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.113309] ? skb_release_data+0xd0/0x860 [ 31.117519] panic+0x22f/0x4de [ 31.120698] ? add_taint.cold.5+0x16/0x16 [ 31.124831] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.129215] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.133599] ? skb_release_data+0x19b/0x860 [ 31.137896] kasan_end_report+0x47/0x4f [ 31.141845] kasan_report.cold.7+0xc9/0x2f5 [ 31.146142] check_memory_region+0x13e/0x1b0 [ 31.150524] kasan_check_write+0x14/0x20 [ 31.154568] skb_release_data+0x19b/0x860 [ 31.158690] ? skb_tx_error+0x2f0/0x2f0 [ 31.162637] ? kasan_check_read+0x11/0x20 [ 31.166760] ? rcu_is_watching+0x85/0x140 [ 31.170881] ? kasan_check_write+0x14/0x20 [ 31.175091] ? sock_rmem_free+0x6f/0x90 [ 31.179046] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.184561] skb_release_all+0x4a/0x60 [ 31.188424] kfree_skb+0x195/0x560 [ 31.191940] ? skb_queue_purge+0x19/0x40 [ 31.195978] ? __kfree_skb+0x20/0x20 [ 31.199677] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.204233] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.209313] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.214303] ? trace_hardirqs_on+0xd/0x10 [ 31.218430] ? skb_dequeue+0x12f/0x180 [ 31.222293] skb_queue_purge+0x19/0x40 [ 31.226158] packet_sock_destruct+0x93/0x290 [ 31.230540] ? packet_mm_close+0xc0/0xc0 [ 31.234576] ? graph_lock+0x170/0x170 [ 31.238350] ? __free_object+0x16e/0x330 [ 31.242392] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 31.247643] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.252209] ? packet_mm_close+0xc0/0xc0 [ 31.256252] __sk_destruct+0xff/0xa40 [ 31.260033] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 31.264946] ? graph_lock+0x170/0x170 [ 31.268722] ? lock_downgrade+0x8e0/0x8e0 [ 31.272844] ? __lock_is_held+0xb5/0x140 [ 31.276881] ? kasan_check_read+0x11/0x20 [ 31.281001] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.285391] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.289950] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.295034] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.300635] ? refcount_sub_and_test+0x212/0x330 [ 31.305366] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.310105] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.314836] ? pcpu_free_area+0xa90/0xa90 [ 31.318961] sk_destruct+0x78/0x90 [ 31.322478] __sk_free+0x22e/0x340 [ 31.325993] sk_free+0x42/0x50 [ 31.329165] packet_release+0xa18/0xd50 [ 31.333112] ? lock_downgrade+0x8e0/0x8e0 [ 31.337235] ? packet_lookup_frame+0x270/0x270 [ 31.341793] ? cpumask_weight.constprop.5+0x44/0x44 [ 31.346784] ? do_raw_spin_lock+0xc1/0x200 [ 31.350994] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.356515] ? locks_remove_file+0x3f7/0x5a0 [ 31.360897] ? fcntl_setlk+0x1020/0x1020 [ 31.364938] ? fsnotify+0x415/0x1100 [ 31.368631] ? fsnotify_first_mark+0x330/0x330 [ 31.373192] sock_release+0x96/0x1b0 [ 31.376881] ? sock_alloc_file+0x4e0/0x4e0 [ 31.381090] sock_close+0x16/0x20 [ 31.384518] __fput+0x34d/0x890 [ 31.387772] ? fput+0x1a0/0x1a0 [ 31.391030] ? check_same_owner+0x320/0x320 [ 31.395327] ____fput+0x15/0x20 [ 31.398586] task_work_run+0x1e4/0x290 [ 31.402447] ? task_work_cancel+0x240/0x240 [ 31.406743] ? switch_task_namespaces+0xbd/0xd0 [ 31.411385] do_exit+0x1aee/0x2730 [ 31.414916] ? find_held_lock+0x36/0x1c0 [ 31.418958] ? mm_update_next_owner+0x980/0x980 [ 31.423603] ? kasan_check_read+0x11/0x20 [ 31.427733] ? rcu_is_watching+0x85/0x140 [ 31.431866] ? tun_get+0x22b/0x360 [ 31.435383] ? tun_chr_close+0x60/0x60 [ 31.439250] ? tun_chr_write_iter+0x110/0x154 [ 31.443720] ? fsnotify+0x415/0x1100 [ 31.447413] ? kasan_check_read+0x11/0x20 [ 31.451543] ? rcu_is_watching+0x85/0x140 [ 31.455672] ? rcu_pm_notify+0xc0/0xc0 [ 31.459535] ? vfs_writev+0x255/0x330 [ 31.463311] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.468301] ? kfree+0x1e9/0x260 [ 31.471643] ? vfs_writev+0xfc/0x330 [ 31.475333] ? vfs_iter_write+0xb0/0xb0 [ 31.479286] ? lock_downgrade+0x8e0/0x8e0 [ 31.483412] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.488932] ? sockfd_lookup_light+0xc5/0x160 [ 31.493405] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.498931] ? __fdget_pos+0xd6/0x1e0 [ 31.502707] ? __fdget_raw+0x20/0x20 [ 31.506398] do_group_exit+0x16f/0x430 [ 31.510263] ? SyS_exit+0x30/0x30 [ 31.513694] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 31.518512] ? do_syscall_64+0xb7/0x9d0 [ 31.522462] ? do_group_exit+0x430/0x430 [ 31.526499] SyS_exit_group+0x1d/0x20 [ 31.530276] do_syscall_64+0x29e/0x9d0 [ 31.534140] ? vmalloc_sync_all+0x30/0x30 [ 31.538264] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.543000] ? syscall_return_slowpath+0x5c0/0x5c0 [ 31.547922] ? syscall_return_slowpath+0x30f/0x5c0 [ 31.552827] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 31.558165] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.563331] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.568501] RIP: 0033:0x4418c9 [ 31.571666] RSP: 002b:00007ffd65ae73f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 31.579359] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004418c9 [ 31.586604] RDX: 0000000000441800 RSI: 0000000000000002 RDI: 0000000000000001 [ 31.593848] RBP: 00000000004a34e9 R08: 0000000000000000 R09: 00000000006cd018 [ 31.601092] R10: 0000000000000001 R11: 0000000000000206 R12: 00007ffd65ae74e8 [ 31.608343] R13: 0000000000402650 R14: 0000000000000000 R15: 0000000000000000 [ 31.616015] Dumping ftrace buffer: [ 31.619525] (ftrace buffer empty) [ 31.623207] Kernel Offset: disabled [ 31.626818] Rebooting in 86400 seconds..