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 syzkaller login: [ 25.727398] sshd (4475) used greatest stack depth: 17144 bytes left Warning: Permanently added '10.128.0.36' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 31.155173] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 31.405977] 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.770529] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 31.776629] 8021q: adding VLAN 0 to HW filter on device bond0 [ 31.814411] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 31.853961] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 31.892163] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 31.898254] 8021q: adding VLAN 0 to HW filter on device team0 [ 31.925847] bond0: Enslaving bond_slave as an active interface with an up link [ 31.934157] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 31.941056] ip (4652) used greatest stack depth: 17000 bytes left [ 31.953387] team0: Port device team_slave added [ 31.958604] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 31.966011] ip (4654) used greatest stack depth: 16856 bytes left [ 31.996127] ================================================================== [ 32.003571] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 32.010214] Write of size 4 at addr ffff8801d9a0ad60 by task syzkaller640412/4483 [ 32.017802] [ 32.019410] CPU: 0 PID: 4483 Comm: syzkaller640412 Not tainted 4.16.0+ #17 [ 32.026395] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.035720] Call Trace: [ 32.038286] dump_stack+0x1b9/0x294 [ 32.041891] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.047059] ? printk+0x9e/0xba [ 32.050316] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.055061] ? kasan_check_write+0x14/0x20 [ 32.059275] print_address_description+0x6c/0x20b [ 32.064092] ? skb_release_data+0x19b/0x860 [ 32.068390] kasan_report.cold.7+0xac/0x2f5 [ 32.072688] check_memory_region+0x13e/0x1b0 [ 32.077071] kasan_check_write+0x14/0x20 [ 32.081111] skb_release_data+0x19b/0x860 [ 32.085236] ? skb_tx_error+0x2f0/0x2f0 [ 32.089187] ? kasan_check_read+0x11/0x20 [ 32.093311] ? rcu_is_watching+0x85/0x140 [ 32.097434] ? kasan_check_write+0x14/0x20 [ 32.101643] ? sock_rmem_free+0x6f/0x90 [ 32.105597] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.111119] skb_release_all+0x4a/0x60 [ 32.114982] kfree_skb+0x195/0x560 [ 32.118497] ? skb_queue_purge+0x19/0x40 [ 32.122536] ? __kfree_skb+0x20/0x20 [ 32.126227] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.130785] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.135863] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.140853] ? trace_hardirqs_on+0xd/0x10 [ 32.144979] ? skb_dequeue+0x12f/0x180 [ 32.148842] skb_queue_purge+0x19/0x40 [ 32.152704] packet_sock_destruct+0x93/0x290 [ 32.157088] ? packet_mm_close+0xc0/0xc0 [ 32.161126] ? graph_lock+0x170/0x170 [ 32.164901] ? __free_object+0x16e/0x330 [ 32.168940] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 32.174195] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.178755] ? packet_mm_close+0xc0/0xc0 [ 32.182796] __sk_destruct+0xff/0xa40 [ 32.186575] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 32.191482] ? graph_lock+0x170/0x170 [ 32.195260] ? lock_downgrade+0x8e0/0x8e0 [ 32.199384] ? __lock_is_held+0xb5/0x140 [ 32.203424] ? kasan_check_read+0x11/0x20 [ 32.207547] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.211931] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.216491] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.221571] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.227086] ? refcount_sub_and_test+0x212/0x330 [ 32.231819] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.236552] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.241284] ? pcpu_free_area+0xa90/0xa90 [ 32.245408] sk_destruct+0x78/0x90 [ 32.248924] __sk_free+0x22e/0x340 [ 32.252441] sk_free+0x42/0x50 [ 32.255609] packet_release+0xa18/0xd50 [ 32.259557] ? lock_downgrade+0x8e0/0x8e0 [ 32.263681] ? packet_lookup_frame+0x270/0x270 [ 32.268242] ? cpumask_weight.constprop.5+0x44/0x44 [ 32.273233] ? do_raw_spin_lock+0xc1/0x200 [ 32.277446] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.282957] ? locks_remove_file+0x3f7/0x5a0 [ 32.287343] ? fcntl_setlk+0x1020/0x1020 [ 32.291379] ? fsnotify+0x415/0x1100 [ 32.295071] ? fsnotify_first_mark+0x330/0x330 [ 32.299632] sock_release+0x96/0x1b0 [ 32.303321] ? sock_alloc_file+0x4e0/0x4e0 [ 32.307532] sock_close+0x16/0x20 [ 32.310961] __fput+0x34d/0x890 [ 32.314219] ? fput+0x1a0/0x1a0 [ 32.317478] ? check_same_owner+0x320/0x320 [ 32.321777] ____fput+0x15/0x20 [ 32.325041] task_work_run+0x1e4/0x290 [ 32.328907] ? task_work_cancel+0x240/0x240 [ 32.333207] ? switch_task_namespaces+0xbd/0xd0 [ 32.337855] do_exit+0x1aee/0x2730 [ 32.341373] ? mm_update_next_owner+0x980/0x980 [ 32.346032] ? finish_mkwrite_fault+0x610/0x610 [ 32.350678] ? debug_check_no_locks_freed+0x310/0x310 [ 32.355844] ? kasan_check_read+0x11/0x20 [ 32.359968] ? rcu_is_watching+0x85/0x140 [ 32.364093] ? lock_acquire+0x1dc/0x520 [ 32.368049] ? lock_release+0xa10/0xa10 [ 32.372000] ? tun_chr_close+0x60/0x60 [ 32.375881] ? kasan_check_write+0x14/0x20 [ 32.380092] ? do_raw_spin_lock+0xc1/0x200 [ 32.384306] ? __handle_mm_fault+0x88c/0x4150 [ 32.388782] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 32.393513] ? graph_lock+0x170/0x170 [ 32.397292] ? rcu_is_watching+0x85/0x140 [ 32.401414] ? graph_lock+0x170/0x170 [ 32.405189] ? find_held_lock+0x36/0x1c0 [ 32.409232] ? find_held_lock+0x36/0x1c0 [ 32.413273] ? lock_downgrade+0x8e0/0x8e0 [ 32.417395] ? handle_mm_fault+0x8c0/0xc70 [ 32.421611] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.427124] ? handle_mm_fault+0x55a/0xc70 [ 32.431339] ? __handle_mm_fault+0x4150/0x4150 [ 32.435902] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.441415] ? __do_page_fault+0x441/0xe40 [ 32.445629] do_group_exit+0x16f/0x430 [ 32.449495] ? SyS_exit+0x30/0x30 [ 32.452924] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 32.457741] ? do_syscall_64+0xb7/0x9d0 [ 32.461692] ? do_group_exit+0x430/0x430 [ 32.465729] SyS_exit_group+0x1d/0x20 [ 32.469507] do_syscall_64+0x29e/0x9d0 [ 32.473368] ? vmalloc_sync_all+0x30/0x30 [ 32.477493] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.482224] ? syscall_return_slowpath+0x5c0/0x5c0 [ 32.487131] ? syscall_return_slowpath+0x30f/0x5c0 [ 32.492044] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.497559] ? retint_user+0x18/0x18 [ 32.501250] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.506071] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.511234] RIP: 0033:0x4416f9 [ 32.514398] RSP: 002b:00007ffd47f9a1d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 32.522083] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416f9 [ 32.529338] RDX: 0000000000441630 RSI: 0000000000000001 RDI: 0000000000000001 [ 32.536581] RBP: 00000000004a3309 R08: 0000000000000004 R09: 00000000006cd018 [ 32.543827] R10: 0000000000000002 R11: 0000000000000202 R12: 00007ffd47f9a2c8 [ 32.551069] R13: 0000000000402480 R14: 0000000000000000 R15: 0000000000000000 [ 32.558317] [ 32.559920] Allocated by task 4483: [ 32.563528] save_stack+0x43/0xd0 [ 32.566955] kasan_kmalloc+0xc4/0xe0 [ 32.570645] __kmalloc_node_track_caller+0x47/0x70 [ 32.575552] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 32.580280] __alloc_skb+0x14d/0x780 [ 32.583967] alloc_skb_with_frags+0x137/0x760 [ 32.588437] sock_alloc_send_pskb+0x87a/0xae0 [ 32.592908] packet_sendmsg+0x1bd1/0x6100 [ 32.597037] sock_sendmsg+0xd5/0x120 [ 32.600724] ___sys_sendmsg+0x805/0x940 [ 32.604673] __sys_sendmsg+0x115/0x270 [ 32.608534] SyS_sendmsg+0x29/0x30 [ 32.612050] do_syscall_64+0x29e/0x9d0 [ 32.615913] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.621074] [ 32.622675] Freed by task 4483: [ 32.625930] save_stack+0x43/0xd0 [ 32.629360] __kasan_slab_free+0x11a/0x170 [ 32.633570] kasan_slab_free+0xe/0x10 [ 32.637342] kfree+0xd9/0x260 [ 32.640425] skb_free_head+0x99/0xc0 [ 32.644114] skb_release_data+0x690/0x860 [ 32.648239] skb_release_all+0x4a/0x60 [ 32.652100] kfree_skb+0x195/0x560 [ 32.655617] ip6_tnl_start_xmit+0xa44/0x2290 [ 32.660000] dev_hard_start_xmit+0x264/0xc10 [ 32.664393] __dev_queue_xmit+0x2724/0x34c0 [ 32.668689] dev_queue_xmit+0x17/0x20 [ 32.672461] packet_sendmsg+0x411d/0x6100 [ 32.676586] sock_sendmsg+0xd5/0x120 [ 32.680274] ___sys_sendmsg+0x805/0x940 [ 32.684221] __sys_sendmsg+0x115/0x270 [ 32.688084] SyS_sendmsg+0x29/0x30 [ 32.691601] do_syscall_64+0x29e/0x9d0 [ 32.695465] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.700625] [ 32.702230] The buggy address belongs to the object at ffff8801d9a0ac80 [ 32.702230] which belongs to the cache kmalloc-512 of size 512 [ 32.714861] The buggy address is located 224 bytes inside of [ 32.714861] 512-byte region [ffff8801d9a0ac80, ffff8801d9a0ae80) [ 32.726705] The buggy address belongs to the page: [ 32.731608] page:ffffea0007668280 count:1 mapcount:0 mapping:ffff8801d9a0a000 index:0x0 [ 32.739726] flags: 0x2fffc0000000100(slab) [ 32.743943] raw: 02fffc0000000100 ffff8801d9a0a000 0000000000000000 0000000100000006 [ 32.751798] raw: ffffea0006c696a0 ffffea000765c060 ffff8801dac00940 0000000000000000 [ 32.759646] page dumped because: kasan: bad access detected [ 32.765328] [ 32.766926] Memory state around the buggy address: [ 32.771830] ffff8801d9a0ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.779165] ffff8801d9a0ac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.786496] >ffff8801d9a0ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.793827] ^ [ 32.800294] ffff8801d9a0ad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.807626] ffff8801d9a0ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.814955] ================================================================== [ 32.822285] Disabling lock debugging due to kernel taint [ 32.828188] Kernel panic - not syncing: panic_on_warn set ... [ 32.828188] [ 32.835557] CPU: 0 PID: 4483 Comm: syzkaller640412 Tainted: G B 4.16.0+ #17 [ 32.843857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.853182] Call Trace: [ 32.855746] dump_stack+0x1b9/0x294 [ 32.859350] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.864516] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.869248] ? skb_release_data+0xd0/0x860 [ 32.873455] panic+0x22f/0x4de [ 32.876622] ? add_taint.cold.5+0x16/0x16 [ 32.880744] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.885128] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.889509] ? skb_release_data+0x19b/0x860 [ 32.893807] kasan_end_report+0x47/0x4f [ 32.897756] kasan_report.cold.7+0xc9/0x2f5 [ 32.902051] check_memory_region+0x13e/0x1b0 [ 32.906432] kasan_check_write+0x14/0x20 [ 32.910464] skb_release_data+0x19b/0x860 [ 32.914586] ? skb_tx_error+0x2f0/0x2f0 [ 32.918534] ? kasan_check_read+0x11/0x20 [ 32.922654] ? rcu_is_watching+0x85/0x140 [ 32.926775] ? kasan_check_write+0x14/0x20 [ 32.930982] ? sock_rmem_free+0x6f/0x90 [ 32.934931] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.940442] skb_release_all+0x4a/0x60 [ 32.944301] kfree_skb+0x195/0x560 [ 32.947816] ? skb_queue_purge+0x19/0x40 [ 32.951852] ? __kfree_skb+0x20/0x20 [ 32.955538] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.960094] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.965172] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.970163] ? trace_hardirqs_on+0xd/0x10 [ 32.974284] ? skb_dequeue+0x12f/0x180 [ 32.978145] skb_queue_purge+0x19/0x40 [ 32.982010] packet_sock_destruct+0x93/0x290 [ 32.986396] ? packet_mm_close+0xc0/0xc0 [ 32.990428] ? graph_lock+0x170/0x170 [ 32.994206] ? __free_object+0x16e/0x330 [ 32.998245] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 33.003509] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.008064] ? packet_mm_close+0xc0/0xc0 [ 33.012101] __sk_destruct+0xff/0xa40 [ 33.015877] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 33.020779] ? graph_lock+0x170/0x170 [ 33.024555] ? lock_downgrade+0x8e0/0x8e0 [ 33.028676] ? __lock_is_held+0xb5/0x140 [ 33.032710] ? kasan_check_read+0x11/0x20 [ 33.036834] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.041217] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.045773] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 33.050851] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.056363] ? refcount_sub_and_test+0x212/0x330 [ 33.061092] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.065819] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.070547] ? pcpu_free_area+0xa90/0xa90 [ 33.074669] sk_destruct+0x78/0x90 [ 33.078181] __sk_free+0x22e/0x340 [ 33.081693] sk_free+0x42/0x50 [ 33.084860] packet_release+0xa18/0xd50 [ 33.088806] ? lock_downgrade+0x8e0/0x8e0 [ 33.092929] ? packet_lookup_frame+0x270/0x270 [ 33.097486] ? cpumask_weight.constprop.5+0x44/0x44 [ 33.102475] ? do_raw_spin_lock+0xc1/0x200 [ 33.106685] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.112194] ? locks_remove_file+0x3f7/0x5a0 [ 33.116576] ? fcntl_setlk+0x1020/0x1020 [ 33.120609] ? fsnotify+0x415/0x1100 [ 33.124299] ? fsnotify_first_mark+0x330/0x330 [ 33.128856] sock_release+0x96/0x1b0 [ 33.132542] ? sock_alloc_file+0x4e0/0x4e0 [ 33.136749] sock_close+0x16/0x20 [ 33.140174] __fput+0x34d/0x890 [ 33.143426] ? fput+0x1a0/0x1a0 [ 33.146681] ? check_same_owner+0x320/0x320 [ 33.150975] ____fput+0x15/0x20 [ 33.154230] task_work_run+0x1e4/0x290 [ 33.158091] ? task_work_cancel+0x240/0x240 [ 33.162389] ? switch_task_namespaces+0xbd/0xd0 [ 33.167033] do_exit+0x1aee/0x2730 [ 33.170549] ? mm_update_next_owner+0x980/0x980 [ 33.175190] ? finish_mkwrite_fault+0x610/0x610 [ 33.179834] ? debug_check_no_locks_freed+0x310/0x310 [ 33.184999] ? kasan_check_read+0x11/0x20 [ 33.189127] ? rcu_is_watching+0x85/0x140 [ 33.193250] ? lock_acquire+0x1dc/0x520 [ 33.197200] ? lock_release+0xa10/0xa10 [ 33.201150] ? tun_chr_close+0x60/0x60 [ 33.205021] ? kasan_check_write+0x14/0x20 [ 33.209234] ? do_raw_spin_lock+0xc1/0x200 [ 33.213444] ? __handle_mm_fault+0x88c/0x4150 [ 33.217913] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 33.222638] ? graph_lock+0x170/0x170 [ 33.226413] ? rcu_is_watching+0x85/0x140 [ 33.230535] ? graph_lock+0x170/0x170 [ 33.234306] ? find_held_lock+0x36/0x1c0 [ 33.238340] ? find_held_lock+0x36/0x1c0 [ 33.242376] ? lock_downgrade+0x8e0/0x8e0 [ 33.246496] ? handle_mm_fault+0x8c0/0xc70 [ 33.250707] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.256653] ? handle_mm_fault+0x55a/0xc70 [ 33.260862] ? __handle_mm_fault+0x4150/0x4150 [ 33.265424] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.270939] ? __do_page_fault+0x441/0xe40 [ 33.275150] do_group_exit+0x16f/0x430 [ 33.279021] ? SyS_exit+0x30/0x30 [ 33.282452] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 33.287270] ? do_syscall_64+0xb7/0x9d0 [ 33.291220] ? do_group_exit+0x430/0x430 [ 33.295255] SyS_exit_group+0x1d/0x20 [ 33.299035] do_syscall_64+0x29e/0x9d0 [ 33.302900] ? vmalloc_sync_all+0x30/0x30 [ 33.307027] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.311757] ? syscall_return_slowpath+0x5c0/0x5c0 [ 33.316660] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.321563] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.327076] ? retint_user+0x18/0x18 [ 33.330764] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.335582] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 33.340746] RIP: 0033:0x4416f9 [ 33.343908] RSP: 002b:00007ffd47f9a1d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 33.351590] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416f9 [ 33.358832] RDX: 0000000000441630 RSI: 0000000000000001 RDI: 0000000000000001 [ 33.366072] RBP: 00000000004a3309 R08: 0000000000000004 R09: 00000000006cd018 [ 33.373313] R10: 0000000000000002 R11: 0000000000000202 R12: 00007ffd47f9a2c8 [ 33.380554] R13: 0000000000402480 R14: 0000000000000000 R15: 0000000000000000 [ 33.388228] Dumping ftrace buffer: [ 33.391742] (ftrace buffer empty) [ 33.395422] Kernel Offset: disabled [ 33.399021] Rebooting in 86400 seconds..