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.15' (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: [ 47.360297] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 47.738409] 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 [ 48.280462] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 48.286879] 8021q: adding VLAN 0 to HW filter on device bond0 [ 48.352689] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 48.408184] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 48.465308] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 48.471637] 8021q: adding VLAN 0 to HW filter on device team0 executing program [ 48.507935] bond0: Enslaving bond_slave as an active interface with an up link [ 48.517432] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 48.536148] team0: Port device team_slave added [ 48.541739] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 48.599340] ================================================================== [ 48.607250] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 48.613948] Write of size 4 at addr ffff8801b19cd8e0 by task syzkaller571633/4457 [ 48.621861] [ 48.623515] CPU: 1 PID: 4457 Comm: syzkaller571633 Not tainted 4.16.0+ #17 [ 48.630634] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.640098] Call Trace: [ 48.642731] dump_stack+0x1b9/0x294 [ 48.646392] ? dump_stack_print_info.cold.2+0x52/0x52 [ 48.651708] ? printk+0x9e/0xba [ 48.655023] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 48.659812] ? kasan_check_write+0x14/0x20 [ 48.664115] print_address_description+0x6c/0x20b [ 48.668988] ? skb_release_data+0x19b/0x860 [ 48.673346] kasan_report.cold.7+0xac/0x2f5 [ 48.677699] check_memory_region+0x13e/0x1b0 [ 48.682158] kasan_check_write+0x14/0x20 [ 48.686249] skb_release_data+0x19b/0x860 [ 48.690430] ? skb_tx_error+0x2f0/0x2f0 [ 48.694422] ? kasan_check_read+0x11/0x20 [ 48.698571] ? rcu_is_watching+0x85/0x140 [ 48.702704] ? kasan_check_write+0x14/0x20 [ 48.706931] ? sock_rmem_free+0x6f/0x90 [ 48.710898] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 48.716437] skb_release_all+0x4a/0x60 [ 48.720309] kfree_skb+0x195/0x560 [ 48.723844] ? skb_queue_purge+0x19/0x40 [ 48.727914] ? __kfree_skb+0x20/0x20 [ 48.731640] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 48.736223] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 48.741324] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.746508] ? trace_hardirqs_on+0xd/0x10 [ 48.750655] ? skb_dequeue+0x12f/0x180 [ 48.754531] skb_queue_purge+0x19/0x40 [ 48.758412] packet_sock_destruct+0x93/0x290 [ 48.762823] ? packet_mm_close+0xc0/0xc0 [ 48.766873] ? graph_lock+0x170/0x170 [ 48.770658] ? __free_object+0x16e/0x330 [ 48.774709] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 48.779978] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 48.784641] ? packet_mm_close+0xc0/0xc0 [ 48.788772] __sk_destruct+0xff/0xa40 [ 48.792595] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 48.797640] ? graph_lock+0x170/0x170 [ 48.801439] ? lock_downgrade+0x8e0/0x8e0 [ 48.805660] ? __lock_is_held+0xb5/0x140 [ 48.809808] ? kasan_check_read+0x11/0x20 [ 48.814146] ? do_raw_spin_unlock+0x9e/0x2e0 [ 48.818547] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 48.823119] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 48.828444] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 48.833976] ? refcount_sub_and_test+0x212/0x330 [ 48.839866] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 48.844605] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 48.849358] ? pcpu_free_area+0xa90/0xa90 [ 48.853578] sk_destruct+0x78/0x90 [ 48.857113] __sk_free+0x22e/0x340 [ 48.860735] sk_free+0x42/0x50 [ 48.863918] packet_release+0xa18/0xd50 [ 48.867889] ? lock_downgrade+0x8e0/0x8e0 [ 48.872041] ? packet_lookup_frame+0x270/0x270 [ 48.876606] ? cpumask_weight.constprop.5+0x44/0x44 [ 48.881610] ? do_raw_spin_lock+0xc1/0x200 [ 48.885829] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 48.891369] ? locks_remove_file+0x3f7/0x5a0 [ 48.895880] ? fcntl_setlk+0x1020/0x1020 [ 48.900029] ? fsnotify+0x415/0x1100 [ 48.903737] ? fsnotify_first_mark+0x330/0x330 [ 48.908406] sock_release+0x96/0x1b0 [ 48.912205] ? sock_alloc_file+0x4e0/0x4e0 [ 48.916424] sock_close+0x16/0x20 [ 48.919861] __fput+0x34d/0x890 [ 48.923123] ? fput+0x1a0/0x1a0 [ 48.926398] ? check_same_owner+0x320/0x320 [ 48.930815] ____fput+0x15/0x20 [ 48.934084] task_work_run+0x1e4/0x290 [ 48.938057] ? task_work_cancel+0x240/0x240 [ 48.942629] ? switch_task_namespaces+0xbd/0xd0 [ 48.947287] do_exit+0x1aee/0x2730 [ 48.950812] ? lock_release+0xa10/0xa10 [ 48.954769] ? mm_update_next_owner+0x980/0x980 [ 48.959425] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 48.964952] ? import_iovec+0x24b/0x420 [ 48.968909] ? dup_iter+0x270/0x270 [ 48.972523] ? kasan_check_read+0x11/0x20 [ 48.976655] ? rcu_is_watching+0x85/0x140 [ 48.980795] ? rcu_pm_notify+0xc0/0xc0 [ 48.984684] ? ___sys_sendmsg+0x31a/0x940 [ 48.988864] ? kfree+0x1e9/0x260 [ 48.992216] ? ___sys_sendmsg+0x31f/0x940 [ 48.996619] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.002241] ? copy_msghdr_from_user+0x560/0x560 [ 49.006986] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 49.011727] ? graph_lock+0x170/0x170 [ 49.015516] ? graph_lock+0x170/0x170 [ 49.019297] ? find_held_lock+0x36/0x1c0 [ 49.023352] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.029003] ? __fget_light+0x2ef/0x430 [ 49.032960] ? fget_raw+0x20/0x20 [ 49.036401] ? find_held_lock+0x36/0x1c0 [ 49.040472] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.046001] ? sockfd_lookup_light+0xc5/0x160 [ 49.050502] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.056031] ? __sys_sendmsg+0x1aa/0x270 [ 49.060085] ? SyS_shutdown+0x30/0x30 [ 49.063880] ? __do_page_fault+0x441/0xe40 [ 49.068189] do_group_exit+0x16f/0x430 [ 49.072067] ? SyS_exit+0x30/0x30 [ 49.075508] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 49.080335] ? do_syscall_64+0xb7/0x9d0 [ 49.084295] ? do_group_exit+0x430/0x430 [ 49.088339] SyS_exit_group+0x1d/0x20 [ 49.092125] do_syscall_64+0x29e/0x9d0 [ 49.096063] ? vmalloc_sync_all+0x30/0x30 [ 49.100367] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.105111] ? syscall_return_slowpath+0x5c0/0x5c0 [ 49.110025] ? syscall_return_slowpath+0x30f/0x5c0 [ 49.114940] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 49.120298] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 49.125138] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.130400] RIP: 0033:0x441829 [ 49.133573] RSP: 002b:00007fff34b3c0f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 49.141320] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441829 [ 49.148584] RDX: 0000000000441829 RSI: 0000000000000000 RDI: 0000000000000001 [ 49.156188] RBP: 00000000004a3449 R08: 0000000000000000 R09: 00000000006cd018 [ 49.163458] R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff34b3c1e8 [ 49.170713] R13: 00000000004025b0 R14: 0000000000000000 R15: 0000000000000000 [ 49.177971] [ 49.179586] Allocated by task 4457: [ 49.183203] save_stack+0x43/0xd0 [ 49.186632] kasan_kmalloc+0xc4/0xe0 [ 49.190327] __kmalloc_node_track_caller+0x47/0x70 [ 49.195243] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 49.199991] __alloc_skb+0x14d/0x780 [ 49.203687] alloc_skb_with_frags+0x137/0x760 [ 49.208174] sock_alloc_send_pskb+0x87a/0xae0 [ 49.212658] packet_sendmsg+0x1bd1/0x6100 [ 49.216813] sock_sendmsg+0xd5/0x120 [ 49.220510] ___sys_sendmsg+0x805/0x940 [ 49.224550] __sys_sendmsg+0x115/0x270 [ 49.228417] SyS_sendmsg+0x29/0x30 [ 49.231943] do_syscall_64+0x29e/0x9d0 [ 49.235835] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.241021] [ 49.242649] Freed by task 4457: [ 49.245938] save_stack+0x43/0xd0 [ 49.249490] __kasan_slab_free+0x11a/0x170 [ 49.253817] kasan_slab_free+0xe/0x10 [ 49.257615] kfree+0xd9/0x260 [ 49.260899] skb_free_head+0x99/0xc0 [ 49.264608] skb_release_data+0x690/0x860 [ 49.268755] skb_release_all+0x4a/0x60 [ 49.272633] kfree_skb+0x195/0x560 [ 49.276159] ip6_tnl_start_xmit+0xa44/0x2290 [ 49.280552] dev_hard_start_xmit+0x264/0xc10 [ 49.284941] __dev_queue_xmit+0x2724/0x34c0 [ 49.289428] dev_queue_xmit+0x17/0x20 [ 49.293215] packet_sendmsg+0x411d/0x6100 [ 49.297360] sock_sendmsg+0xd5/0x120 [ 49.301056] ___sys_sendmsg+0x805/0x940 [ 49.305021] __sys_sendmsg+0x115/0x270 [ 49.308949] SyS_sendmsg+0x29/0x30 [ 49.312490] do_syscall_64+0x29e/0x9d0 [ 49.316382] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.321562] [ 49.323174] The buggy address belongs to the object at ffff8801b19cd800 [ 49.323174] which belongs to the cache kmalloc-512 of size 512 [ 49.335821] The buggy address is located 224 bytes inside of [ 49.335821] 512-byte region [ffff8801b19cd800, ffff8801b19cda00) [ 49.347685] The buggy address belongs to the page: [ 49.352780] page:ffffea0006c67340 count:1 mapcount:0 mapping:ffff8801b19cd080 index:0x0 [ 49.360914] flags: 0x2fffc0000000100(slab) [ 49.365135] raw: 02fffc0000000100 ffff8801b19cd080 0000000000000000 0000000100000006 [ 49.373110] raw: ffffea0006c993a0 ffffea0006d14ca0 ffff8801dac00940 0000000000000000 [ 49.380979] page dumped because: kasan: bad access detected [ 49.386687] [ 49.388299] Memory state around the buggy address: [ 49.393215] ffff8801b19cd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 49.400854] ffff8801b19cd800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.408216] >ffff8801b19cd880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.415567] ^ [ 49.422051] ffff8801b19cd900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.429402] ffff8801b19cd980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.436745] ================================================================== [ 49.444095] Disabling lock debugging due to kernel taint [ 49.449959] Kernel panic - not syncing: panic_on_warn set ... [ 49.449959] [ 49.457353] CPU: 1 PID: 4457 Comm: syzkaller571633 Tainted: G B 4.16.0+ #17 [ 49.465652] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.474995] Call Trace: [ 49.477577] dump_stack+0x1b9/0x294 [ 49.481188] ? dump_stack_print_info.cold.2+0x52/0x52 [ 49.486386] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.491149] ? skb_release_data+0xd0/0x860 [ 49.495388] panic+0x22f/0x4de [ 49.498589] ? add_taint.cold.5+0x16/0x16 [ 49.502739] ? do_raw_spin_unlock+0x9e/0x2e0 [ 49.507148] ? do_raw_spin_unlock+0x9e/0x2e0 [ 49.511540] ? skb_release_data+0x19b/0x860 [ 49.515846] kasan_end_report+0x47/0x4f [ 49.519816] kasan_report.cold.7+0xc9/0x2f5 [ 49.524120] check_memory_region+0x13e/0x1b0 [ 49.528518] kasan_check_write+0x14/0x20 [ 49.532565] skb_release_data+0x19b/0x860 [ 49.536697] ? skb_tx_error+0x2f0/0x2f0 [ 49.540657] ? kasan_check_read+0x11/0x20 [ 49.544810] ? rcu_is_watching+0x85/0x140 [ 49.548942] ? kasan_check_write+0x14/0x20 [ 49.553163] ? sock_rmem_free+0x6f/0x90 [ 49.557126] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.562652] skb_release_all+0x4a/0x60 [ 49.566522] kfree_skb+0x195/0x560 [ 49.570042] ? skb_queue_purge+0x19/0x40 [ 49.574133] ? __kfree_skb+0x20/0x20 [ 49.577879] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 49.582535] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 49.587620] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.592622] ? trace_hardirqs_on+0xd/0x10 [ 49.596750] ? skb_dequeue+0x12f/0x180 [ 49.600619] skb_queue_purge+0x19/0x40 [ 49.604488] packet_sock_destruct+0x93/0x290 [ 49.608873] ? packet_mm_close+0xc0/0xc0 [ 49.612919] ? graph_lock+0x170/0x170 [ 49.616705] ? __free_object+0x16e/0x330 [ 49.620752] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 49.626011] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 49.630578] ? packet_mm_close+0xc0/0xc0 [ 49.634617] __sk_destruct+0xff/0xa40 [ 49.638395] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 49.643314] ? graph_lock+0x170/0x170 [ 49.647102] ? lock_downgrade+0x8e0/0x8e0 [ 49.651227] ? __lock_is_held+0xb5/0x140 [ 49.655267] ? kasan_check_read+0x11/0x20 [ 49.659408] ? do_raw_spin_unlock+0x9e/0x2e0 [ 49.663881] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 49.668443] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 49.673531] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.679054] ? refcount_sub_and_test+0x212/0x330 [ 49.683789] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 49.688532] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 49.693280] ? pcpu_free_area+0xa90/0xa90 [ 49.697417] sk_destruct+0x78/0x90 [ 49.700936] __sk_free+0x22e/0x340 [ 49.704455] sk_free+0x42/0x50 [ 49.707627] packet_release+0xa18/0xd50 [ 49.711582] ? lock_downgrade+0x8e0/0x8e0 [ 49.715718] ? packet_lookup_frame+0x270/0x270 [ 49.720283] ? cpumask_weight.constprop.5+0x44/0x44 [ 49.725278] ? do_raw_spin_lock+0xc1/0x200 [ 49.729501] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.735025] ? locks_remove_file+0x3f7/0x5a0 [ 49.739422] ? fcntl_setlk+0x1020/0x1020 [ 49.743472] ? fsnotify+0x415/0x1100 [ 49.747175] ? fsnotify_first_mark+0x330/0x330 [ 49.751748] sock_release+0x96/0x1b0 [ 49.755451] ? sock_alloc_file+0x4e0/0x4e0 [ 49.759671] sock_close+0x16/0x20 [ 49.763107] __fput+0x34d/0x890 [ 49.766364] ? fput+0x1a0/0x1a0 [ 49.769625] ? check_same_owner+0x320/0x320 [ 49.773924] ____fput+0x15/0x20 [ 49.777187] task_work_run+0x1e4/0x290 [ 49.781081] ? task_work_cancel+0x240/0x240 [ 49.785392] ? switch_task_namespaces+0xbd/0xd0 [ 49.790050] do_exit+0x1aee/0x2730 [ 49.793571] ? lock_release+0xa10/0xa10 [ 49.797530] ? mm_update_next_owner+0x980/0x980 [ 49.802182] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.807696] ? import_iovec+0x24b/0x420 [ 49.811647] ? dup_iter+0x270/0x270 [ 49.815263] ? kasan_check_read+0x11/0x20 [ 49.819387] ? rcu_is_watching+0x85/0x140 [ 49.823611] ? rcu_pm_notify+0xc0/0xc0 [ 49.827482] ? ___sys_sendmsg+0x31a/0x940 [ 49.831608] ? kfree+0x1e9/0x260 [ 49.834967] ? ___sys_sendmsg+0x31f/0x940 [ 49.839105] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.844621] ? copy_msghdr_from_user+0x560/0x560 [ 49.849357] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 49.854090] ? graph_lock+0x170/0x170 [ 49.857866] ? graph_lock+0x170/0x170 [ 49.861641] ? find_held_lock+0x36/0x1c0 [ 49.865683] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.871203] ? __fget_light+0x2ef/0x430 [ 49.875156] ? fget_raw+0x20/0x20 [ 49.878586] ? find_held_lock+0x36/0x1c0 [ 49.882636] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.888153] ? sockfd_lookup_light+0xc5/0x160 [ 49.892629] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.898146] ? __sys_sendmsg+0x1aa/0x270 [ 49.902184] ? SyS_shutdown+0x30/0x30 [ 49.905963] ? __do_page_fault+0x441/0xe40 [ 49.910192] do_group_exit+0x16f/0x430 [ 49.914157] ? SyS_exit+0x30/0x30 [ 49.917598] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 49.922420] ? do_syscall_64+0xb7/0x9d0 [ 49.926385] ? do_group_exit+0x430/0x430 [ 49.930431] SyS_exit_group+0x1d/0x20 [ 49.934213] do_syscall_64+0x29e/0x9d0 [ 49.938099] ? vmalloc_sync_all+0x30/0x30 [ 49.942234] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.946971] ? syscall_return_slowpath+0x5c0/0x5c0 [ 49.951883] ? syscall_return_slowpath+0x30f/0x5c0 [ 49.956798] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 49.962143] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 49.966982] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.972239] RIP: 0033:0x441829 [ 49.975407] RSP: 002b:00007fff34b3c0f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 49.983096] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 0000000000441829 [ 49.990344] RDX: 0000000000441829 RSI: 0000000000000000 RDI: 0000000000000001 [ 49.997597] RBP: 00000000004a3449 R08: 0000000000000000 R09: 00000000006cd018 [ 50.004854] R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff34b3c1e8 [ 50.012105] R13: 00000000004025b0 R14: 0000000000000000 R15: 0000000000000000 [ 50.019846] Dumping ftrace buffer: [ 50.023381] (ftrace buffer empty) [ 50.027069] Kernel Offset: disabled [ 50.030681] Rebooting in 86400 seconds..