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 net.ipv6.conf.syz_tun.router_solicitations = 0 syzkaller login: [ 30.119651] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 30.378806] 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.754361] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 30.760476] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.801276] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 30.839628] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 30.879642] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 30.885752] 8021q: adding VLAN 0 to HW filter on device team0 [ 30.914257] bond0: Enslaving bond_slave as an active interface with an up link [ 30.923626] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 30.935814] team0: Port device team_slave added [ 30.941130] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 30.948009] ip (4650) used greatest stack depth: 15960 bytes left [ 30.990102] ================================================================== [ 30.997547] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 31.004193] Write of size 4 at addr ffff8801b0eddba0 by task syzkaller233649/4477 [ 31.011784] [ 31.013391] CPU: 0 PID: 4477 Comm: syzkaller233649 Not tainted 4.16.0+ #17 [ 31.020374] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.029703] Call Trace: [ 31.032282] dump_stack+0x1b9/0x294 [ 31.035886] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.041061] ? printk+0x9e/0xba [ 31.044318] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.049054] ? kasan_check_write+0x14/0x20 [ 31.053268] print_address_description+0x6c/0x20b [ 31.058088] ? skb_release_data+0x19b/0x860 [ 31.062384] kasan_report.cold.7+0xac/0x2f5 [ 31.066685] check_memory_region+0x13e/0x1b0 [ 31.071073] kasan_check_write+0x14/0x20 [ 31.075109] skb_release_data+0x19b/0x860 [ 31.079234] ? skb_tx_error+0x2f0/0x2f0 [ 31.083184] ? kasan_check_read+0x11/0x20 [ 31.087308] ? rcu_is_watching+0x85/0x140 [ 31.091433] ? kasan_check_write+0x14/0x20 [ 31.095642] ? sock_rmem_free+0x6f/0x90 [ 31.099593] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.105109] skb_release_all+0x4a/0x60 [ 31.108971] kfree_skb+0x195/0x560 [ 31.112492] ? skb_queue_purge+0x19/0x40 [ 31.116528] ? __kfree_skb+0x20/0x20 [ 31.120218] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.124779] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.129860] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.134850] ? trace_hardirqs_on+0xd/0x10 [ 31.138976] ? skb_dequeue+0x12f/0x180 [ 31.142840] skb_queue_purge+0x19/0x40 [ 31.146706] packet_sock_destruct+0x93/0x290 [ 31.151097] ? packet_mm_close+0xc0/0xc0 [ 31.155133] ? graph_lock+0x170/0x170 [ 31.158931] ? __free_object+0x16e/0x330 [ 31.162970] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 31.168222] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.172779] ? packet_mm_close+0xc0/0xc0 [ 31.176815] __sk_destruct+0xff/0xa40 [ 31.180592] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 31.185494] ? graph_lock+0x170/0x170 [ 31.189270] ? lock_downgrade+0x8e0/0x8e0 [ 31.193391] ? __lock_is_held+0xb5/0x140 [ 31.197429] ? kasan_check_read+0x11/0x20 [ 31.201550] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.205932] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.210491] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.215576] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.221088] ? refcount_sub_and_test+0x212/0x330 [ 31.225821] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.230551] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.235281] ? pcpu_free_area+0xa90/0xa90 [ 31.239407] sk_destruct+0x78/0x90 [ 31.242923] __sk_free+0x22e/0x340 [ 31.246437] sk_free+0x42/0x50 [ 31.249605] packet_release+0xa18/0xd50 [ 31.253551] ? lock_downgrade+0x8e0/0x8e0 [ 31.257681] ? packet_lookup_frame+0x270/0x270 [ 31.262251] ? cpumask_weight.constprop.5+0x44/0x44 [ 31.267242] ? do_raw_spin_lock+0xc1/0x200 [ 31.271452] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.276966] ? locks_remove_file+0x3f7/0x5a0 [ 31.281351] ? fcntl_setlk+0x1020/0x1020 [ 31.285390] ? fsnotify+0x415/0x1100 [ 31.289085] ? fsnotify_first_mark+0x330/0x330 [ 31.293644] sock_release+0x96/0x1b0 [ 31.297334] ? sock_alloc_file+0x4e0/0x4e0 [ 31.301543] sock_close+0x16/0x20 [ 31.304971] __fput+0x34d/0x890 [ 31.308227] ? fput+0x1a0/0x1a0 [ 31.311482] ? check_same_owner+0x320/0x320 [ 31.315783] ____fput+0x15/0x20 [ 31.319041] task_work_run+0x1e4/0x290 [ 31.322905] ? task_work_cancel+0x240/0x240 [ 31.327214] ? switch_task_namespaces+0xbd/0xd0 [ 31.331862] do_exit+0x1aee/0x2730 [ 31.335380] ? mm_update_next_owner+0x980/0x980 [ 31.340033] ? finish_mkwrite_fault+0x610/0x610 [ 31.344681] ? debug_check_no_locks_freed+0x310/0x310 [ 31.349846] ? kasan_check_read+0x11/0x20 [ 31.353969] ? rcu_is_watching+0x85/0x140 [ 31.358095] ? lock_acquire+0x1dc/0x520 [ 31.362048] ? lock_release+0xa10/0xa10 [ 31.365997] ? tun_chr_close+0x60/0x60 [ 31.369868] ? kasan_check_write+0x14/0x20 [ 31.374078] ? do_raw_spin_lock+0xc1/0x200 [ 31.378289] ? __handle_mm_fault+0x88c/0x4150 [ 31.382763] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 31.387491] ? graph_lock+0x170/0x170 [ 31.391267] ? rcu_is_watching+0x85/0x140 [ 31.395390] ? graph_lock+0x170/0x170 [ 31.399164] ? find_held_lock+0x36/0x1c0 [ 31.403204] ? find_held_lock+0x36/0x1c0 [ 31.407246] ? lock_downgrade+0x8e0/0x8e0 [ 31.411371] ? handle_mm_fault+0x8c0/0xc70 [ 31.415586] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.421099] ? handle_mm_fault+0x55a/0xc70 [ 31.425311] ? __handle_mm_fault+0x4150/0x4150 [ 31.429872] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.435399] ? __do_page_fault+0x441/0xe40 [ 31.439630] do_group_exit+0x16f/0x430 [ 31.443495] ? SyS_exit+0x30/0x30 [ 31.446926] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 31.451745] ? do_syscall_64+0xb7/0x9d0 [ 31.455698] ? do_group_exit+0x430/0x430 [ 31.459739] SyS_exit_group+0x1d/0x20 [ 31.463516] do_syscall_64+0x29e/0x9d0 [ 31.467382] ? vmalloc_sync_all+0x30/0x30 [ 31.471506] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.476237] ? syscall_return_slowpath+0x5c0/0x5c0 [ 31.481143] ? syscall_return_slowpath+0x30f/0x5c0 [ 31.486051] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.491561] ? retint_user+0x18/0x18 [ 31.495254] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.500073] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.505238] RIP: 0033:0x4416e9 [ 31.508402] RSP: 002b:00007fffb9f51f68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 31.516087] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 31.523343] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 31.530587] RBP: 00000000004a3309 R08: 0000000000000001 R09: 00000000006cd018 [ 31.537831] R10: 0000000000000002 R11: 0000000000000202 R12: 00007fffb9f52058 [ 31.545075] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 31.552324] [ 31.553925] Allocated by task 4477: [ 31.557528] save_stack+0x43/0xd0 [ 31.560955] kasan_kmalloc+0xc4/0xe0 [ 31.564644] __kmalloc_node_track_caller+0x47/0x70 [ 31.569554] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 31.574283] __alloc_skb+0x14d/0x780 [ 31.577970] alloc_skb_with_frags+0x137/0x760 [ 31.582436] sock_alloc_send_pskb+0x87a/0xae0 [ 31.586905] packet_sendmsg+0x1bd1/0x6100 [ 31.591037] sock_sendmsg+0xd5/0x120 [ 31.594728] ___sys_sendmsg+0x805/0x940 [ 31.598677] __sys_sendmsg+0x115/0x270 [ 31.602536] SyS_sendmsg+0x29/0x30 [ 31.606054] do_syscall_64+0x29e/0x9d0 [ 31.609915] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.615073] [ 31.616674] Freed by task 4477: [ 31.619926] save_stack+0x43/0xd0 [ 31.623354] __kasan_slab_free+0x11a/0x170 [ 31.627561] kasan_slab_free+0xe/0x10 [ 31.631333] kfree+0xd9/0x260 [ 31.634416] skb_free_head+0x99/0xc0 [ 31.638103] skb_release_data+0x690/0x860 [ 31.642225] skb_release_all+0x4a/0x60 [ 31.646086] kfree_skb+0x195/0x560 [ 31.649604] ip6_tnl_start_xmit+0xa44/0x2290 [ 31.653989] dev_hard_start_xmit+0x264/0xc10 [ 31.658375] __dev_queue_xmit+0x2724/0x34c0 [ 31.662671] dev_queue_xmit+0x17/0x20 [ 31.666446] packet_sendmsg+0x411d/0x6100 [ 31.670569] sock_sendmsg+0xd5/0x120 [ 31.674258] ___sys_sendmsg+0x805/0x940 [ 31.678207] __sys_sendmsg+0x115/0x270 [ 31.682066] SyS_sendmsg+0x29/0x30 [ 31.685582] do_syscall_64+0x29e/0x9d0 [ 31.689445] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.694605] [ 31.696207] The buggy address belongs to the object at ffff8801b0eddac0 [ 31.696207] which belongs to the cache kmalloc-512 of size 512 [ 31.708840] The buggy address is located 224 bytes inside of [ 31.708840] 512-byte region [ffff8801b0eddac0, ffff8801b0eddcc0) [ 31.720686] The buggy address belongs to the page: [ 31.725589] page:ffffea0006c3b740 count:1 mapcount:0 mapping:ffff8801b0edd0c0 index:0x0 [ 31.733706] flags: 0x2fffc0000000100(slab) [ 31.737919] raw: 02fffc0000000100 ffff8801b0edd0c0 0000000000000000 0000000100000006 [ 31.745774] raw: ffffea0006c91620 ffffea0006c29aa0 ffff8801dac00940 0000000000000000 [ 31.753624] page dumped because: kasan: bad access detected [ 31.759304] [ 31.760903] Memory state around the buggy address: [ 31.765809] ffff8801b0edda80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.773147] ffff8801b0eddb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.780477] >ffff8801b0eddb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.787805] ^ [ 31.792185] ffff8801b0eddc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.799517] ffff8801b0eddc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.806846] ================================================================== [ 31.814174] Disabling lock debugging due to kernel taint [ 31.819900] Kernel panic - not syncing: panic_on_warn set ... [ 31.819900] [ 31.827264] CPU: 0 PID: 4477 Comm: syzkaller233649 Tainted: G B 4.16.0+ #17 [ 31.835562] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.844887] Call Trace: [ 31.847454] dump_stack+0x1b9/0x294 [ 31.851055] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.856222] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.860952] ? skb_release_data+0xd0/0x860 [ 31.865162] panic+0x22f/0x4de [ 31.868328] ? add_taint.cold.5+0x16/0x16 [ 31.872451] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.876834] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.881214] ? skb_release_data+0x19b/0x860 [ 31.885511] kasan_end_report+0x47/0x4f [ 31.889461] kasan_report.cold.7+0xc9/0x2f5 [ 31.893758] check_memory_region+0x13e/0x1b0 [ 31.898138] kasan_check_write+0x14/0x20 [ 31.902171] skb_release_data+0x19b/0x860 [ 31.906297] ? skb_tx_error+0x2f0/0x2f0 [ 31.910244] ? kasan_check_read+0x11/0x20 [ 31.914375] ? rcu_is_watching+0x85/0x140 [ 31.918498] ? kasan_check_write+0x14/0x20 [ 31.922708] ? sock_rmem_free+0x6f/0x90 [ 31.926660] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.932175] skb_release_all+0x4a/0x60 [ 31.936037] kfree_skb+0x195/0x560 [ 31.939550] ? skb_queue_purge+0x19/0x40 [ 31.943584] ? __kfree_skb+0x20/0x20 [ 31.947272] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.952396] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.957475] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.962465] ? trace_hardirqs_on+0xd/0x10 [ 31.966594] ? skb_dequeue+0x12f/0x180 [ 31.970459] skb_queue_purge+0x19/0x40 [ 31.974331] packet_sock_destruct+0x93/0x290 [ 31.978715] ? packet_mm_close+0xc0/0xc0 [ 31.982749] ? graph_lock+0x170/0x170 [ 31.986527] ? __free_object+0x16e/0x330 [ 31.990560] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 31.995813] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.000369] ? packet_mm_close+0xc0/0xc0 [ 32.004406] __sk_destruct+0xff/0xa40 [ 32.008182] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 32.013085] ? graph_lock+0x170/0x170 [ 32.016859] ? lock_downgrade+0x8e0/0x8e0 [ 32.020981] ? __lock_is_held+0xb5/0x140 [ 32.025024] ? kasan_check_read+0x11/0x20 [ 32.029148] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.033531] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.038097] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.043177] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.048687] ? refcount_sub_and_test+0x212/0x330 [ 32.053419] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.058149] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.062878] ? pcpu_free_area+0xa90/0xa90 [ 32.067005] sk_destruct+0x78/0x90 [ 32.070528] __sk_free+0x22e/0x340 [ 32.074041] sk_free+0x42/0x50 [ 32.077214] packet_release+0xa18/0xd50 [ 32.081162] ? lock_downgrade+0x8e0/0x8e0 [ 32.085291] ? packet_lookup_frame+0x270/0x270 [ 32.089851] ? cpumask_weight.constprop.5+0x44/0x44 [ 32.094844] ? do_raw_spin_lock+0xc1/0x200 [ 32.099054] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.104566] ? locks_remove_file+0x3f7/0x5a0 [ 32.108948] ? fcntl_setlk+0x1020/0x1020 [ 32.112982] ? fsnotify+0x415/0x1100 [ 32.116672] ? fsnotify_first_mark+0x330/0x330 [ 32.121235] sock_release+0x96/0x1b0 [ 32.124923] ? sock_alloc_file+0x4e0/0x4e0 [ 32.129130] sock_close+0x16/0x20 [ 32.132556] __fput+0x34d/0x890 [ 32.135811] ? fput+0x1a0/0x1a0 [ 32.139066] ? check_same_owner+0x320/0x320 [ 32.143360] ____fput+0x15/0x20 [ 32.146615] task_work_run+0x1e4/0x290 [ 32.150476] ? task_work_cancel+0x240/0x240 [ 32.154771] ? switch_task_namespaces+0xbd/0xd0 [ 32.159413] do_exit+0x1aee/0x2730 [ 32.162928] ? mm_update_next_owner+0x980/0x980 [ 32.167570] ? finish_mkwrite_fault+0x610/0x610 [ 32.172212] ? debug_check_no_locks_freed+0x310/0x310 [ 32.177374] ? kasan_check_read+0x11/0x20 [ 32.181499] ? rcu_is_watching+0x85/0x140 [ 32.185627] ? lock_acquire+0x1dc/0x520 [ 32.189575] ? lock_release+0xa10/0xa10 [ 32.193524] ? tun_chr_close+0x60/0x60 [ 32.197385] ? kasan_check_write+0x14/0x20 [ 32.201592] ? do_raw_spin_lock+0xc1/0x200 [ 32.205802] ? __handle_mm_fault+0x88c/0x4150 [ 32.210271] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 32.214998] ? graph_lock+0x170/0x170 [ 32.218775] ? rcu_is_watching+0x85/0x140 [ 32.222896] ? graph_lock+0x170/0x170 [ 32.226671] ? find_held_lock+0x36/0x1c0 [ 32.230706] ? find_held_lock+0x36/0x1c0 [ 32.234744] ? lock_downgrade+0x8e0/0x8e0 [ 32.238865] ? handle_mm_fault+0x8c0/0xc70 [ 32.243077] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.248587] ? handle_mm_fault+0x55a/0xc70 [ 32.252796] ? __handle_mm_fault+0x4150/0x4150 [ 32.257352] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.262864] ? __do_page_fault+0x441/0xe40 [ 32.267074] do_group_exit+0x16f/0x430 [ 32.270935] ? SyS_exit+0x30/0x30 [ 32.274362] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 32.279178] ? do_syscall_64+0xb7/0x9d0 [ 32.283128] ? do_group_exit+0x430/0x430 [ 32.287161] SyS_exit_group+0x1d/0x20 [ 32.290935] do_syscall_64+0x29e/0x9d0 [ 32.294794] ? vmalloc_sync_all+0x30/0x30 [ 32.298923] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.303655] ? syscall_return_slowpath+0x5c0/0x5c0 [ 32.308558] ? syscall_return_slowpath+0x30f/0x5c0 [ 32.313469] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.318979] ? retint_user+0x18/0x18 [ 32.322676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.327492] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.332663] RIP: 0033:0x4416e9 [ 32.335828] RSP: 002b:00007fffb9f51f68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 32.343508] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 32.350749] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 32.357991] RBP: 00000000004a3309 R08: 0000000000000001 R09: 00000000006cd018 [ 32.365235] R10: 0000000000000002 R11: 0000000000000202 R12: 00007fffb9f52058 [ 32.372479] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 32.380138] Dumping ftrace buffer: [ 32.383654] (ftrace buffer empty) [ 32.387337] Kernel Offset: disabled [ 32.390935] Rebooting in 86400 seconds..