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.24' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 syzkaller login: [ 29.113698] 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 [ 29.373439] 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 [ 29.741640] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 29.747754] 8021q: adding VLAN 0 to HW filter on device bond0 [ 29.787837] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 29.828948] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 29.869650] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 29.875762] 8021q: adding VLAN 0 to HW filter on device team0 [ 29.903915] bond0: Enslaving bond_slave as an active interface with an up link [ 29.912880] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 29.926167] team0: Port device team_slave added [ 29.931600] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 29.971116] ================================================================== [ 29.978561] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 29.985204] Write of size 4 at addr ffff8801b1f0e0e0 by task syzkaller758169/4462 [ 29.992794] [ 29.994401] CPU: 0 PID: 4462 Comm: syzkaller758169 Not tainted 4.16.0+ #17 [ 30.001388] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.010715] Call Trace: [ 30.013284] dump_stack+0x1b9/0x294 [ 30.016892] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.022070] ? printk+0x9e/0xba [ 30.025334] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.030077] ? kasan_check_write+0x14/0x20 [ 30.034295] print_address_description+0x6c/0x20b [ 30.039117] ? skb_release_data+0x19b/0x860 [ 30.043417] kasan_report.cold.7+0xac/0x2f5 [ 30.047717] check_memory_region+0x13e/0x1b0 [ 30.052108] kasan_check_write+0x14/0x20 [ 30.056147] skb_release_data+0x19b/0x860 [ 30.060279] ? skb_tx_error+0x2f0/0x2f0 [ 30.064231] ? kasan_check_read+0x11/0x20 [ 30.068383] ? rcu_is_watching+0x85/0x140 [ 30.072511] ? kasan_check_write+0x14/0x20 [ 30.076722] ? sock_rmem_free+0x6f/0x90 [ 30.080674] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.086199] skb_release_all+0x4a/0x60 [ 30.090067] kfree_skb+0x195/0x560 [ 30.093583] ? skb_queue_purge+0x19/0x40 [ 30.097621] ? __kfree_skb+0x20/0x20 [ 30.101319] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.105882] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.110963] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.115957] ? trace_hardirqs_on+0xd/0x10 [ 30.120086] ? skb_dequeue+0x12f/0x180 [ 30.123949] skb_queue_purge+0x19/0x40 [ 30.127814] packet_sock_destruct+0x93/0x290 [ 30.132201] ? packet_mm_close+0xc0/0xc0 [ 30.136240] ? graph_lock+0x170/0x170 [ 30.140029] ? __free_object+0x16e/0x330 [ 30.144086] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 30.149340] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.153903] ? packet_mm_close+0xc0/0xc0 [ 30.157943] __sk_destruct+0xff/0xa40 [ 30.161731] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 30.166638] ? graph_lock+0x170/0x170 [ 30.170416] ? lock_downgrade+0x8e0/0x8e0 [ 30.174541] ? __lock_is_held+0xb5/0x140 [ 30.178579] ? kasan_check_read+0x11/0x20 [ 30.182706] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.187093] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.191653] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.196736] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.202257] ? refcount_sub_and_test+0x212/0x330 [ 30.206992] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.211731] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.216464] ? pcpu_free_area+0xa90/0xa90 [ 30.220592] sk_destruct+0x78/0x90 [ 30.224110] __sk_free+0x22e/0x340 [ 30.227627] sk_free+0x42/0x50 [ 30.230797] packet_release+0xa18/0xd50 [ 30.234747] ? lock_downgrade+0x8e0/0x8e0 [ 30.238877] ? packet_lookup_frame+0x270/0x270 [ 30.243439] ? cpumask_weight.constprop.5+0x44/0x44 [ 30.248432] ? do_raw_spin_lock+0xc1/0x200 [ 30.252647] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.258158] ? locks_remove_file+0x3f7/0x5a0 [ 30.262546] ? fcntl_setlk+0x1020/0x1020 [ 30.266585] ? fsnotify+0x415/0x1100 [ 30.270280] ? fsnotify_first_mark+0x330/0x330 [ 30.274841] sock_release+0x96/0x1b0 [ 30.278532] ? sock_alloc_file+0x4e0/0x4e0 [ 30.282742] sock_close+0x16/0x20 [ 30.286184] __fput+0x34d/0x890 [ 30.289442] ? fput+0x1a0/0x1a0 [ 30.292702] ? check_same_owner+0x320/0x320 [ 30.297007] ____fput+0x15/0x20 [ 30.300273] task_work_run+0x1e4/0x290 [ 30.304137] ? task_work_cancel+0x240/0x240 [ 30.308436] ? switch_task_namespaces+0xbd/0xd0 [ 30.313084] do_exit+0x1aee/0x2730 [ 30.316600] ? find_held_lock+0x36/0x1c0 [ 30.320643] ? mm_update_next_owner+0x980/0x980 [ 30.325295] ? kasan_check_read+0x11/0x20 [ 30.329420] ? rcu_is_watching+0x85/0x140 [ 30.333561] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 30.338732] ? tun_get+0x22b/0x360 [ 30.342251] ? tun_chr_close+0x60/0x60 [ 30.346119] ? tun_chr_write_iter+0x110/0x154 [ 30.350591] ? fsnotify+0x415/0x1100 [ 30.354286] ? kasan_check_read+0x11/0x20 [ 30.358410] ? rcu_is_watching+0x85/0x140 [ 30.362535] ? rcu_pm_notify+0xc0/0xc0 [ 30.366401] ? vfs_writev+0x255/0x330 [ 30.370178] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.375184] ? kfree+0x1e9/0x260 [ 30.378529] ? vfs_writev+0xfc/0x330 [ 30.382220] ? vfs_iter_write+0xb0/0xb0 [ 30.386179] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.391696] ? sockfd_lookup_light+0xc5/0x160 [ 30.396173] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.401686] ? __fdget_pos+0xd6/0x1e0 [ 30.405462] ? __fdget_raw+0x20/0x20 [ 30.409170] do_group_exit+0x16f/0x430 [ 30.413041] ? SyS_exit+0x30/0x30 [ 30.416474] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 30.421295] ? do_syscall_64+0xb7/0x9d0 [ 30.425251] ? do_group_exit+0x430/0x430 [ 30.429291] SyS_exit_group+0x1d/0x20 [ 30.433070] do_syscall_64+0x29e/0x9d0 [ 30.436936] ? vmalloc_sync_all+0x30/0x30 [ 30.441061] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.445795] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.450701] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.455608] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 30.460949] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.465768] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.470935] RIP: 0033:0x442069 [ 30.474100] RSP: 002b:00007fff0d662c58 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 30.481795] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000442069 [ 30.489062] RDX: 0000000000441fa0 RSI: 0000000000000001 RDI: 0000000000000001 [ 30.496321] RBP: 00000000004a3c89 R08: 0000000000000020 R09: 00000000006cd018 [ 30.503568] R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff0d662d58 [ 30.510818] R13: 0000000000402df0 R14: 0000000000000000 R15: 0000000000000000 [ 30.518069] [ 30.519680] Allocated by task 4462: [ 30.523286] save_stack+0x43/0xd0 [ 30.526716] kasan_kmalloc+0xc4/0xe0 [ 30.530403] __kmalloc_node_track_caller+0x47/0x70 [ 30.535314] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 30.540053] __alloc_skb+0x14d/0x780 [ 30.543741] alloc_skb_with_frags+0x137/0x760 [ 30.548215] sock_alloc_send_pskb+0x87a/0xae0 [ 30.552690] packet_sendmsg+0x1bd1/0x6100 [ 30.556815] sock_sendmsg+0xd5/0x120 [ 30.560504] ___sys_sendmsg+0x805/0x940 [ 30.564454] __sys_sendmsg+0x115/0x270 [ 30.568317] SyS_sendmsg+0x29/0x30 [ 30.571833] do_syscall_64+0x29e/0x9d0 [ 30.575697] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.580858] [ 30.582460] Freed by task 4462: [ 30.585717] save_stack+0x43/0xd0 [ 30.589146] __kasan_slab_free+0x11a/0x170 [ 30.593361] kasan_slab_free+0xe/0x10 [ 30.597136] kfree+0xd9/0x260 [ 30.600226] skb_free_head+0x99/0xc0 [ 30.603915] skb_release_data+0x690/0x860 [ 30.608041] skb_release_all+0x4a/0x60 [ 30.611905] kfree_skb+0x195/0x560 [ 30.615425] ip6_tnl_start_xmit+0xa44/0x2290 [ 30.619811] dev_hard_start_xmit+0x264/0xc10 [ 30.624194] __dev_queue_xmit+0x2724/0x34c0 [ 30.628499] dev_queue_xmit+0x17/0x20 [ 30.632273] packet_sendmsg+0x411d/0x6100 [ 30.636398] sock_sendmsg+0xd5/0x120 [ 30.640099] ___sys_sendmsg+0x805/0x940 [ 30.644057] __sys_sendmsg+0x115/0x270 [ 30.647919] SyS_sendmsg+0x29/0x30 [ 30.651437] do_syscall_64+0x29e/0x9d0 [ 30.655300] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.660459] [ 30.662067] The buggy address belongs to the object at ffff8801b1f0e000 [ 30.662067] which belongs to the cache kmalloc-512 of size 512 [ 30.674698] The buggy address is located 224 bytes inside of [ 30.674698] 512-byte region [ffff8801b1f0e000, ffff8801b1f0e200) [ 30.686555] The buggy address belongs to the page: [ 30.691461] page:ffffea0006c7c380 count:1 mapcount:0 mapping:ffff8801b1f0e000 index:0x0 [ 30.699578] flags: 0x2fffc0000000100(slab) [ 30.703790] raw: 02fffc0000000100 ffff8801b1f0e000 0000000000000000 0000000100000006 [ 30.711650] raw: ffffea0006c796e0 ffffea0006cb8e60 ffff8801dac00940 0000000000000000 [ 30.719512] page dumped because: kasan: bad access detected [ 30.725193] [ 30.726796] Memory state around the buggy address: [ 30.731701] ffff8801b1f0df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.739041] ffff8801b1f0e000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.746378] >ffff8801b1f0e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.753707] ^ [ 30.760174] ffff8801b1f0e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.767508] ffff8801b1f0e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.774838] ================================================================== [ 30.782172] Disabling lock debugging due to kernel taint [ 30.787998] Kernel panic - not syncing: panic_on_warn set ... [ 30.787998] [ 30.795385] CPU: 0 PID: 4462 Comm: syzkaller758169 Tainted: G B 4.16.0+ #17 [ 30.803688] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.813021] Call Trace: [ 30.815592] dump_stack+0x1b9/0x294 [ 30.819199] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.824366] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.829099] ? skb_release_data+0xd0/0x860 [ 30.833312] panic+0x22f/0x4de [ 30.836479] ? add_taint.cold.5+0x16/0x16 [ 30.840605] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.844987] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.849372] ? skb_release_data+0x19b/0x860 [ 30.853671] kasan_end_report+0x47/0x4f [ 30.857623] kasan_report.cold.7+0xc9/0x2f5 [ 30.861921] check_memory_region+0x13e/0x1b0 [ 30.866304] kasan_check_write+0x14/0x20 [ 30.870340] skb_release_data+0x19b/0x860 [ 30.874464] ? skb_tx_error+0x2f0/0x2f0 [ 30.878415] ? kasan_check_read+0x11/0x20 [ 30.882538] ? rcu_is_watching+0x85/0x140 [ 30.886661] ? kasan_check_write+0x14/0x20 [ 30.890872] ? sock_rmem_free+0x6f/0x90 [ 30.894824] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.900339] skb_release_all+0x4a/0x60 [ 30.904204] kfree_skb+0x195/0x560 [ 30.907718] ? skb_queue_purge+0x19/0x40 [ 30.911753] ? __kfree_skb+0x20/0x20 [ 30.915441] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.920000] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.925087] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.930077] ? trace_hardirqs_on+0xd/0x10 [ 30.934202] ? skb_dequeue+0x12f/0x180 [ 30.938064] skb_queue_purge+0x19/0x40 [ 30.941930] packet_sock_destruct+0x93/0x290 [ 30.946320] ? packet_mm_close+0xc0/0xc0 [ 30.950355] ? graph_lock+0x170/0x170 [ 30.954138] ? __free_object+0x16e/0x330 [ 30.958182] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 30.963440] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.967996] ? packet_mm_close+0xc0/0xc0 [ 30.972040] __sk_destruct+0xff/0xa40 [ 30.975817] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 30.980721] ? graph_lock+0x170/0x170 [ 30.984497] ? lock_downgrade+0x8e0/0x8e0 [ 30.988619] ? __lock_is_held+0xb5/0x140 [ 30.992657] ? kasan_check_read+0x11/0x20 [ 30.996780] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.001162] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.005721] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.010800] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.016315] ? refcount_sub_and_test+0x212/0x330 [ 31.021048] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.025780] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.030511] ? pcpu_free_area+0xa90/0xa90 [ 31.034635] sk_destruct+0x78/0x90 [ 31.038149] __sk_free+0x22e/0x340 [ 31.041666] sk_free+0x42/0x50 [ 31.044835] packet_release+0xa18/0xd50 [ 31.048784] ? lock_downgrade+0x8e0/0x8e0 [ 31.052908] ? packet_lookup_frame+0x270/0x270 [ 31.057465] ? cpumask_weight.constprop.5+0x44/0x44 [ 31.062458] ? do_raw_spin_lock+0xc1/0x200 [ 31.066670] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.072189] ? locks_remove_file+0x3f7/0x5a0 [ 31.076574] ? fcntl_setlk+0x1020/0x1020 [ 31.080609] ? fsnotify+0x415/0x1100 [ 31.084300] ? fsnotify_first_mark+0x330/0x330 [ 31.088861] sock_release+0x96/0x1b0 [ 31.092552] ? sock_alloc_file+0x4e0/0x4e0 [ 31.096763] sock_close+0x16/0x20 [ 31.100192] __fput+0x34d/0x890 [ 31.103446] ? fput+0x1a0/0x1a0 [ 31.106701] ? check_same_owner+0x320/0x320 [ 31.110998] ____fput+0x15/0x20 [ 31.114260] task_work_run+0x1e4/0x290 [ 31.118992] ? task_work_cancel+0x240/0x240 [ 31.123298] ? switch_task_namespaces+0xbd/0xd0 [ 31.127946] do_exit+0x1aee/0x2730 [ 31.131463] ? find_held_lock+0x36/0x1c0 [ 31.135502] ? mm_update_next_owner+0x980/0x980 [ 31.140151] ? kasan_check_read+0x11/0x20 [ 31.144278] ? rcu_is_watching+0x85/0x140 [ 31.148401] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 31.153569] ? tun_get+0x22b/0x360 [ 31.157084] ? tun_chr_close+0x60/0x60 [ 31.160947] ? tun_chr_write_iter+0x110/0x154 [ 31.165428] ? fsnotify+0x415/0x1100 [ 31.169121] ? kasan_check_read+0x11/0x20 [ 31.173242] ? rcu_is_watching+0x85/0x140 [ 31.177364] ? rcu_pm_notify+0xc0/0xc0 [ 31.181228] ? vfs_writev+0x255/0x330 [ 31.185002] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.189999] ? kfree+0x1e9/0x260 [ 31.193346] ? vfs_writev+0xfc/0x330 [ 31.197036] ? vfs_iter_write+0xb0/0xb0 [ 31.200992] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.206508] ? sockfd_lookup_light+0xc5/0x160 [ 31.210979] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.216490] ? __fdget_pos+0xd6/0x1e0 [ 31.220268] ? __fdget_raw+0x20/0x20 [ 31.223961] do_group_exit+0x16f/0x430 [ 31.227825] ? SyS_exit+0x30/0x30 [ 31.231264] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 31.236084] ? do_syscall_64+0xb7/0x9d0 [ 31.240035] ? do_group_exit+0x430/0x430 [ 31.244077] SyS_exit_group+0x1d/0x20 [ 31.247853] do_syscall_64+0x29e/0x9d0 [ 31.251717] ? vmalloc_sync_all+0x30/0x30 [ 31.255839] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.260583] ? syscall_return_slowpath+0x5c0/0x5c0 [ 31.265490] ? syscall_return_slowpath+0x30f/0x5c0 [ 31.270398] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 31.275739] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.280568] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.285732] RIP: 0033:0x442069 [ 31.288897] RSP: 002b:00007fff0d662c58 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 31.296579] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000442069 [ 31.303822] RDX: 0000000000441fa0 RSI: 0000000000000001 RDI: 0000000000000001 [ 31.311066] RBP: 00000000004a3c89 R08: 0000000000000020 R09: 00000000006cd018 [ 31.318310] R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff0d662d58 [ 31.325553] R13: 0000000000402df0 R14: 0000000000000000 R15: 0000000000000000 [ 31.333224] Dumping ftrace buffer: [ 31.336740] (ftrace buffer empty) [ 31.340423] Kernel Offset: disabled [ 31.344036] Rebooting in 86400 seconds..