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.45' (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: [ 45.477128] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 45.760556] 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 [ 46.135823] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 46.141968] 8021q: adding VLAN 0 to HW filter on device bond0 [ 46.181266] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 46.220285] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready executing program [ 46.259447] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 46.265572] 8021q: adding VLAN 0 to HW filter on device team0 [ 46.305121] ================================================================== [ 46.312585] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 46.319229] Write of size 4 at addr ffff8801d4254ae0 by task syzkaller736674/4464 [ 46.326822] [ 46.328434] CPU: 0 PID: 4464 Comm: syzkaller736674 Not tainted 4.16.0+ #17 [ 46.335421] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.344755] Call Trace: [ 46.347329] dump_stack+0x1b9/0x294 [ 46.350933] ? dump_stack_print_info.cold.2+0x52/0x52 [ 46.356104] ? printk+0x9e/0xba [ 46.359362] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 46.364098] ? kasan_check_write+0x14/0x20 [ 46.368313] print_address_description+0x6c/0x20b [ 46.373139] ? skb_release_data+0x19b/0x860 [ 46.377443] kasan_report.cold.7+0xac/0x2f5 [ 46.381749] check_memory_region+0x13e/0x1b0 [ 46.386138] kasan_check_write+0x14/0x20 [ 46.390177] skb_release_data+0x19b/0x860 [ 46.394307] ? skb_tx_error+0x2f0/0x2f0 [ 46.398258] ? kasan_check_read+0x11/0x20 [ 46.402386] ? rcu_is_watching+0x85/0x140 [ 46.406514] ? kasan_check_write+0x14/0x20 [ 46.410727] ? sock_rmem_free+0x6f/0x90 [ 46.414682] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.420200] skb_release_all+0x4a/0x60 [ 46.424067] kfree_skb+0x195/0x560 [ 46.427586] ? skb_queue_purge+0x19/0x40 [ 46.431624] ? __kfree_skb+0x20/0x20 [ 46.435319] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 46.439884] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 46.444968] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.449961] ? trace_hardirqs_on+0xd/0x10 [ 46.454091] ? skb_dequeue+0x12f/0x180 [ 46.457957] skb_queue_purge+0x19/0x40 [ 46.461824] packet_sock_destruct+0x93/0x290 [ 46.466212] ? packet_mm_close+0xc0/0xc0 [ 46.470250] ? graph_lock+0x170/0x170 [ 46.474034] ? __free_object+0x16e/0x330 [ 46.478083] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 46.483340] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 46.487901] ? packet_mm_close+0xc0/0xc0 [ 46.491944] __sk_destruct+0xff/0xa40 [ 46.495736] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 46.500646] ? graph_lock+0x170/0x170 [ 46.504425] ? lock_downgrade+0x8e0/0x8e0 [ 46.508550] ? __lock_is_held+0xb5/0x140 [ 46.512593] ? kasan_check_read+0x11/0x20 [ 46.516730] ? do_raw_spin_unlock+0x9e/0x2e0 [ 46.521119] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 46.525684] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 46.530781] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.536329] ? refcount_sub_and_test+0x212/0x330 [ 46.541066] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 46.545802] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 46.550537] ? pcpu_free_area+0xa90/0xa90 [ 46.554665] sk_destruct+0x78/0x90 [ 46.558188] __sk_free+0x22e/0x340 [ 46.561708] sk_free+0x42/0x50 [ 46.564880] packet_release+0xa18/0xd50 [ 46.568830] ? lock_downgrade+0x8e0/0x8e0 [ 46.572967] ? packet_lookup_frame+0x270/0x270 [ 46.577530] ? cpumask_weight.constprop.5+0x44/0x44 [ 46.582528] ? do_raw_spin_lock+0xc1/0x200 [ 46.586748] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.592263] ? locks_remove_file+0x3f7/0x5a0 [ 46.596654] ? fcntl_setlk+0x1020/0x1020 [ 46.600696] ? fsnotify+0x415/0x1100 [ 46.604394] ? fsnotify_first_mark+0x330/0x330 [ 46.608957] sock_release+0x96/0x1b0 [ 46.612652] ? sock_alloc_file+0x4e0/0x4e0 [ 46.616865] sock_close+0x16/0x20 [ 46.620296] __fput+0x34d/0x890 [ 46.623555] ? fput+0x1a0/0x1a0 [ 46.626816] ? check_same_owner+0x320/0x320 [ 46.631119] ____fput+0x15/0x20 [ 46.634376] task_work_run+0x1e4/0x290 [ 46.638244] ? task_work_cancel+0x240/0x240 [ 46.642547] ? switch_task_namespaces+0xbd/0xd0 [ 46.647208] do_exit+0x1aee/0x2730 [ 46.650731] ? mm_update_next_owner+0x980/0x980 [ 46.655381] ? finish_mkwrite_fault+0x610/0x610 [ 46.660029] ? debug_check_no_locks_freed+0x310/0x310 [ 46.665206] ? kasan_check_read+0x11/0x20 [ 46.669332] ? rcu_is_watching+0x85/0x140 [ 46.673459] ? lock_acquire+0x1dc/0x520 [ 46.677415] ? lock_release+0xa10/0xa10 [ 46.681367] ? tun_chr_close+0x60/0x60 [ 46.685236] ? kasan_check_write+0x14/0x20 [ 46.689458] ? do_raw_spin_lock+0xc1/0x200 [ 46.693674] ? __handle_mm_fault+0x88c/0x4150 [ 46.698356] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 46.703088] ? graph_lock+0x170/0x170 [ 46.706867] ? rcu_is_watching+0x85/0x140 [ 46.710991] ? graph_lock+0x170/0x170 [ 46.714768] ? find_held_lock+0x36/0x1c0 [ 46.718815] ? find_held_lock+0x36/0x1c0 [ 46.722858] ? lock_downgrade+0x8e0/0x8e0 [ 46.726986] ? handle_mm_fault+0x8c0/0xc70 [ 46.731203] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 46.736731] ? handle_mm_fault+0x55a/0xc70 [ 46.741208] ? __handle_mm_fault+0x4150/0x4150 [ 46.745786] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.751305] ? __do_page_fault+0x441/0xe40 [ 46.755522] do_group_exit+0x16f/0x430 [ 46.759390] ? SyS_exit+0x30/0x30 [ 46.762823] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 46.767647] ? do_syscall_64+0xb7/0x9d0 [ 46.771597] ? do_group_exit+0x430/0x430 [ 46.775638] SyS_exit_group+0x1d/0x20 [ 46.779421] do_syscall_64+0x29e/0x9d0 [ 46.783288] ? vmalloc_sync_all+0x30/0x30 [ 46.787426] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 46.792252] ? syscall_return_slowpath+0x5c0/0x5c0 [ 46.797171] ? syscall_return_slowpath+0x30f/0x5c0 [ 46.802083] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.807599] ? retint_user+0x18/0x18 [ 46.811296] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.816120] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.821287] RIP: 0033:0x4416b9 [ 46.824453] RSP: 002b:00007fff8456b308 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 46.832145] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416b9 [ 46.839397] RDX: 00000000004415f0 RSI: 0000000000000001 RDI: 0000000000000001 [ 46.846647] RBP: 00000000004a32b8 R08: 0000000000000000 R09: 00000000006cd018 [ 46.853899] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fff8456b3f8 [ 46.861148] R13: 0000000000402440 R14: 0000000000000000 R15: 0000000000000000 [ 46.868403] [ 46.870010] Allocated by task 4464: [ 46.873637] save_stack+0x43/0xd0 [ 46.877069] kasan_kmalloc+0xc4/0xe0 [ 46.880760] __kmalloc_node_track_caller+0x47/0x70 [ 46.885668] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 46.890401] __alloc_skb+0x14d/0x780 [ 46.894091] alloc_skb_with_frags+0x137/0x760 [ 46.898563] sock_alloc_send_pskb+0x87a/0xae0 [ 46.903043] packet_sendmsg+0x1bd1/0x6100 [ 46.907172] sock_sendmsg+0xd5/0x120 [ 46.910863] ___sys_sendmsg+0x805/0x940 [ 46.914815] __sys_sendmsg+0x115/0x270 [ 46.918682] SyS_sendmsg+0x29/0x30 [ 46.922201] do_syscall_64+0x29e/0x9d0 [ 46.926070] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.931242] [ 46.932848] Freed by task 4464: [ 46.936114] save_stack+0x43/0xd0 [ 46.939543] __kasan_slab_free+0x11a/0x170 [ 46.943753] kasan_slab_free+0xe/0x10 [ 46.947529] kfree+0xd9/0x260 [ 46.950614] skb_free_head+0x99/0xc0 [ 46.954303] skb_release_data+0x690/0x860 [ 46.958426] skb_release_all+0x4a/0x60 [ 46.962292] kfree_skb+0x195/0x560 [ 46.965812] ip6_tnl_start_xmit+0xa44/0x2290 [ 46.970198] dev_hard_start_xmit+0x264/0xc10 [ 46.974583] __dev_queue_xmit+0x2724/0x34c0 [ 46.978883] dev_queue_xmit+0x17/0x20 [ 46.982661] packet_sendmsg+0x411d/0x6100 [ 46.986787] sock_sendmsg+0xd5/0x120 [ 46.990479] ___sys_sendmsg+0x805/0x940 [ 46.994430] __sys_sendmsg+0x115/0x270 [ 46.998293] SyS_sendmsg+0x29/0x30 [ 47.001812] do_syscall_64+0x29e/0x9d0 [ 47.005677] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.010838] [ 47.012445] The buggy address belongs to the object at ffff8801d4254a00 [ 47.012445] which belongs to the cache kmalloc-512 of size 512 [ 47.025088] The buggy address is located 224 bytes inside of [ 47.025088] 512-byte region [ffff8801d4254a00, ffff8801d4254c00) [ 47.036938] The buggy address belongs to the page: [ 47.041848] page:ffffea0007509500 count:1 mapcount:0 mapping:ffff8801d4254000 index:0x0 [ 47.049972] flags: 0x2fffc0000000100(slab) [ 47.054189] raw: 02fffc0000000100 ffff8801d4254000 0000000000000000 0000000100000006 [ 47.062051] raw: ffffea00074d1be0 ffffea00074d1c60 ffff8801dac00940 0000000000000000 [ 47.069907] page dumped because: kasan: bad access detected [ 47.075589] [ 47.077192] Memory state around the buggy address: [ 47.082097] ffff8801d4254980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.089433] ffff8801d4254a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.096770] >ffff8801d4254a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.104104] ^ [ 47.110576] ffff8801d4254b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.117914] ffff8801d4254b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.125246] ================================================================== [ 47.132580] Disabling lock debugging due to kernel taint [ 47.138498] Kernel panic - not syncing: panic_on_warn set ... [ 47.138498] [ 47.145859] CPU: 0 PID: 4464 Comm: syzkaller736674 Tainted: G B 4.16.0+ #17 [ 47.154151] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.163497] Call Trace: [ 47.166075] dump_stack+0x1b9/0x294 [ 47.169681] ? dump_stack_print_info.cold.2+0x52/0x52 [ 47.174851] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.179585] ? skb_release_data+0xd0/0x860 [ 47.183796] panic+0x22f/0x4de [ 47.186966] ? add_taint.cold.5+0x16/0x16 [ 47.191095] ? do_raw_spin_unlock+0x9e/0x2e0 [ 47.195480] ? do_raw_spin_unlock+0x9e/0x2e0 [ 47.199875] ? skb_release_data+0x19b/0x860 [ 47.204174] kasan_end_report+0x47/0x4f [ 47.208123] kasan_report.cold.7+0xc9/0x2f5 [ 47.212420] check_memory_region+0x13e/0x1b0 [ 47.216804] kasan_check_write+0x14/0x20 [ 47.220841] skb_release_data+0x19b/0x860 [ 47.224966] ? skb_tx_error+0x2f0/0x2f0 [ 47.228916] ? kasan_check_read+0x11/0x20 [ 47.233041] ? rcu_is_watching+0x85/0x140 [ 47.237167] ? kasan_check_write+0x14/0x20 [ 47.241379] ? sock_rmem_free+0x6f/0x90 [ 47.245334] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.250858] skb_release_all+0x4a/0x60 [ 47.254723] kfree_skb+0x195/0x560 [ 47.258238] ? skb_queue_purge+0x19/0x40 [ 47.262279] ? __kfree_skb+0x20/0x20 [ 47.265971] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 47.270537] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 47.275631] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.280626] ? trace_hardirqs_on+0xd/0x10 [ 47.284766] ? skb_dequeue+0x12f/0x180 [ 47.288645] skb_queue_purge+0x19/0x40 [ 47.292515] packet_sock_destruct+0x93/0x290 [ 47.296916] ? packet_mm_close+0xc0/0xc0 [ 47.300956] ? graph_lock+0x170/0x170 [ 47.304733] ? __free_object+0x16e/0x330 [ 47.308770] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 47.314023] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 47.318595] ? packet_mm_close+0xc0/0xc0 [ 47.322631] __sk_destruct+0xff/0xa40 [ 47.326407] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 47.331312] ? graph_lock+0x170/0x170 [ 47.335097] ? lock_downgrade+0x8e0/0x8e0 [ 47.339219] ? __lock_is_held+0xb5/0x140 [ 47.343265] ? kasan_check_read+0x11/0x20 [ 47.347405] ? do_raw_spin_unlock+0x9e/0x2e0 [ 47.351793] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 47.356357] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 47.361441] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.366955] ? refcount_sub_and_test+0x212/0x330 [ 47.371692] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 47.376434] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 47.381169] ? pcpu_free_area+0xa90/0xa90 [ 47.385296] sk_destruct+0x78/0x90 [ 47.388813] __sk_free+0x22e/0x340 [ 47.392328] sk_free+0x42/0x50 [ 47.395502] packet_release+0xa18/0xd50 [ 47.399454] ? lock_downgrade+0x8e0/0x8e0 [ 47.403584] ? packet_lookup_frame+0x270/0x270 [ 47.408145] ? cpumask_weight.constprop.5+0x44/0x44 [ 47.413139] ? do_raw_spin_lock+0xc1/0x200 [ 47.417354] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.422870] ? locks_remove_file+0x3f7/0x5a0 [ 47.427255] ? fcntl_setlk+0x1020/0x1020 [ 47.431292] ? fsnotify+0x415/0x1100 [ 47.435006] ? fsnotify_first_mark+0x330/0x330 [ 47.439569] sock_release+0x96/0x1b0 [ 47.443260] ? sock_alloc_file+0x4e0/0x4e0 [ 47.447470] sock_close+0x16/0x20 [ 47.450902] __fput+0x34d/0x890 [ 47.454158] ? fput+0x1a0/0x1a0 [ 47.457419] ? check_same_owner+0x320/0x320 [ 47.461723] ____fput+0x15/0x20 [ 47.464989] task_work_run+0x1e4/0x290 [ 47.468853] ? task_work_cancel+0x240/0x240 [ 47.473154] ? switch_task_namespaces+0xbd/0xd0 [ 47.477811] do_exit+0x1aee/0x2730 [ 47.481338] ? mm_update_next_owner+0x980/0x980 [ 47.485999] ? finish_mkwrite_fault+0x610/0x610 [ 47.490663] ? debug_check_no_locks_freed+0x310/0x310 [ 47.495835] ? kasan_check_read+0x11/0x20 [ 47.499960] ? rcu_is_watching+0x85/0x140 [ 47.504099] ? lock_acquire+0x1dc/0x520 [ 47.508059] ? lock_release+0xa10/0xa10 [ 47.512012] ? tun_chr_close+0x60/0x60 [ 47.515880] ? kasan_check_write+0x14/0x20 [ 47.520095] ? do_raw_spin_lock+0xc1/0x200 [ 47.524310] ? __handle_mm_fault+0x88c/0x4150 [ 47.528783] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 47.533523] ? graph_lock+0x170/0x170 [ 47.537301] ? rcu_is_watching+0x85/0x140 [ 47.541424] ? graph_lock+0x170/0x170 [ 47.545201] ? find_held_lock+0x36/0x1c0 [ 47.549249] ? find_held_lock+0x36/0x1c0 [ 47.553292] ? lock_downgrade+0x8e0/0x8e0 [ 47.557418] ? handle_mm_fault+0x8c0/0xc70 [ 47.561636] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.567148] ? handle_mm_fault+0x55a/0xc70 [ 47.571359] ? __handle_mm_fault+0x4150/0x4150 [ 47.575922] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.581438] ? __do_page_fault+0x441/0xe40 [ 47.585652] do_group_exit+0x16f/0x430 [ 47.589517] ? SyS_exit+0x30/0x30 [ 47.592955] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 47.597778] ? do_syscall_64+0xb7/0x9d0 [ 47.601728] ? do_group_exit+0x430/0x430 [ 47.605766] SyS_exit_group+0x1d/0x20 [ 47.609544] do_syscall_64+0x29e/0x9d0 [ 47.613407] ? vmalloc_sync_all+0x30/0x30 [ 47.617531] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 47.622350] ? syscall_return_slowpath+0x5c0/0x5c0 [ 47.627256] ? syscall_return_slowpath+0x30f/0x5c0 [ 47.632173] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.637691] ? retint_user+0x18/0x18 [ 47.641387] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.646207] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.651376] RIP: 0033:0x4416b9 [ 47.654543] RSP: 002b:00007fff8456b308 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 47.662228] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416b9 [ 47.669481] RDX: 00000000004415f0 RSI: 0000000000000001 RDI: 0000000000000001 [ 47.676735] RBP: 00000000004a32b8 R08: 0000000000000000 R09: 00000000006cd018 [ 47.683998] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fff8456b3f8 [ 47.691248] R13: 0000000000402440 R14: 0000000000000000 R15: 0000000000000000 [ 47.698889] Dumping ftrace buffer: [ 47.702434] (ftrace buffer empty) [ 47.706123] Kernel Offset: disabled [ 47.709730] Rebooting in 86400 seconds..