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.9' (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: [ 41.717077] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 41.978515] 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 [ 42.357847] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 42.364038] 8021q: adding VLAN 0 to HW filter on device bond0 [ 42.404079] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 42.445427] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 42.485578] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 42.491737] 8021q: adding VLAN 0 to HW filter on device team0 executing program [ 42.519448] bond0: Enslaving bond_slave as an active interface with an up link [ 42.528530] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 42.539561] team0: Port device team_slave added [ 42.544963] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 42.584155] ================================================================== [ 42.591624] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 42.598288] Write of size 4 at addr ffff8801d6f58920 by task syzkaller999096/4478 [ 42.605994] [ 42.607615] CPU: 0 PID: 4478 Comm: syzkaller999096 Not tainted 4.16.0+ #1 [ 42.614781] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.624130] Call Trace: [ 42.626707] dump_stack+0x1b9/0x294 [ 42.630340] ? dump_stack_print_info.cold.2+0x52/0x52 [ 42.635512] ? printk+0x9e/0xba [ 42.638792] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 42.643531] ? kasan_check_write+0x14/0x20 [ 42.647761] print_address_description+0x6c/0x20b [ 42.652592] ? skb_release_data+0x19b/0x860 [ 42.656899] kasan_report.cold.7+0xac/0x2f5 [ 42.661215] check_memory_region+0x13e/0x1b0 [ 42.665626] kasan_check_write+0x14/0x20 [ 42.669670] skb_release_data+0x19b/0x860 [ 42.673803] ? skb_tx_error+0x2f0/0x2f0 [ 42.677776] ? kasan_check_read+0x11/0x20 [ 42.681911] ? rcu_is_watching+0x85/0x140 [ 42.686227] ? kasan_check_write+0x14/0x20 [ 42.690451] ? sock_rmem_free+0x6f/0x90 [ 42.694413] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.699935] skb_release_all+0x4a/0x60 [ 42.703804] kfree_skb+0x195/0x560 [ 42.707330] ? skb_queue_purge+0x19/0x40 [ 42.711371] ? __kfree_skb+0x20/0x20 [ 42.715073] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 42.719640] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 42.724727] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.729729] ? trace_hardirqs_on+0xd/0x10 [ 42.733866] ? skb_dequeue+0x12f/0x180 [ 42.737738] skb_queue_purge+0x19/0x40 [ 42.741873] packet_sock_destruct+0x93/0x290 [ 42.746266] ? packet_mm_close+0xc0/0xc0 [ 42.750311] ? graph_lock+0x170/0x170 [ 42.754106] ? __free_object+0x16e/0x330 [ 42.758150] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 42.763412] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 42.767979] ? packet_mm_close+0xc0/0xc0 [ 42.772036] __sk_destruct+0xff/0xa40 [ 42.775825] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 42.780736] ? graph_lock+0x170/0x170 [ 42.784519] ? lock_downgrade+0x8e0/0x8e0 [ 42.788648] ? __lock_is_held+0xb5/0x140 [ 42.792711] ? kasan_check_read+0x11/0x20 [ 42.796845] ? do_raw_spin_unlock+0x9e/0x2e0 [ 42.801235] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 42.805806] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 42.810899] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.816420] ? refcount_sub_and_test+0x212/0x330 [ 42.821162] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 42.825907] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 42.830644] ? pcpu_free_area+0xa90/0xa90 [ 42.834881] sk_destruct+0x78/0x90 [ 42.838427] __sk_free+0x22e/0x340 [ 42.841951] sk_free+0x42/0x50 [ 42.845138] packet_release+0xa18/0xd50 [ 42.849091] ? lock_downgrade+0x8e0/0x8e0 [ 42.853225] ? packet_lookup_frame+0x270/0x270 [ 42.857793] ? cpumask_weight.constprop.5+0x44/0x44 [ 42.862792] ? do_raw_spin_lock+0xc1/0x200 [ 42.867012] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.872534] ? locks_remove_file+0x3f7/0x5a0 [ 42.876924] ? fcntl_setlk+0x1020/0x1020 [ 42.880970] ? fsnotify+0x415/0x1100 [ 42.884672] ? fsnotify_first_mark+0x330/0x330 [ 42.889240] sock_release+0x96/0x1b0 [ 42.892936] ? sock_alloc_file+0x4e0/0x4e0 [ 42.897156] sock_close+0x16/0x20 [ 42.900590] __fput+0x34d/0x890 [ 42.903854] ? fput+0x1a0/0x1a0 [ 42.907118] ? check_same_owner+0x320/0x320 [ 42.911421] ____fput+0x15/0x20 [ 42.914684] task_work_run+0x1e4/0x290 [ 42.918553] ? task_work_cancel+0x240/0x240 [ 42.922870] ? switch_task_namespaces+0xbd/0xd0 [ 42.927531] do_exit+0x1aee/0x2730 [ 42.931058] ? mm_update_next_owner+0x980/0x980 [ 42.935714] ? finish_mkwrite_fault+0x610/0x610 [ 42.940777] ? debug_check_no_locks_freed+0x310/0x310 [ 42.945953] ? kasan_check_read+0x11/0x20 [ 42.950115] ? rcu_is_watching+0x85/0x140 [ 42.954263] ? lock_acquire+0x1dc/0x520 [ 42.958235] ? lock_release+0xa10/0xa10 [ 42.962192] ? tun_chr_close+0x60/0x60 [ 42.967143] ? kasan_check_write+0x14/0x20 [ 42.971367] ? do_raw_spin_lock+0xc1/0x200 [ 42.975599] ? __handle_mm_fault+0x88c/0x4150 [ 42.980080] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 42.984827] ? graph_lock+0x170/0x170 [ 42.988615] ? rcu_is_watching+0x85/0x140 [ 42.992751] ? graph_lock+0x170/0x170 [ 42.996539] ? find_held_lock+0x36/0x1c0 [ 43.000599] ? find_held_lock+0x36/0x1c0 [ 43.004654] ? lock_downgrade+0x8e0/0x8e0 [ 43.008787] ? handle_mm_fault+0x8c0/0xc70 [ 43.013028] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.018553] ? handle_mm_fault+0x55a/0xc70 [ 43.022860] ? __handle_mm_fault+0x4150/0x4150 [ 43.027430] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.032960] ? __do_page_fault+0x441/0xe40 [ 43.037182] do_group_exit+0x16f/0x430 [ 43.041053] ? SyS_exit+0x30/0x30 [ 43.044493] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 43.049320] ? do_syscall_64+0xb7/0x9d0 [ 43.053276] ? do_group_exit+0x430/0x430 [ 43.057321] SyS_exit_group+0x1d/0x20 [ 43.061104] do_syscall_64+0x29e/0x9d0 [ 43.064974] ? vmalloc_sync_all+0x30/0x30 [ 43.069104] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.073842] ? syscall_return_slowpath+0x5c0/0x5c0 [ 43.078754] ? syscall_return_slowpath+0x30f/0x5c0 [ 43.083667] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.089185] ? retint_user+0x18/0x18 [ 43.092887] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.097715] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.102886] RIP: 0033:0x441609 [ 43.106056] RSP: 002b:00007ffd6e722628 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 43.113749] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441609 [ 43.121000] RDX: 0000000000441540 RSI: 0000000000000001 RDI: 0000000000000001 [ 43.128262] RBP: 00000000004a3229 R08: 0000000000000000 R09: 00000000006cd018 [ 43.136428] R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffd6e722718 [ 43.143684] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 43.150943] [ 43.152550] Allocated by task 4478: [ 43.156161] save_stack+0x43/0xd0 [ 43.159597] kasan_kmalloc+0xc4/0xe0 [ 43.163292] __kmalloc_node_track_caller+0x47/0x70 [ 43.168208] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 43.172943] __alloc_skb+0x14d/0x780 [ 43.176637] alloc_skb_with_frags+0x137/0x760 [ 43.181121] sock_alloc_send_pskb+0x87a/0xae0 [ 43.185597] packet_sendmsg+0x1bd1/0x6100 [ 43.189726] sock_sendmsg+0xd5/0x120 [ 43.193424] ___sys_sendmsg+0x805/0x940 [ 43.197379] __sys_sendmsg+0x115/0x270 [ 43.201258] SyS_sendmsg+0x29/0x30 [ 43.204799] do_syscall_64+0x29e/0x9d0 [ 43.208673] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.213853] [ 43.215467] Freed by task 4478: [ 43.218730] save_stack+0x43/0xd0 [ 43.222167] __kasan_slab_free+0x11a/0x170 [ 43.226397] kasan_slab_free+0xe/0x10 [ 43.230277] kfree+0xd9/0x260 [ 43.233384] skb_free_head+0x99/0xc0 [ 43.237083] skb_release_data+0x690/0x860 [ 43.241209] skb_release_all+0x4a/0x60 [ 43.245076] kfree_skb+0x195/0x560 [ 43.248601] ip6_tnl_start_xmit+0xa44/0x2290 [ 43.252992] dev_hard_start_xmit+0x264/0xc10 [ 43.257390] __dev_queue_xmit+0x2724/0x34c0 [ 43.261695] dev_queue_xmit+0x17/0x20 [ 43.265487] packet_sendmsg+0x411d/0x6100 [ 43.269622] sock_sendmsg+0xd5/0x120 [ 43.273315] ___sys_sendmsg+0x805/0x940 [ 43.277267] __sys_sendmsg+0x115/0x270 [ 43.281143] SyS_sendmsg+0x29/0x30 [ 43.284665] do_syscall_64+0x29e/0x9d0 [ 43.288536] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.293703] [ 43.295316] The buggy address belongs to the object at ffff8801d6f58840 [ 43.295316] which belongs to the cache kmalloc-512 of size 512 [ 43.307954] The buggy address is located 224 bytes inside of [ 43.307954] 512-byte region [ffff8801d6f58840, ffff8801d6f58a40) [ 43.319827] The buggy address belongs to the page: [ 43.324750] page:ffffea00075bd600 count:1 mapcount:0 mapping:ffff8801d6f580c0 index:0x0 [ 43.332881] flags: 0x2fffc0000000100(slab) [ 43.337106] raw: 02fffc0000000100 ffff8801d6f580c0 0000000000000000 0000000100000006 [ 43.344973] raw: ffffea00075ed660 ffffea00075bd120 ffff8801dac00940 0000000000000000 [ 43.352840] page dumped because: kasan: bad access detected [ 43.358529] [ 43.360134] Memory state around the buggy address: [ 43.365044] ffff8801d6f58800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.372382] ffff8801d6f58880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.379724] >ffff8801d6f58900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.387062] ^ [ 43.391453] ffff8801d6f58980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.398792] ffff8801d6f58a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.406128] ================================================================== [ 43.413463] Disabling lock debugging due to kernel taint [ 43.419320] Kernel panic - not syncing: panic_on_warn set ... [ 43.419320] [ 43.426686] CPU: 0 PID: 4478 Comm: syzkaller999096 Tainted: G B 4.16.0+ #1 [ 43.434995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.444328] Call Trace: [ 43.446908] dump_stack+0x1b9/0x294 [ 43.450516] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.455690] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.460430] ? skb_release_data+0xd0/0x860 [ 43.464647] panic+0x22f/0x4de [ 43.467818] ? add_taint.cold.5+0x16/0x16 [ 43.471949] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.476343] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.480732] ? skb_release_data+0x19b/0x860 [ 43.485041] kasan_end_report+0x47/0x4f [ 43.488996] kasan_report.cold.7+0xc9/0x2f5 [ 43.493301] check_memory_region+0x13e/0x1b0 [ 43.497693] kasan_check_write+0x14/0x20 [ 43.501748] skb_release_data+0x19b/0x860 [ 43.505880] ? skb_tx_error+0x2f0/0x2f0 [ 43.509849] ? kasan_check_read+0x11/0x20 [ 43.513987] ? rcu_is_watching+0x85/0x140 [ 43.518117] ? kasan_check_write+0x14/0x20 [ 43.522339] ? sock_rmem_free+0x6f/0x90 [ 43.526294] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.531809] skb_release_all+0x4a/0x60 [ 43.535686] kfree_skb+0x195/0x560 [ 43.539209] ? skb_queue_purge+0x19/0x40 [ 43.543253] ? __kfree_skb+0x20/0x20 [ 43.546948] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.551554] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 43.556635] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.561649] ? trace_hardirqs_on+0xd/0x10 [ 43.565778] ? skb_dequeue+0x12f/0x180 [ 43.569658] skb_queue_purge+0x19/0x40 [ 43.573544] packet_sock_destruct+0x93/0x290 [ 43.577933] ? packet_mm_close+0xc0/0xc0 [ 43.581973] ? graph_lock+0x170/0x170 [ 43.585755] ? __free_object+0x16e/0x330 [ 43.589805] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 43.595078] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.599643] ? packet_mm_close+0xc0/0xc0 [ 43.603692] __sk_destruct+0xff/0xa40 [ 43.607473] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 43.612383] ? graph_lock+0x170/0x170 [ 43.616167] ? lock_downgrade+0x8e0/0x8e0 [ 43.620292] ? __lock_is_held+0xb5/0x140 [ 43.624337] ? kasan_check_read+0x11/0x20 [ 43.628484] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.632873] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.637439] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 43.642523] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.648041] ? refcount_sub_and_test+0x212/0x330 [ 43.652781] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 43.657518] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 43.662253] ? pcpu_free_area+0xa90/0xa90 [ 43.666383] sk_destruct+0x78/0x90 [ 43.669996] __sk_free+0x22e/0x340 [ 43.673524] sk_free+0x42/0x50 [ 43.676717] packet_release+0xa18/0xd50 [ 43.680675] ? lock_downgrade+0x8e0/0x8e0 [ 43.684817] ? packet_lookup_frame+0x270/0x270 [ 43.689387] ? cpumask_weight.constprop.5+0x44/0x44 [ 43.694400] ? do_raw_spin_lock+0xc1/0x200 [ 43.698616] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.704133] ? locks_remove_file+0x3f7/0x5a0 [ 43.708521] ? fcntl_setlk+0x1020/0x1020 [ 43.712650] ? fsnotify+0x415/0x1100 [ 43.716348] ? fsnotify_first_mark+0x330/0x330 [ 43.720912] sock_release+0x96/0x1b0 [ 43.724606] ? sock_alloc_file+0x4e0/0x4e0 [ 43.728831] sock_close+0x16/0x20 [ 43.732265] __fput+0x34d/0x890 [ 43.735526] ? fput+0x1a0/0x1a0 [ 43.738791] ? check_same_owner+0x320/0x320 [ 43.743095] ____fput+0x15/0x20 [ 43.746440] task_work_run+0x1e4/0x290 [ 43.750307] ? task_work_cancel+0x240/0x240 [ 43.754634] ? switch_task_namespaces+0xbd/0xd0 [ 43.759283] do_exit+0x1aee/0x2730 [ 43.762805] ? mm_update_next_owner+0x980/0x980 [ 43.767629] ? finish_mkwrite_fault+0x610/0x610 [ 43.772279] ? debug_check_no_locks_freed+0x310/0x310 [ 43.777454] ? kasan_check_read+0x11/0x20 [ 43.781582] ? rcu_is_watching+0x85/0x140 [ 43.785711] ? lock_acquire+0x1dc/0x520 [ 43.789709] ? lock_release+0xa10/0xa10 [ 43.793666] ? tun_chr_close+0x60/0x60 [ 43.797544] ? kasan_check_write+0x14/0x20 [ 43.801759] ? do_raw_spin_lock+0xc1/0x200 [ 43.805975] ? __handle_mm_fault+0x88c/0x4150 [ 43.810453] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 43.815187] ? graph_lock+0x170/0x170 [ 43.818979] ? rcu_is_watching+0x85/0x140 [ 43.823120] ? graph_lock+0x170/0x170 [ 43.827552] ? find_held_lock+0x36/0x1c0 [ 43.831596] ? find_held_lock+0x36/0x1c0 [ 43.835640] ? lock_downgrade+0x8e0/0x8e0 [ 43.839782] ? handle_mm_fault+0x8c0/0xc70 [ 43.844002] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.849517] ? handle_mm_fault+0x55a/0xc70 [ 43.853743] ? __handle_mm_fault+0x4150/0x4150 [ 43.858333] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.863947] ? __do_page_fault+0x441/0xe40 [ 43.868164] do_group_exit+0x16f/0x430 [ 43.872036] ? SyS_exit+0x30/0x30 [ 43.875472] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 43.880295] ? do_syscall_64+0xb7/0x9d0 [ 43.884255] ? do_group_exit+0x430/0x430 [ 43.888315] SyS_exit_group+0x1d/0x20 [ 43.892103] do_syscall_64+0x29e/0x9d0 [ 43.895970] ? vmalloc_sync_all+0x30/0x30 [ 43.900098] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.904834] ? syscall_return_slowpath+0x5c0/0x5c0 [ 43.909749] ? syscall_return_slowpath+0x30f/0x5c0 [ 43.914663] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.920200] ? retint_user+0x18/0x18 [ 43.923897] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.928725] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.933892] RIP: 0033:0x441609 [ 43.937072] RSP: 002b:00007ffd6e722628 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 43.944760] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441609 [ 43.952038] RDX: 0000000000441540 RSI: 0000000000000001 RDI: 0000000000000001 [ 43.959808] RBP: 00000000004a3229 R08: 0000000000000000 R09: 00000000006cd018 [ 43.967059] R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffd6e722718 [ 43.974312] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 43.981992] Dumping ftrace buffer: [ 43.985510] (ftrace buffer empty) [ 43.989201] Kernel Offset: disabled [ 43.992807] Rebooting in 86400 seconds..