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.5' (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: [ 54.920718] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 55.175199] 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 [ 55.548342] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 55.554480] 8021q: adding VLAN 0 to HW filter on device bond0 [ 55.594461] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 55.633527] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 55.675597] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 55.681745] 8021q: adding VLAN 0 to HW filter on device team0 [ 55.708851] bond0: Enslaving bond_slave as an active interface with an up link [ 55.717405] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 55.734164] team0: Port device team_slave added [ 55.739528] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 55.777152] ================================================================== [ 55.784626] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 55.791273] Write of size 4 at addr ffff8801ade383e0 by task syzkaller936662/4482 [ 55.798870] [ 55.800484] CPU: 1 PID: 4482 Comm: syzkaller936662 Not tainted 4.16.0+ #2 [ 55.807821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.817156] Call Trace: [ 55.819731] dump_stack+0x1b9/0x29f [ 55.823342] ? arch_local_irq_restore+0x52/0x52 [ 55.828427] ? printk+0x9e/0xba [ 55.831688] ? show_regs_print_info+0x18/0x18 [ 55.836168] ? kasan_check_write+0x14/0x20 [ 55.840392] print_address_description+0x6c/0x20b [ 55.845221] ? skb_release_data+0x19b/0x860 [ 55.849525] kasan_report.cold.7+0xac/0x2f5 [ 55.853830] check_memory_region+0x13e/0x1b0 [ 55.858223] kasan_check_write+0x14/0x20 [ 55.862268] skb_release_data+0x19b/0x860 [ 55.866403] ? skb_tx_error+0x2f0/0x2f0 [ 55.870363] ? kasan_check_read+0x11/0x20 [ 55.874496] ? rcu_is_watching+0x85/0x140 [ 55.878637] ? kasan_check_write+0x14/0x20 [ 55.882854] ? sock_rmem_free+0x6f/0x90 [ 55.886812] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 55.892331] skb_release_all+0x4a/0x60 [ 55.896208] kfree_skb+0x195/0x560 [ 55.899727] ? skb_queue_purge+0x19/0x40 [ 55.903769] ? __kfree_skb+0x20/0x20 [ 55.907464] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 55.912031] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 55.917117] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 55.922118] ? trace_hardirqs_on+0xd/0x10 [ 55.926247] ? skb_dequeue+0x12f/0x180 [ 55.930116] skb_queue_purge+0x19/0x40 [ 55.933988] packet_sock_destruct+0x93/0x290 [ 55.938378] ? packet_mm_close+0xc0/0xc0 [ 55.942420] ? graph_lock+0x170/0x170 [ 55.946205] ? __free_object+0x16e/0x330 [ 55.950248] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 55.955507] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 55.960089] ? packet_mm_close+0xc0/0xc0 [ 55.964137] __sk_destruct+0xff/0xa40 [ 55.967923] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 55.972834] ? graph_lock+0x170/0x170 [ 55.976619] ? lock_downgrade+0x8e0/0x8e0 [ 55.980750] ? __lock_is_held+0xb5/0x140 [ 55.984812] ? kasan_check_read+0x11/0x20 [ 55.988945] ? do_raw_spin_unlock+0x9e/0x2e0 [ 55.993335] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 55.997901] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 56.002989] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.008511] ? refcount_sub_and_test+0x212/0x330 [ 56.013251] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 56.017989] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 56.022728] ? pcpu_free_area+0xa90/0xa90 [ 56.026863] sk_destruct+0x78/0x90 [ 56.030386] __sk_free+0x22e/0x340 [ 56.033923] sk_free+0x42/0x50 [ 56.037101] packet_release+0xa18/0xd50 [ 56.041060] ? lock_downgrade+0x8e0/0x8e0 [ 56.045193] ? packet_lookup_frame+0x270/0x270 [ 56.049762] ? cpumask_weight.constprop.5+0x44/0x44 [ 56.054763] ? do_raw_spin_lock+0xc1/0x200 [ 56.058983] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.064503] ? locks_remove_file+0x3f7/0x5a0 [ 56.068895] ? fcntl_setlk+0x1020/0x1020 [ 56.072941] ? fsnotify+0x415/0x1100 [ 56.076642] ? fsnotify_first_mark+0x330/0x330 [ 56.081209] sock_release+0x96/0x1b0 [ 56.084907] ? sock_alloc_file+0x4e0/0x4e0 [ 56.089126] sock_close+0x16/0x20 [ 56.092563] __fput+0x34d/0x890 [ 56.095827] ? fput+0x1a0/0x1a0 [ 56.099088] ? check_same_owner+0x320/0x320 [ 56.103396] ____fput+0x15/0x20 [ 56.106658] task_work_run+0x1e4/0x290 [ 56.110530] ? task_work_cancel+0x240/0x240 [ 56.114836] ? switch_task_namespaces+0xbd/0xd0 [ 56.119491] do_exit+0x1aee/0x2730 [ 56.123024] ? mm_update_next_owner+0x980/0x980 [ 56.127677] ? finish_mkwrite_fault+0x610/0x610 [ 56.132329] ? debug_check_no_locks_freed+0x310/0x310 [ 56.137503] ? kasan_check_read+0x11/0x20 [ 56.141635] ? rcu_is_watching+0x85/0x140 [ 56.145767] ? lock_acquire+0x1dc/0x520 [ 56.150164] ? lock_release+0xa10/0xa10 [ 56.154127] ? tun_chr_close+0x60/0x60 [ 56.157999] ? pmd_val+0x80/0xf0 [ 56.161366] ? add_mm_counter_fast+0xd0/0xd0 [ 56.165759] ? kasan_check_write+0x14/0x20 [ 56.169976] ? do_raw_spin_lock+0xc1/0x200 [ 56.174197] ? __handle_mm_fault+0x88c/0x4150 [ 56.178677] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 56.183413] ? graph_lock+0x170/0x170 [ 56.187200] ? rcu_is_watching+0x85/0x140 [ 56.191327] ? graph_lock+0x170/0x170 [ 56.195109] ? find_held_lock+0x36/0x1c0 [ 56.199159] ? find_held_lock+0x36/0x1c0 [ 56.203205] ? lock_downgrade+0x8e0/0x8e0 [ 56.207332] ? handle_mm_fault+0x8c0/0xc70 [ 56.211551] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.217070] ? handle_mm_fault+0x55a/0xc70 [ 56.221287] ? __handle_mm_fault+0x4150/0x4150 [ 56.225854] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.231374] ? __do_page_fault+0x441/0xe40 [ 56.235596] do_group_exit+0x16f/0x430 [ 56.239477] ? SyS_exit+0x30/0x30 [ 56.242914] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 56.247738] ? do_syscall_64+0xb7/0x9d0 [ 56.251693] ? do_group_exit+0x430/0x430 [ 56.255733] SyS_exit_group+0x1d/0x20 [ 56.259514] do_syscall_64+0x29e/0x9d0 [ 56.263382] ? vmalloc_sync_all+0x30/0x30 [ 56.267512] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.272250] ? syscall_return_slowpath+0x5c0/0x5c0 [ 56.277163] ? syscall_return_slowpath+0x30f/0x5c0 [ 56.282079] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.287611] ? retint_user+0x18/0x18 [ 56.291308] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.296132] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 56.301304] RIP: 0033:0x441609 [ 56.304474] RSP: 002b:00007ffc2ddacc38 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 56.312162] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441609 [ 56.319413] RDX: 0000000000441540 RSI: 0000000000000001 RDI: 0000000000000001 [ 56.326663] RBP: 00000000004a3229 R08: 0000000000000000 R09: 00000000006cd018 [ 56.333914] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffc2ddacd28 [ 56.341165] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 56.348422] [ 56.350029] Allocated by task 4482: [ 56.353637] save_stack+0x43/0xd0 [ 56.357069] kasan_kmalloc+0xc4/0xe0 [ 56.360764] __kmalloc_node_track_caller+0x47/0x70 [ 56.365674] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 56.370408] __alloc_skb+0x14d/0x780 [ 56.374106] alloc_skb_with_frags+0x137/0x760 [ 56.378580] sock_alloc_send_pskb+0x87a/0xae0 [ 56.383069] packet_sendmsg+0x1bd1/0x6100 [ 56.387207] sock_sendmsg+0xd5/0x120 [ 56.390903] ___sys_sendmsg+0x805/0x940 [ 56.394855] __sys_sendmsg+0x115/0x270 [ 56.398717] SyS_sendmsg+0x29/0x30 [ 56.402250] do_syscall_64+0x29e/0x9d0 [ 56.406118] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 56.411285] [ 56.412892] Freed by task 4482: [ 56.416412] save_stack+0x43/0xd0 [ 56.419844] __kasan_slab_free+0x11a/0x170 [ 56.424057] kasan_slab_free+0xe/0x10 [ 56.427839] kfree+0xd9/0x260 [ 56.430923] skb_free_head+0x99/0xc0 [ 56.434614] skb_release_data+0x690/0x860 [ 56.438741] skb_release_all+0x4a/0x60 [ 56.442610] kfree_skb+0x195/0x560 [ 56.446131] ip6_tnl_start_xmit+0xa44/0x2290 [ 56.450523] dev_hard_start_xmit+0x264/0xc10 [ 56.454912] __dev_queue_xmit+0x2724/0x34c0 [ 56.459210] dev_queue_xmit+0x17/0x20 [ 56.462993] packet_sendmsg+0x411d/0x6100 [ 56.467149] sock_sendmsg+0xd5/0x120 [ 56.470848] ___sys_sendmsg+0x805/0x940 [ 56.474803] __sys_sendmsg+0x115/0x270 [ 56.478669] SyS_sendmsg+0x29/0x30 [ 56.482190] do_syscall_64+0x29e/0x9d0 [ 56.486059] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 56.491222] [ 56.492832] The buggy address belongs to the object at ffff8801ade38300 [ 56.492832] which belongs to the cache kmalloc-512 of size 512 [ 56.505469] The buggy address is located 224 bytes inside of [ 56.505469] 512-byte region [ffff8801ade38300, ffff8801ade38500) [ 56.517330] The buggy address belongs to the page: [ 56.522239] page:ffffea0006b78e00 count:1 mapcount:0 mapping:ffff8801ade38080 index:0x0 [ 56.530360] flags: 0x2fffc0000000100(slab) [ 56.534577] raw: 02fffc0000000100 ffff8801ade38080 0000000000000000 0000000100000006 [ 56.542441] raw: ffffea00075d5860 ffffea000760cce0 ffff8801dac00940 0000000000000000 [ 56.550295] page dumped because: kasan: bad access detected [ 56.555994] [ 56.557599] Memory state around the buggy address: [ 56.562507] ffff8801ade38280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.569851] ffff8801ade38300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.577194] >ffff8801ade38380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.584531] ^ [ 56.591001] ffff8801ade38400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.598336] ffff8801ade38480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.605669] ================================================================== [ 56.613004] Disabling lock debugging due to kernel taint [ 56.618760] Kernel panic - not syncing: panic_on_warn set ... [ 56.618760] [ 56.626126] CPU: 1 PID: 4482 Comm: syzkaller936662 Tainted: G B 4.16.0+ #2 [ 56.634344] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.643676] Call Trace: [ 56.646249] dump_stack+0x1b9/0x29f [ 56.649872] ? arch_local_irq_restore+0x52/0x52 [ 56.654520] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.659257] ? skb_release_data+0xe0/0x860 [ 56.663473] panic+0x22f/0x4de [ 56.666646] ? add_taint.cold.5+0x16/0x16 [ 56.670773] ? do_raw_spin_unlock+0x9e/0x2e0 [ 56.675160] ? do_raw_spin_unlock+0x9e/0x2e0 [ 56.679548] ? skb_release_data+0x19b/0x860 [ 56.683849] kasan_end_report+0x47/0x4f [ 56.687802] kasan_report.cold.7+0xc9/0x2f5 [ 56.692105] check_memory_region+0x13e/0x1b0 [ 56.696494] kasan_check_write+0x14/0x20 [ 56.700532] skb_release_data+0x19b/0x860 [ 56.704661] ? skb_tx_error+0x2f0/0x2f0 [ 56.708618] ? kasan_check_read+0x11/0x20 [ 56.712746] ? rcu_is_watching+0x85/0x140 [ 56.716872] ? kasan_check_write+0x14/0x20 [ 56.721084] ? sock_rmem_free+0x6f/0x90 [ 56.725040] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.730558] skb_release_all+0x4a/0x60 [ 56.734425] kfree_skb+0x195/0x560 [ 56.737943] ? skb_queue_purge+0x19/0x40 [ 56.741981] ? __kfree_skb+0x20/0x20 [ 56.745674] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 56.750234] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 56.755332] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 56.760339] ? trace_hardirqs_on+0xd/0x10 [ 56.764465] ? skb_dequeue+0x12f/0x180 [ 56.768331] skb_queue_purge+0x19/0x40 [ 56.772213] packet_sock_destruct+0x93/0x290 [ 56.776600] ? packet_mm_close+0xc0/0xc0 [ 56.780638] ? graph_lock+0x170/0x170 [ 56.784417] ? __free_object+0x16e/0x330 [ 56.788458] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 56.793712] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 56.798272] ? packet_mm_close+0xc0/0xc0 [ 56.802312] __sk_destruct+0xff/0xa40 [ 56.806091] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 56.811003] ? graph_lock+0x170/0x170 [ 56.814782] ? lock_downgrade+0x8e0/0x8e0 [ 56.818908] ? __lock_is_held+0xb5/0x140 [ 56.822951] ? kasan_check_read+0x11/0x20 [ 56.827083] ? do_raw_spin_unlock+0x9e/0x2e0 [ 56.831472] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 56.836046] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 56.841662] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.847183] ? refcount_sub_and_test+0x212/0x330 [ 56.851919] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 56.856654] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 56.861388] ? pcpu_free_area+0xa90/0xa90 [ 56.865518] sk_destruct+0x78/0x90 [ 56.869038] __sk_free+0x22e/0x340 [ 56.872555] sk_free+0x42/0x50 [ 56.875726] packet_release+0xa18/0xd50 [ 56.879680] ? lock_downgrade+0x8e0/0x8e0 [ 56.883806] ? packet_lookup_frame+0x270/0x270 [ 56.888366] ? cpumask_weight.constprop.5+0x44/0x44 [ 56.893364] ? do_raw_spin_lock+0xc1/0x200 [ 56.897577] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.903097] ? locks_remove_file+0x3f7/0x5a0 [ 56.907484] ? fcntl_setlk+0x1020/0x1020 [ 56.911522] ? fsnotify+0x415/0x1100 [ 56.915213] ? fsnotify_first_mark+0x330/0x330 [ 56.919774] sock_release+0x96/0x1b0 [ 56.923467] ? sock_alloc_file+0x4e0/0x4e0 [ 56.927692] sock_close+0x16/0x20 [ 56.931124] __fput+0x34d/0x890 [ 56.934382] ? fput+0x1a0/0x1a0 [ 56.937640] ? check_same_owner+0x320/0x320 [ 56.941941] ____fput+0x15/0x20 [ 56.945198] task_work_run+0x1e4/0x290 [ 56.949125] ? task_work_cancel+0x240/0x240 [ 56.953426] ? switch_task_namespaces+0xbd/0xd0 [ 56.958072] do_exit+0x1aee/0x2730 [ 56.961595] ? mm_update_next_owner+0x980/0x980 [ 56.966242] ? finish_mkwrite_fault+0x610/0x610 [ 56.970892] ? debug_check_no_locks_freed+0x310/0x310 [ 56.976063] ? kasan_check_read+0x11/0x20 [ 56.980190] ? rcu_is_watching+0x85/0x140 [ 56.984318] ? lock_acquire+0x1dc/0x520 [ 56.988270] ? lock_release+0xa10/0xa10 [ 56.992227] ? tun_chr_close+0x60/0x60 [ 56.996109] ? pmd_val+0x80/0xf0 [ 56.999453] ? add_mm_counter_fast+0xd0/0xd0 [ 57.003841] ? kasan_check_write+0x14/0x20 [ 57.008058] ? do_raw_spin_lock+0xc1/0x200 [ 57.012272] ? __handle_mm_fault+0x88c/0x4150 [ 57.016748] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 57.021483] ? graph_lock+0x170/0x170 [ 57.025264] ? rcu_is_watching+0x85/0x140 [ 57.029391] ? graph_lock+0x170/0x170 [ 57.033168] ? find_held_lock+0x36/0x1c0 [ 57.037210] ? find_held_lock+0x36/0x1c0 [ 57.041250] ? lock_downgrade+0x8e0/0x8e0 [ 57.045375] ? handle_mm_fault+0x8c0/0xc70 [ 57.049589] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 57.055103] ? handle_mm_fault+0x55a/0xc70 [ 57.059321] ? __handle_mm_fault+0x4150/0x4150 [ 57.063883] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.069401] ? __do_page_fault+0x441/0xe40 [ 57.073615] do_group_exit+0x16f/0x430 [ 57.077480] ? SyS_exit+0x30/0x30 [ 57.080914] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 57.085735] ? do_syscall_64+0xb7/0x9d0 [ 57.089685] ? do_group_exit+0x430/0x430 [ 57.093722] SyS_exit_group+0x1d/0x20 [ 57.097500] do_syscall_64+0x29e/0x9d0 [ 57.101364] ? vmalloc_sync_all+0x30/0x30 [ 57.105490] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.110225] ? syscall_return_slowpath+0x5c0/0x5c0 [ 57.115133] ? syscall_return_slowpath+0x30f/0x5c0 [ 57.120052] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.125581] ? retint_user+0x18/0x18 [ 57.129277] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.134108] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 57.139277] RIP: 0033:0x441609 [ 57.142445] RSP: 002b:00007ffc2ddacc38 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 57.150135] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441609 [ 57.157383] RDX: 0000000000441540 RSI: 0000000000000001 RDI: 0000000000000001 [ 57.164631] RBP: 00000000004a3229 R08: 0000000000000000 R09: 00000000006cd018 [ 57.171880] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffc2ddacd28 [ 57.179129] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 57.186880] Dumping ftrace buffer: [ 57.190396] (ftrace buffer empty) [ 57.194088] Kernel Offset: disabled [ 57.197701] Rebooting in 86400 seconds..