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.38' (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: [ 34.716836] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 34.964539] 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 [ 35.314343] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 35.320456] 8021q: adding VLAN 0 to HW filter on device bond0 [ 35.357828] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 35.396856] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 35.433961] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 35.440067] 8021q: adding VLAN 0 to HW filter on device team0 [ 35.465549] bond0: Enslaving bond_slave as an active interface with an up link [ 35.473822] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 35.490274] team0: Port device team_slave added [ 35.495525] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 35.534117] ================================================================== [ 35.541550] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 35.548193] Write of size 4 at addr ffff8801d7a9d6a0 by task syzkaller973920/4495 [ 35.555792] [ 35.557398] CPU: 1 PID: 4495 Comm: syzkaller973920 Not tainted 4.16.0+ #1 [ 35.564297] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.573629] Call Trace: [ 35.576198] dump_stack+0x1b9/0x294 [ 35.579804] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.584975] ? printk+0x9e/0xba [ 35.588233] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.592969] ? kasan_check_write+0x14/0x20 [ 35.597181] print_address_description+0x6c/0x20b [ 35.602002] ? skb_release_data+0x19b/0x860 [ 35.606302] kasan_report.cold.7+0xac/0x2f5 [ 35.610603] check_memory_region+0x13e/0x1b0 [ 35.614987] kasan_check_write+0x14/0x20 [ 35.619029] skb_release_data+0x19b/0x860 [ 35.623156] ? skb_tx_error+0x2f0/0x2f0 [ 35.627108] ? kasan_check_read+0x11/0x20 [ 35.631243] ? rcu_is_watching+0x85/0x140 [ 35.635368] ? kasan_check_write+0x14/0x20 [ 35.639578] ? sock_rmem_free+0x6f/0x90 [ 35.643537] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.649055] skb_release_all+0x4a/0x60 [ 35.652920] kfree_skb+0x195/0x560 [ 35.656439] ? skb_queue_purge+0x19/0x40 [ 35.660474] ? __kfree_skb+0x20/0x20 [ 35.665825] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 35.670390] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 35.675471] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.680467] ? trace_hardirqs_on+0xd/0x10 [ 35.684597] ? skb_dequeue+0x12f/0x180 [ 35.688471] skb_queue_purge+0x19/0x40 [ 35.692341] packet_sock_destruct+0x93/0x290 [ 35.696729] ? packet_mm_close+0xc0/0xc0 [ 35.700768] ? graph_lock+0x170/0x170 [ 35.704546] ? __free_object+0x16e/0x330 [ 35.708584] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 35.713838] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 35.718398] ? packet_mm_close+0xc0/0xc0 [ 35.722436] __sk_destruct+0xff/0xa40 [ 35.726218] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 35.731125] ? graph_lock+0x170/0x170 [ 35.734904] ? lock_downgrade+0x8e0/0x8e0 [ 35.739030] ? __lock_is_held+0xb5/0x140 [ 35.743066] ? kasan_check_read+0x11/0x20 [ 35.747188] ? do_raw_spin_unlock+0x9e/0x2e0 [ 35.751588] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 35.756146] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 35.761227] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.766742] ? refcount_sub_and_test+0x212/0x330 [ 35.771477] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 35.776210] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 35.780940] ? pcpu_free_area+0xa90/0xa90 [ 35.785073] sk_destruct+0x78/0x90 [ 35.788590] __sk_free+0x22e/0x340 [ 35.792108] sk_free+0x42/0x50 [ 35.795277] packet_release+0xa18/0xd50 [ 35.799223] ? lock_downgrade+0x8e0/0x8e0 [ 35.803349] ? packet_lookup_frame+0x270/0x270 [ 35.807907] ? cpumask_weight.constprop.5+0x44/0x44 [ 35.812900] ? do_raw_spin_lock+0xc1/0x200 [ 35.817114] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.822628] ? locks_remove_file+0x3f7/0x5a0 [ 35.827023] ? fcntl_setlk+0x1020/0x1020 [ 35.831061] ? fsnotify+0x415/0x1100 [ 35.834753] ? fsnotify_first_mark+0x330/0x330 [ 35.839315] sock_release+0x96/0x1b0 [ 35.843015] ? sock_alloc_file+0x4e0/0x4e0 [ 35.847231] sock_close+0x16/0x20 [ 35.850660] __fput+0x34d/0x890 [ 35.853917] ? fput+0x1a0/0x1a0 [ 35.857173] ? check_same_owner+0x320/0x320 [ 35.861471] ____fput+0x15/0x20 [ 35.864729] task_work_run+0x1e4/0x290 [ 35.868592] ? task_work_cancel+0x240/0x240 [ 35.872901] ? switch_task_namespaces+0xbd/0xd0 [ 35.877963] do_exit+0x1aee/0x2730 [ 35.881482] ? find_held_lock+0x36/0x1c0 [ 35.885525] ? mm_update_next_owner+0x980/0x980 [ 35.890190] ? kasan_check_read+0x11/0x20 [ 35.894330] ? rcu_is_watching+0x85/0x140 [ 35.898456] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 35.903628] ? tun_get+0x22b/0x360 [ 35.907163] ? tun_chr_close+0x60/0x60 [ 35.911030] ? tun_chr_write_iter+0x110/0x154 [ 35.915501] ? fsnotify+0x415/0x1100 [ 35.919196] ? kasan_check_read+0x11/0x20 [ 35.923318] ? rcu_is_watching+0x85/0x140 [ 35.927440] ? rcu_pm_notify+0xc0/0xc0 [ 35.931310] ? vfs_writev+0x255/0x330 [ 35.935087] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.940080] ? kfree+0x1e9/0x260 [ 35.943425] ? vfs_writev+0xfc/0x330 [ 35.947116] ? vfs_iter_write+0xb0/0xb0 [ 35.951068] ? lock_downgrade+0x8e0/0x8e0 [ 35.955203] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.960719] ? sockfd_lookup_light+0xc5/0x160 [ 35.965194] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.970707] ? __fdget_pos+0xd6/0x1e0 [ 35.974486] ? __fdget_raw+0x20/0x20 [ 35.978181] do_group_exit+0x16f/0x430 [ 35.982044] ? SyS_exit+0x30/0x30 [ 35.985830] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 35.990649] ? do_syscall_64+0xb7/0x9d0 [ 35.994597] ? do_group_exit+0x430/0x430 [ 35.998635] SyS_exit_group+0x1d/0x20 [ 36.002414] do_syscall_64+0x29e/0x9d0 [ 36.006277] ? vmalloc_sync_all+0x30/0x30 [ 36.010398] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.015130] ? syscall_return_slowpath+0x5c0/0x5c0 [ 36.020035] ? syscall_return_slowpath+0x30f/0x5c0 [ 36.024942] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 36.030280] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.035100] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.040264] RIP: 0033:0x4419a9 [ 36.043429] RSP: 002b:00007ffe722e99d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 36.051112] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004419a9 [ 36.058357] RDX: 00000000004418e0 RSI: 0000000000000001 RDI: 0000000000000001 [ 36.065603] RBP: 00000000004a35c9 R08: 0000000000000020 R09: 00000000006cd018 [ 36.072850] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe722e9ad8 [ 36.080093] R13: 0000000000402730 R14: 0000000000000000 R15: 0000000000000000 [ 36.087344] [ 36.088951] Allocated by task 4495: [ 36.092554] save_stack+0x43/0xd0 [ 36.095988] kasan_kmalloc+0xc4/0xe0 [ 36.099678] __kmalloc_node_track_caller+0x47/0x70 [ 36.104594] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 36.109323] __alloc_skb+0x14d/0x780 [ 36.113099] alloc_skb_with_frags+0x137/0x760 [ 36.117571] sock_alloc_send_pskb+0x87a/0xae0 [ 36.122042] packet_sendmsg+0x1bd1/0x6100 [ 36.126165] sock_sendmsg+0xd5/0x120 [ 36.129852] ___sys_sendmsg+0x805/0x940 [ 36.133800] __sys_sendmsg+0x115/0x270 [ 36.137659] SyS_sendmsg+0x29/0x30 [ 36.141174] do_syscall_64+0x29e/0x9d0 [ 36.145055] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.150214] [ 36.151817] Freed by task 4495: [ 36.155074] save_stack+0x43/0xd0 [ 36.158500] __kasan_slab_free+0x11a/0x170 [ 36.162711] kasan_slab_free+0xe/0x10 [ 36.166483] kfree+0xd9/0x260 [ 36.170348] skb_free_head+0x99/0xc0 [ 36.174045] skb_release_data+0x690/0x860 [ 36.178166] skb_release_all+0x4a/0x60 [ 36.182027] kfree_skb+0x195/0x560 [ 36.185543] ip6_tnl_start_xmit+0xa44/0x2290 [ 36.189928] dev_hard_start_xmit+0x264/0xc10 [ 36.194312] __dev_queue_xmit+0x2724/0x34c0 [ 36.198606] dev_queue_xmit+0x17/0x20 [ 36.202381] packet_sendmsg+0x411d/0x6100 [ 36.206502] sock_sendmsg+0xd5/0x120 [ 36.210190] ___sys_sendmsg+0x805/0x940 [ 36.214138] __sys_sendmsg+0x115/0x270 [ 36.217998] SyS_sendmsg+0x29/0x30 [ 36.221514] do_syscall_64+0x29e/0x9d0 [ 36.225375] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.230535] [ 36.232138] The buggy address belongs to the object at ffff8801d7a9d5c0 [ 36.232138] which belongs to the cache kmalloc-512 of size 512 [ 36.244772] The buggy address is located 224 bytes inside of [ 36.244772] 512-byte region [ffff8801d7a9d5c0, ffff8801d7a9d7c0) [ 36.256703] The buggy address belongs to the page: [ 36.261605] page:ffffea00075ea740 count:1 mapcount:0 mapping:ffff8801d7a9d0c0 index:0x0 [ 36.269720] flags: 0x2fffc0000000100(slab) [ 36.273929] raw: 02fffc0000000100 ffff8801d7a9d0c0 0000000000000000 0000000100000006 [ 36.281784] raw: ffffea00075db660 ffffea00075d0420 ffff8801dac00940 0000000000000000 [ 36.289632] page dumped because: kasan: bad access detected [ 36.295311] [ 36.296910] Memory state around the buggy address: [ 36.301810] ffff8801d7a9d580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.309140] ffff8801d7a9d600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.316472] >ffff8801d7a9d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.323800] ^ [ 36.328178] ffff8801d7a9d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.335510] ffff8801d7a9d780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 36.342846] ================================================================== [ 36.350175] Disabling lock debugging due to kernel taint [ 36.355940] Kernel panic - not syncing: panic_on_warn set ... [ 36.355940] [ 36.363313] CPU: 1 PID: 4495 Comm: syzkaller973920 Tainted: G B 4.16.0+ #1 [ 36.371601] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.380926] Call Trace: [ 36.383493] dump_stack+0x1b9/0x294 [ 36.387095] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.392263] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.396995] ? skb_release_data+0xd0/0x860 [ 36.401202] panic+0x22f/0x4de [ 36.404367] ? add_taint.cold.5+0x16/0x16 [ 36.408490] ? do_raw_spin_unlock+0x9e/0x2e0 [ 36.412872] ? do_raw_spin_unlock+0x9e/0x2e0 [ 36.417253] ? skb_release_data+0x19b/0x860 [ 36.421553] kasan_end_report+0x47/0x4f [ 36.425499] kasan_report.cold.7+0xc9/0x2f5 [ 36.429797] check_memory_region+0x13e/0x1b0 [ 36.434179] kasan_check_write+0x14/0x20 [ 36.438212] skb_release_data+0x19b/0x860 [ 36.442333] ? skb_tx_error+0x2f0/0x2f0 [ 36.446277] ? kasan_check_read+0x11/0x20 [ 36.450395] ? rcu_is_watching+0x85/0x140 [ 36.454517] ? kasan_check_write+0x14/0x20 [ 36.458723] ? sock_rmem_free+0x6f/0x90 [ 36.462672] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.468181] skb_release_all+0x4a/0x60 [ 36.472040] kfree_skb+0x195/0x560 [ 36.475551] ? skb_queue_purge+0x19/0x40 [ 36.479584] ? __kfree_skb+0x20/0x20 [ 36.483272] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 36.487827] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 36.492902] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.497891] ? trace_hardirqs_on+0xd/0x10 [ 36.502012] ? skb_dequeue+0x12f/0x180 [ 36.505870] skb_queue_purge+0x19/0x40 [ 36.509731] packet_sock_destruct+0x93/0x290 [ 36.514112] ? packet_mm_close+0xc0/0xc0 [ 36.518147] ? graph_lock+0x170/0x170 [ 36.521921] ? __free_object+0x16e/0x330 [ 36.525957] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 36.531206] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 36.535760] ? packet_mm_close+0xc0/0xc0 [ 36.539794] __sk_destruct+0xff/0xa40 [ 36.543568] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 36.548471] ? graph_lock+0x170/0x170 [ 36.552244] ? lock_downgrade+0x8e0/0x8e0 [ 36.556366] ? __lock_is_held+0xb5/0x140 [ 36.560401] ? kasan_check_read+0x11/0x20 [ 36.564532] ? do_raw_spin_unlock+0x9e/0x2e0 [ 36.568914] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 36.573471] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 36.578549] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.584058] ? refcount_sub_and_test+0x212/0x330 [ 36.588789] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 36.593531] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 36.598263] ? pcpu_free_area+0xa90/0xa90 [ 36.602392] sk_destruct+0x78/0x90 [ 36.605913] __sk_free+0x22e/0x340 [ 36.609424] sk_free+0x42/0x50 [ 36.612593] packet_release+0xa18/0xd50 [ 36.616540] ? lock_downgrade+0x8e0/0x8e0 [ 36.620663] ? packet_lookup_frame+0x270/0x270 [ 36.625217] ? cpumask_weight.constprop.5+0x44/0x44 [ 36.630207] ? do_raw_spin_lock+0xc1/0x200 [ 36.634418] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.639931] ? locks_remove_file+0x3f7/0x5a0 [ 36.644318] ? fcntl_setlk+0x1020/0x1020 [ 36.648355] ? fsnotify+0x415/0x1100 [ 36.652047] ? fsnotify_first_mark+0x330/0x330 [ 36.656603] sock_release+0x96/0x1b0 [ 36.660291] ? sock_alloc_file+0x4e0/0x4e0 [ 36.664499] sock_close+0x16/0x20 [ 36.667924] __fput+0x34d/0x890 [ 36.671180] ? fput+0x1a0/0x1a0 [ 36.674434] ? check_same_owner+0x320/0x320 [ 36.678728] ____fput+0x15/0x20 [ 36.681980] task_work_run+0x1e4/0x290 [ 36.685839] ? task_work_cancel+0x240/0x240 [ 36.690138] ? switch_task_namespaces+0xbd/0xd0 [ 36.694780] do_exit+0x1aee/0x2730 [ 36.698294] ? find_held_lock+0x36/0x1c0 [ 36.702330] ? mm_update_next_owner+0x980/0x980 [ 36.707060] ? kasan_check_read+0x11/0x20 [ 36.711184] ? rcu_is_watching+0x85/0x140 [ 36.715309] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 36.720475] ? tun_get+0x22b/0x360 [ 36.723987] ? tun_chr_close+0x60/0x60 [ 36.727850] ? tun_chr_write_iter+0x110/0x154 [ 36.732317] ? fsnotify+0x415/0x1100 [ 36.736007] ? kasan_check_read+0x11/0x20 [ 36.740126] ? rcu_is_watching+0x85/0x140 [ 36.744244] ? rcu_pm_notify+0xc0/0xc0 [ 36.748107] ? vfs_writev+0x255/0x330 [ 36.751880] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.756867] ? kfree+0x1e9/0x260 [ 36.760207] ? vfs_writev+0xfc/0x330 [ 36.763897] ? vfs_iter_write+0xb0/0xb0 [ 36.767848] ? lock_downgrade+0x8e0/0x8e0 [ 36.771974] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.777489] ? sockfd_lookup_light+0xc5/0x160 [ 36.781960] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.787470] ? __fdget_pos+0xd6/0x1e0 [ 36.791244] ? __fdget_raw+0x20/0x20 [ 36.794936] do_group_exit+0x16f/0x430 [ 36.798798] ? SyS_exit+0x30/0x30 [ 36.802226] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 36.807041] ? do_syscall_64+0xb7/0x9d0 [ 36.810988] ? do_group_exit+0x430/0x430 [ 36.815020] SyS_exit_group+0x1d/0x20 [ 36.818793] do_syscall_64+0x29e/0x9d0 [ 36.822655] ? vmalloc_sync_all+0x30/0x30 [ 36.826776] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.831508] ? syscall_return_slowpath+0x5c0/0x5c0 [ 36.836411] ? syscall_return_slowpath+0x30f/0x5c0 [ 36.841317] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 36.846654] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.851471] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.856629] RIP: 0033:0x4419a9 [ 36.859790] RSP: 002b:00007ffe722e99d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 36.867473] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004419a9 [ 36.874714] RDX: 00000000004418e0 RSI: 0000000000000001 RDI: 0000000000000001 [ 36.881957] RBP: 00000000004a35c9 R08: 0000000000000020 R09: 00000000006cd018 [ 36.889201] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe722e9ad8 [ 36.896442] R13: 0000000000402730 R14: 0000000000000000 R15: 0000000000000000 [ 36.904015] Dumping ftrace buffer: [ 36.907526] (ftrace buffer empty) [ 36.911207] Kernel Offset: disabled [ 36.914814] Rebooting in 86400 seconds..