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.11' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 syzkaller login: [ 31.023946] 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 [ 31.294719] 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 [ 31.699878] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 31.706048] 8021q: adding VLAN 0 to HW filter on device bond0 [ 31.748329] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 31.792612] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 31.838367] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 31.844487] 8021q: adding VLAN 0 to HW filter on device team0 [ 31.873805] bond0: Enslaving bond_slave as an active interface with an up link executing program [ 31.883087] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 31.896444] team0: Port device team_slave added [ 31.901963] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 31.939173] ================================================================== [ 31.946641] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 31.953297] Write of size 4 at addr ffff8801d8720620 by task syzkaller062489/4520 [ 31.960892] [ 31.962504] CPU: 0 PID: 4520 Comm: syzkaller062489 Not tainted 4.16.0+ #17 [ 31.969491] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.978821] Call Trace: [ 31.981397] dump_stack+0x1b9/0x294 [ 31.985004] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.990172] ? printk+0x9e/0xba [ 31.993428] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.998165] ? kasan_check_write+0x14/0x20 [ 32.002381] print_address_description+0x6c/0x20b [ 32.007204] ? skb_release_data+0x19b/0x860 [ 32.011510] kasan_report.cold.7+0xac/0x2f5 [ 32.015813] check_memory_region+0x13e/0x1b0 [ 32.020202] kasan_check_write+0x14/0x20 [ 32.024251] skb_release_data+0x19b/0x860 [ 32.028383] ? skb_tx_error+0x2f0/0x2f0 [ 32.032336] ? kasan_check_read+0x11/0x20 [ 32.036468] ? rcu_is_watching+0x85/0x140 [ 32.040621] ? kasan_check_write+0x14/0x20 [ 32.044841] ? sock_rmem_free+0x6f/0x90 [ 32.048806] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.054325] skb_release_all+0x4a/0x60 [ 32.058191] kfree_skb+0x195/0x560 [ 32.061711] ? skb_queue_purge+0x19/0x40 [ 32.065751] ? __kfree_skb+0x20/0x20 [ 32.069447] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.074104] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.079188] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.084207] ? trace_hardirqs_on+0xd/0x10 [ 32.088335] ? skb_dequeue+0x12f/0x180 [ 32.092317] skb_queue_purge+0x19/0x40 [ 32.096187] packet_sock_destruct+0x93/0x290 [ 32.100573] ? packet_mm_close+0xc0/0xc0 [ 32.104614] ? graph_lock+0x170/0x170 [ 32.108393] ? __free_object+0x16e/0x330 [ 32.112432] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 32.117709] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.122281] ? packet_mm_close+0xc0/0xc0 [ 32.126330] __sk_destruct+0xff/0xa40 [ 32.130112] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 32.135038] ? graph_lock+0x170/0x170 [ 32.138824] ? lock_downgrade+0x8e0/0x8e0 [ 32.142952] ? __lock_is_held+0xb5/0x140 [ 32.146994] ? kasan_check_read+0x11/0x20 [ 32.151128] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.155515] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.160078] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.165164] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.170687] ? refcount_sub_and_test+0x212/0x330 [ 32.175443] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.180178] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.184913] ? pcpu_free_area+0xa90/0xa90 [ 32.189047] sk_destruct+0x78/0x90 [ 32.192566] __sk_free+0x22e/0x340 [ 32.196093] sk_free+0x42/0x50 [ 32.199268] packet_release+0xa18/0xd50 [ 32.203223] ? lock_downgrade+0x8e0/0x8e0 [ 32.207363] ? packet_lookup_frame+0x270/0x270 [ 32.211926] ? cpumask_weight.constprop.5+0x44/0x44 [ 32.216923] ? do_raw_spin_lock+0xc1/0x200 [ 32.221139] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.226656] ? locks_remove_file+0x3f7/0x5a0 [ 32.231058] ? fcntl_setlk+0x1020/0x1020 [ 32.235109] ? fsnotify+0x415/0x1100 [ 32.238810] ? fsnotify_first_mark+0x330/0x330 [ 32.243375] sock_release+0x96/0x1b0 [ 32.247070] ? sock_alloc_file+0x4e0/0x4e0 [ 32.251280] sock_close+0x16/0x20 [ 32.254710] __fput+0x34d/0x890 [ 32.257969] ? fput+0x1a0/0x1a0 [ 32.261228] ? check_same_owner+0x320/0x320 [ 32.265528] ____fput+0x15/0x20 [ 32.268786] task_work_run+0x1e4/0x290 [ 32.272652] ? task_work_cancel+0x240/0x240 [ 32.276956] ? switch_task_namespaces+0xbd/0xd0 [ 32.281603] do_exit+0x1aee/0x2730 [ 32.285131] ? mm_update_next_owner+0x980/0x980 [ 32.289789] ? finish_mkwrite_fault+0x610/0x610 [ 32.294446] ? debug_check_no_locks_freed+0x310/0x310 [ 32.299614] ? kasan_check_read+0x11/0x20 [ 32.303739] ? rcu_is_watching+0x85/0x140 [ 32.307865] ? lock_acquire+0x1dc/0x520 [ 32.311819] ? lock_release+0xa10/0xa10 [ 32.315771] ? tun_chr_close+0x60/0x60 [ 32.319651] ? kasan_check_write+0x14/0x20 [ 32.323875] ? do_raw_spin_lock+0xc1/0x200 [ 32.328090] ? __handle_mm_fault+0x88c/0x4150 [ 32.332569] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 32.337300] ? graph_lock+0x170/0x170 [ 32.341079] ? rcu_is_watching+0x85/0x140 [ 32.345203] ? graph_lock+0x170/0x170 [ 32.348981] ? find_held_lock+0x36/0x1c0 [ 32.353034] ? find_held_lock+0x36/0x1c0 [ 32.357079] ? lock_downgrade+0x8e0/0x8e0 [ 32.361230] ? handle_mm_fault+0x8c0/0xc70 [ 32.365446] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.370959] ? handle_mm_fault+0x55a/0xc70 [ 32.375172] ? __handle_mm_fault+0x4150/0x4150 [ 32.379737] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.385264] ? __do_page_fault+0x441/0xe40 [ 32.389480] do_group_exit+0x16f/0x430 [ 32.393349] ? SyS_exit+0x30/0x30 [ 32.396783] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 32.401606] ? do_syscall_64+0xb7/0x9d0 [ 32.405560] ? do_group_exit+0x430/0x430 [ 32.409601] SyS_exit_group+0x1d/0x20 [ 32.413396] do_syscall_64+0x29e/0x9d0 [ 32.417261] ? vmalloc_sync_all+0x30/0x30 [ 32.421400] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.426139] ? syscall_return_slowpath+0x5c0/0x5c0 [ 32.431052] ? syscall_return_slowpath+0x30f/0x5c0 [ 32.435967] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.441482] ? retint_user+0x18/0x18 [ 32.445177] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.450004] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.455177] RIP: 0033:0x4416e9 [ 32.458346] RSP: 002b:00007ffd1df1cba8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 32.466036] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 32.473293] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 32.480539] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 32.487785] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd1df1cc98 [ 32.495035] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 32.502290] [ 32.503894] Allocated by task 4520: [ 32.507499] save_stack+0x43/0xd0 [ 32.510932] kasan_kmalloc+0xc4/0xe0 [ 32.514621] __kmalloc_node_track_caller+0x47/0x70 [ 32.519539] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 32.524270] __alloc_skb+0x14d/0x780 [ 32.527962] alloc_skb_with_frags+0x137/0x760 [ 32.532436] sock_alloc_send_pskb+0x87a/0xae0 [ 32.536910] packet_sendmsg+0x1bd1/0x6100 [ 32.541045] sock_sendmsg+0xd5/0x120 [ 32.544740] ___sys_sendmsg+0x805/0x940 [ 32.548688] __sys_sendmsg+0x115/0x270 [ 32.552549] SyS_sendmsg+0x29/0x30 [ 32.556066] do_syscall_64+0x29e/0x9d0 [ 32.559932] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.565099] [ 32.566705] Freed by task 4520: [ 32.569963] save_stack+0x43/0xd0 [ 32.573566] __kasan_slab_free+0x11a/0x170 [ 32.577775] kasan_slab_free+0xe/0x10 [ 32.581549] kfree+0xd9/0x260 [ 32.584632] skb_free_head+0x99/0xc0 [ 32.588322] skb_release_data+0x690/0x860 [ 32.592448] skb_release_all+0x4a/0x60 [ 32.596313] kfree_skb+0x195/0x560 [ 32.599829] ip6_tnl_start_xmit+0xa44/0x2290 [ 32.604212] dev_hard_start_xmit+0x264/0xc10 [ 32.608598] __dev_queue_xmit+0x2724/0x34c0 [ 32.612901] dev_queue_xmit+0x17/0x20 [ 32.616679] packet_sendmsg+0x411d/0x6100 [ 32.620806] sock_sendmsg+0xd5/0x120 [ 32.624497] ___sys_sendmsg+0x805/0x940 [ 32.628448] __sys_sendmsg+0x115/0x270 [ 32.632312] SyS_sendmsg+0x29/0x30 [ 32.635829] do_syscall_64+0x29e/0x9d0 [ 32.639695] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.644858] [ 32.646479] The buggy address belongs to the object at ffff8801d8720540 [ 32.646479] which belongs to the cache kmalloc-512 of size 512 [ 32.659198] The buggy address is located 224 bytes inside of [ 32.659198] 512-byte region [ffff8801d8720540, ffff8801d8720740) [ 32.671053] The buggy address belongs to the page: [ 32.675961] page:ffffea000761c800 count:1 mapcount:0 mapping:ffff8801d8720040 index:0x0 [ 32.684078] flags: 0x2fffc0000000100(slab) [ 32.688291] raw: 02fffc0000000100 ffff8801d8720040 0000000000000000 0000000100000006 [ 32.696152] raw: ffffea00075d53e0 ffffea00075ce020 ffff8801dac00940 0000000000000000 [ 32.704010] page dumped because: kasan: bad access detected [ 32.709702] [ 32.711302] Memory state around the buggy address: [ 32.716207] ffff8801d8720500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.723543] ffff8801d8720580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.730879] >ffff8801d8720600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.738209] ^ [ 32.742593] ffff8801d8720680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.749938] ffff8801d8720700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.757284] ================================================================== [ 32.764615] Disabling lock debugging due to kernel taint [ 32.770506] Kernel panic - not syncing: panic_on_warn set ... [ 32.770506] [ 32.777890] CPU: 0 PID: 4520 Comm: syzkaller062489 Tainted: G B 4.16.0+ #17 [ 32.786195] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.795525] Call Trace: [ 32.798098] dump_stack+0x1b9/0x294 [ 32.801704] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.806870] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.811600] ? skb_release_data+0xd0/0x860 [ 32.815812] panic+0x22f/0x4de [ 32.818980] ? add_taint.cold.5+0x16/0x16 [ 32.823105] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.827492] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.831879] ? skb_release_data+0x19b/0x860 [ 32.836177] kasan_end_report+0x47/0x4f [ 32.840129] kasan_report.cold.7+0xc9/0x2f5 [ 32.844427] check_memory_region+0x13e/0x1b0 [ 32.848814] kasan_check_write+0x14/0x20 [ 32.852864] skb_release_data+0x19b/0x860 [ 32.857012] ? skb_tx_error+0x2f0/0x2f0 [ 32.860972] ? kasan_check_read+0x11/0x20 [ 32.865099] ? rcu_is_watching+0x85/0x140 [ 32.869230] ? kasan_check_write+0x14/0x20 [ 32.873455] ? sock_rmem_free+0x6f/0x90 [ 32.878708] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.884221] skb_release_all+0x4a/0x60 [ 32.888089] kfree_skb+0x195/0x560 [ 32.891603] ? skb_queue_purge+0x19/0x40 [ 32.895646] ? __kfree_skb+0x20/0x20 [ 32.899336] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.903893] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.908971] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.913961] ? trace_hardirqs_on+0xd/0x10 [ 32.918087] ? skb_dequeue+0x12f/0x180 [ 32.921950] skb_queue_purge+0x19/0x40 [ 32.925817] packet_sock_destruct+0x93/0x290 [ 32.930203] ? packet_mm_close+0xc0/0xc0 [ 32.934238] ? graph_lock+0x170/0x170 [ 32.938021] ? __free_object+0x16e/0x330 [ 32.942062] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 32.947315] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.951871] ? packet_mm_close+0xc0/0xc0 [ 32.955909] __sk_destruct+0xff/0xa40 [ 32.959686] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 32.964601] ? graph_lock+0x170/0x170 [ 32.968388] ? lock_downgrade+0x8e0/0x8e0 [ 32.972511] ? __lock_is_held+0xb5/0x140 [ 32.976549] ? kasan_check_read+0x11/0x20 [ 32.980673] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.985059] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.989622] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.994707] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.000224] ? refcount_sub_and_test+0x212/0x330 [ 33.004959] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.009692] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.014422] ? pcpu_free_area+0xa90/0xa90 [ 33.018546] sk_destruct+0x78/0x90 [ 33.022063] __sk_free+0x22e/0x340 [ 33.025590] sk_free+0x42/0x50 [ 33.028762] packet_release+0xa18/0xd50 [ 33.032711] ? lock_downgrade+0x8e0/0x8e0 [ 33.036835] ? packet_lookup_frame+0x270/0x270 [ 33.041418] ? cpumask_weight.constprop.5+0x44/0x44 [ 33.046422] ? do_raw_spin_lock+0xc1/0x200 [ 33.050653] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.056169] ? locks_remove_file+0x3f7/0x5a0 [ 33.060569] ? fcntl_setlk+0x1020/0x1020 [ 33.064610] ? fsnotify+0x415/0x1100 [ 33.068305] ? fsnotify_first_mark+0x330/0x330 [ 33.072869] sock_release+0x96/0x1b0 [ 33.076559] ? sock_alloc_file+0x4e0/0x4e0 [ 33.080769] sock_close+0x16/0x20 [ 33.084197] __fput+0x34d/0x890 [ 33.087462] ? fput+0x1a0/0x1a0 [ 33.090719] ? check_same_owner+0x320/0x320 [ 33.095024] ____fput+0x15/0x20 [ 33.098291] task_work_run+0x1e4/0x290 [ 33.102166] ? task_work_cancel+0x240/0x240 [ 33.106464] ? switch_task_namespaces+0xbd/0xd0 [ 33.111111] do_exit+0x1aee/0x2730 [ 33.114630] ? mm_update_next_owner+0x980/0x980 [ 33.119278] ? finish_mkwrite_fault+0x610/0x610 [ 33.123935] ? debug_check_no_locks_freed+0x310/0x310 [ 33.129102] ? kasan_check_read+0x11/0x20 [ 33.133239] ? rcu_is_watching+0x85/0x140 [ 33.137364] ? lock_acquire+0x1dc/0x520 [ 33.141316] ? lock_release+0xa10/0xa10 [ 33.145267] ? tun_chr_close+0x60/0x60 [ 33.149131] ? kasan_check_write+0x14/0x20 [ 33.153341] ? do_raw_spin_lock+0xc1/0x200 [ 33.157553] ? __handle_mm_fault+0x88c/0x4150 [ 33.162054] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 33.166791] ? graph_lock+0x170/0x170 [ 33.170565] ? rcu_is_watching+0x85/0x140 [ 33.174687] ? graph_lock+0x170/0x170 [ 33.178462] ? find_held_lock+0x36/0x1c0 [ 33.182502] ? find_held_lock+0x36/0x1c0 [ 33.186542] ? lock_downgrade+0x8e0/0x8e0 [ 33.190667] ? handle_mm_fault+0x8c0/0xc70 [ 33.194896] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.200408] ? handle_mm_fault+0x55a/0xc70 [ 33.204623] ? __handle_mm_fault+0x4150/0x4150 [ 33.209184] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.214697] ? __do_page_fault+0x441/0xe40 [ 33.218907] do_group_exit+0x16f/0x430 [ 33.222773] ? SyS_exit+0x30/0x30 [ 33.226202] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 33.231028] ? do_syscall_64+0xb7/0x9d0 [ 33.234978] ? do_group_exit+0x430/0x430 [ 33.239034] SyS_exit_group+0x1d/0x20 [ 33.242812] do_syscall_64+0x29e/0x9d0 [ 33.246674] ? vmalloc_sync_all+0x30/0x30 [ 33.250798] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.255542] ? syscall_return_slowpath+0x5c0/0x5c0 [ 33.260448] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.265358] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.270882] ? retint_user+0x18/0x18 [ 33.274573] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.279399] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 33.284566] RIP: 0033:0x4416e9 [ 33.287823] RSP: 002b:00007ffd1df1cba8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 33.295506] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 33.302752] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 33.309998] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 33.317247] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd1df1cc98 [ 33.324491] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 33.332208] Dumping ftrace buffer: [ 33.335733] (ftrace buffer empty) [ 33.339415] Kernel Offset: disabled [ 33.343018] Rebooting in 86400 seconds..