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.36' (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: [ 31.110533] 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.395468] 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.806305] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 31.812451] 8021q: adding VLAN 0 to HW filter on device bond0 [ 31.858982] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 31.902847] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 31.945636] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 31.951777] 8021q: adding VLAN 0 to HW filter on device team0 [ 31.982774] bond0: Enslaving bond_slave as an active interface with an up link executing program [ 31.992238] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 32.011483] team0: Port device team_slave added [ 32.016904] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 32.055257] ================================================================== [ 32.062861] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 32.069606] Write of size 4 at addr ffff8801d401e3e0 by task syzkaller982706/4502 [ 32.077210] [ 32.078833] CPU: 1 PID: 4502 Comm: syzkaller982706 Not tainted 4.16.0+ #2 [ 32.085741] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.095086] Call Trace: [ 32.097679] dump_stack+0x1b9/0x29f [ 32.101300] ? arch_local_irq_restore+0x52/0x52 [ 32.105961] ? printk+0x9e/0xba [ 32.109219] ? show_regs_print_info+0x18/0x18 [ 32.113697] ? kasan_check_write+0x14/0x20 [ 32.117918] print_address_description+0x6c/0x20b [ 32.122849] ? skb_release_data+0x19b/0x860 [ 32.127189] kasan_report.cold.7+0xac/0x2f5 [ 32.131501] check_memory_region+0x13e/0x1b0 [ 32.135896] kasan_check_write+0x14/0x20 [ 32.139947] skb_release_data+0x19b/0x860 [ 32.144082] ? skb_tx_error+0x2f0/0x2f0 [ 32.148051] ? kasan_check_read+0x11/0x20 [ 32.152186] ? rcu_is_watching+0x85/0x140 [ 32.156329] ? kasan_check_write+0x14/0x20 [ 32.160967] ? sock_rmem_free+0x6f/0x90 [ 32.164923] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.170453] skb_release_all+0x4a/0x60 [ 32.174331] kfree_skb+0x195/0x560 [ 32.177868] ? skb_queue_purge+0x19/0x40 [ 32.182002] ? __kfree_skb+0x20/0x20 [ 32.185701] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.190282] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.195372] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.200379] ? trace_hardirqs_on+0xd/0x10 [ 32.204607] ? skb_dequeue+0x12f/0x180 [ 32.210826] skb_queue_purge+0x19/0x40 [ 32.214704] packet_sock_destruct+0x93/0x290 [ 32.219188] ? packet_mm_close+0xc0/0xc0 [ 32.223233] ? graph_lock+0x170/0x170 [ 32.227044] ? __free_object+0x16e/0x330 [ 32.231121] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 32.236403] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.241094] ? packet_mm_close+0xc0/0xc0 [ 32.245166] __sk_destruct+0xff/0xa40 [ 32.248954] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 32.253871] ? graph_lock+0x170/0x170 [ 32.257668] ? lock_downgrade+0x8e0/0x8e0 [ 32.261812] ? __lock_is_held+0xb5/0x140 [ 32.265858] ? kasan_check_read+0x11/0x20 [ 32.270005] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.274397] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 32.279257] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 32.284453] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.289988] ? refcount_sub_and_test+0x212/0x330 [ 32.294726] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.299463] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 32.304208] ? pcpu_free_area+0xa90/0xa90 [ 32.308338] sk_destruct+0x78/0x90 [ 32.311861] __sk_free+0x22e/0x340 [ 32.315381] sk_free+0x42/0x50 [ 32.318645] packet_release+0xa18/0xd50 [ 32.322787] ? lock_downgrade+0x8e0/0x8e0 [ 32.326924] ? packet_lookup_frame+0x270/0x270 [ 32.331581] ? cpumask_weight.constprop.5+0x44/0x44 [ 32.336575] ? do_raw_spin_lock+0xc1/0x200 [ 32.340792] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.346319] ? locks_remove_file+0x3f7/0x5a0 [ 32.350723] ? fcntl_setlk+0x1020/0x1020 [ 32.354770] ? fsnotify+0x415/0x1100 [ 32.358472] ? fsnotify_first_mark+0x330/0x330 [ 32.363039] sock_release+0x96/0x1b0 [ 32.366736] ? sock_alloc_file+0x4e0/0x4e0 [ 32.370950] sock_close+0x16/0x20 [ 32.374389] __fput+0x34d/0x890 [ 32.377668] ? fput+0x1a0/0x1a0 [ 32.380947] ? check_same_owner+0x320/0x320 [ 32.385264] ____fput+0x15/0x20 [ 32.388531] task_work_run+0x1e4/0x290 [ 32.392413] ? task_work_cancel+0x240/0x240 [ 32.396725] ? switch_task_namespaces+0xbd/0xd0 [ 32.401382] do_exit+0x1aee/0x2730 [ 32.404909] ? mm_update_next_owner+0x980/0x980 [ 32.409560] ? finish_mkwrite_fault+0x610/0x610 [ 32.414215] ? debug_check_no_locks_freed+0x310/0x310 [ 32.419397] ? kasan_check_read+0x11/0x20 [ 32.423532] ? rcu_is_watching+0x85/0x140 [ 32.427664] ? lock_acquire+0x1dc/0x520 [ 32.431622] ? lock_release+0xa10/0xa10 [ 32.435580] ? tun_chr_close+0x60/0x60 [ 32.439448] ? pmd_val+0x80/0xf0 [ 32.442795] ? add_mm_counter_fast+0xd0/0xd0 [ 32.447190] ? kasan_check_write+0x14/0x20 [ 32.451411] ? do_raw_spin_lock+0xc1/0x200 [ 32.455634] ? __handle_mm_fault+0x88c/0x4150 [ 32.460224] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 32.465060] ? graph_lock+0x170/0x170 [ 32.468852] ? rcu_is_watching+0x85/0x140 [ 32.472987] ? graph_lock+0x170/0x170 [ 32.476767] ? find_held_lock+0x36/0x1c0 [ 32.480899] ? find_held_lock+0x36/0x1c0 [ 32.484942] ? lock_downgrade+0x8e0/0x8e0 [ 32.489075] ? handle_mm_fault+0x8c0/0xc70 [ 32.493293] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.498893] ? handle_mm_fault+0x55a/0xc70 [ 32.503118] ? __handle_mm_fault+0x4150/0x4150 [ 32.507953] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.513473] ? __do_page_fault+0x441/0xe40 [ 32.517693] do_group_exit+0x16f/0x430 [ 32.521567] ? SyS_exit+0x30/0x30 [ 32.525005] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 32.529830] ? do_syscall_64+0xb7/0x9d0 [ 32.533784] ? do_group_exit+0x430/0x430 [ 32.537914] SyS_exit_group+0x1d/0x20 [ 32.541694] do_syscall_64+0x29e/0x9d0 [ 32.545566] ? vmalloc_sync_all+0x30/0x30 [ 32.549696] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.554444] ? syscall_return_slowpath+0x5c0/0x5c0 [ 32.559354] ? syscall_return_slowpath+0x30f/0x5c0 [ 32.564264] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.569788] ? retint_user+0x18/0x18 [ 32.573490] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.578321] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.583492] RIP: 0033:0x4416e9 [ 32.586661] RSP: 002b:00007ffd6c6e28f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 32.594360] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 32.601615] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 32.608875] RBP: 00000000004a3309 R08: 0000000000000001 R09: 00000000006cd018 [ 32.616121] R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffd6c6e29e8 [ 32.623367] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 32.630968] [ 32.634844] Allocated by task 4502: [ 32.638463] save_stack+0x43/0xd0 [ 32.641904] kasan_kmalloc+0xc4/0xe0 [ 32.645637] __kmalloc_node_track_caller+0x47/0x70 [ 32.650563] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 32.655313] __alloc_skb+0x14d/0x780 [ 32.659027] alloc_skb_with_frags+0x137/0x760 [ 32.663515] sock_alloc_send_pskb+0x87a/0xae0 [ 32.668009] packet_sendmsg+0x1bd1/0x6100 [ 32.672158] sock_sendmsg+0xd5/0x120 [ 32.675872] ___sys_sendmsg+0x805/0x940 [ 32.679832] __sys_sendmsg+0x115/0x270 [ 32.683709] SyS_sendmsg+0x29/0x30 [ 32.687239] do_syscall_64+0x29e/0x9d0 [ 32.691122] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.696299] [ 32.697909] Freed by task 4502: [ 32.701180] save_stack+0x43/0xd0 [ 32.704635] __kasan_slab_free+0x11a/0x170 [ 32.708849] kasan_slab_free+0xe/0x10 [ 32.712630] kfree+0xd9/0x260 [ 32.715717] skb_free_head+0x99/0xc0 [ 32.719412] skb_release_data+0x690/0x860 [ 32.723554] skb_release_all+0x4a/0x60 [ 32.727434] kfree_skb+0x195/0x560 [ 32.730959] ip6_tnl_start_xmit+0xa44/0x2290 [ 32.735359] dev_hard_start_xmit+0x264/0xc10 [ 32.739756] __dev_queue_xmit+0x2724/0x34c0 [ 32.744062] dev_queue_xmit+0x17/0x20 [ 32.747844] packet_sendmsg+0x411d/0x6100 [ 32.751975] sock_sendmsg+0xd5/0x120 [ 32.755668] ___sys_sendmsg+0x805/0x940 [ 32.759622] __sys_sendmsg+0x115/0x270 [ 32.763498] SyS_sendmsg+0x29/0x30 [ 32.767020] do_syscall_64+0x29e/0x9d0 [ 32.770895] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 32.776062] [ 32.777671] The buggy address belongs to the object at ffff8801d401e300 [ 32.777671] which belongs to the cache kmalloc-512 of size 512 [ 32.790321] The buggy address is located 224 bytes inside of [ 32.790321] 512-byte region [ffff8801d401e300, ffff8801d401e500) [ 32.802178] The buggy address belongs to the page: [ 32.807102] page:ffffea0007500780 count:1 mapcount:0 mapping:ffff8801d401e080 index:0x0 [ 32.815240] flags: 0x2fffc0000000100(slab) [ 32.819487] raw: 02fffc0000000100 ffff8801d401e080 0000000000000000 0000000100000006 [ 32.827364] raw: ffffea000751f220 ffffea000751f260 ffff8801dac00940 0000000000000000 [ 32.835235] page dumped because: kasan: bad access detected [ 32.841016] [ 32.842636] Memory state around the buggy address: [ 32.847554] ffff8801d401e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.854900] ffff8801d401e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.862253] >ffff8801d401e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.869597] ^ [ 32.876067] ffff8801d401e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.883405] ffff8801d401e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.890740] ================================================================== [ 32.898082] Disabling lock debugging due to kernel taint [ 32.904032] Kernel panic - not syncing: panic_on_warn set ... [ 32.904032] [ 32.911393] CPU: 1 PID: 4502 Comm: syzkaller982706 Tainted: G B 4.16.0+ #2 [ 32.919607] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.928952] Call Trace: [ 32.931539] dump_stack+0x1b9/0x29f [ 32.935148] ? arch_local_irq_restore+0x52/0x52 [ 32.939814] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.944562] ? skb_release_data+0xe0/0x860 [ 32.948777] panic+0x22f/0x4de [ 32.951961] ? add_taint.cold.5+0x16/0x16 [ 32.956091] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.960476] ? do_raw_spin_unlock+0x9e/0x2e0 [ 32.964863] ? skb_release_data+0x19b/0x860 [ 32.969166] kasan_end_report+0x47/0x4f [ 32.973550] kasan_report.cold.7+0xc9/0x2f5 [ 32.977945] check_memory_region+0x13e/0x1b0 [ 32.982364] kasan_check_write+0x14/0x20 [ 32.986418] skb_release_data+0x19b/0x860 [ 32.990560] ? skb_tx_error+0x2f0/0x2f0 [ 32.994612] ? kasan_check_read+0x11/0x20 [ 32.998743] ? rcu_is_watching+0x85/0x140 [ 33.002867] ? kasan_check_write+0x14/0x20 [ 33.007080] ? sock_rmem_free+0x6f/0x90 [ 33.011039] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.016555] skb_release_all+0x4a/0x60 [ 33.020419] kfree_skb+0x195/0x560 [ 33.023939] ? skb_queue_purge+0x19/0x40 [ 33.028238] ? __kfree_skb+0x20/0x20 [ 33.031931] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.036502] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 33.041592] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.046587] ? trace_hardirqs_on+0xd/0x10 [ 33.050713] ? skb_dequeue+0x12f/0x180 [ 33.054590] skb_queue_purge+0x19/0x40 [ 33.059523] packet_sock_destruct+0x93/0x290 [ 33.063928] ? packet_mm_close+0xc0/0xc0 [ 33.067970] ? graph_lock+0x170/0x170 [ 33.071755] ? __free_object+0x16e/0x330 [ 33.075794] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 33.081050] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.085609] ? packet_mm_close+0xc0/0xc0 [ 33.089653] __sk_destruct+0xff/0xa40 [ 33.093461] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 33.098383] ? graph_lock+0x170/0x170 [ 33.102178] ? lock_downgrade+0x8e0/0x8e0 [ 33.106312] ? __lock_is_held+0xb5/0x140 [ 33.110367] ? kasan_check_read+0x11/0x20 [ 33.114493] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.118877] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 33.123442] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 33.128524] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.134042] ? refcount_sub_and_test+0x212/0x330 [ 33.138787] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.143530] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 33.148287] ? pcpu_free_area+0xa90/0xa90 [ 33.152417] sk_destruct+0x78/0x90 [ 33.156045] __sk_free+0x22e/0x340 [ 33.159564] sk_free+0x42/0x50 [ 33.162748] packet_release+0xa18/0xd50 [ 33.166704] ? lock_downgrade+0x8e0/0x8e0 [ 33.170838] ? packet_lookup_frame+0x270/0x270 [ 33.175404] ? cpumask_weight.constprop.5+0x44/0x44 [ 33.180484] ? do_raw_spin_lock+0xc1/0x200 [ 33.184699] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.190228] ? locks_remove_file+0x3f7/0x5a0 [ 33.194636] ? fcntl_setlk+0x1020/0x1020 [ 33.198674] ? fsnotify+0x415/0x1100 [ 33.202367] ? fsnotify_first_mark+0x330/0x330 [ 33.206936] sock_release+0x96/0x1b0 [ 33.210626] ? sock_alloc_file+0x4e0/0x4e0 [ 33.214836] sock_close+0x16/0x20 [ 33.218363] __fput+0x34d/0x890 [ 33.221724] ? fput+0x1a0/0x1a0 [ 33.225251] ? check_same_owner+0x320/0x320 [ 33.231474] ____fput+0x15/0x20 [ 33.234739] task_work_run+0x1e4/0x290 [ 33.238619] ? task_work_cancel+0x240/0x240 [ 33.242923] ? switch_task_namespaces+0xbd/0xd0 [ 33.247577] do_exit+0x1aee/0x2730 [ 33.251127] ? mm_update_next_owner+0x980/0x980 [ 33.255784] ? finish_mkwrite_fault+0x610/0x610 [ 33.260612] ? debug_check_no_locks_freed+0x310/0x310 [ 33.265868] ? kasan_check_read+0x11/0x20 [ 33.269998] ? rcu_is_watching+0x85/0x140 [ 33.274145] ? lock_acquire+0x1dc/0x520 [ 33.278103] ? lock_release+0xa10/0xa10 [ 33.282068] ? tun_chr_close+0x60/0x60 [ 33.285937] ? pmd_val+0x80/0xf0 [ 33.289285] ? add_mm_counter_fast+0xd0/0xd0 [ 33.293682] ? kasan_check_write+0x14/0x20 [ 33.297901] ? do_raw_spin_lock+0xc1/0x200 [ 33.302130] ? __handle_mm_fault+0x88c/0x4150 [ 33.306606] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 33.311361] ? graph_lock+0x170/0x170 [ 33.315146] ? rcu_is_watching+0x85/0x140 [ 33.319630] ? graph_lock+0x170/0x170 [ 33.323410] ? find_held_lock+0x36/0x1c0 [ 33.327460] ? find_held_lock+0x36/0x1c0 [ 33.331499] ? lock_downgrade+0x8e0/0x8e0 [ 33.335623] ? handle_mm_fault+0x8c0/0xc70 [ 33.339858] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.345373] ? handle_mm_fault+0x55a/0xc70 [ 33.349587] ? __handle_mm_fault+0x4150/0x4150 [ 33.354149] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.359664] ? __do_page_fault+0x441/0xe40 [ 33.363876] do_group_exit+0x16f/0x430 [ 33.367741] ? SyS_exit+0x30/0x30 [ 33.371172] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 33.376081] ? do_syscall_64+0xb7/0x9d0 [ 33.380473] ? do_group_exit+0x430/0x430 [ 33.384513] SyS_exit_group+0x1d/0x20 [ 33.388395] do_syscall_64+0x29e/0x9d0 [ 33.392260] ? vmalloc_sync_all+0x30/0x30 [ 33.396387] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.401233] ? syscall_return_slowpath+0x5c0/0x5c0 [ 33.406140] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.411050] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.416568] ? retint_user+0x18/0x18 [ 33.420260] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.425083] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 33.430259] RIP: 0033:0x4416e9 [ 33.433433] RSP: 002b:00007ffd6c6e28f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 33.441130] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 33.448453] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 33.455793] RBP: 00000000004a3309 R08: 0000000000000001 R09: 00000000006cd018 [ 33.463043] R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffd6c6e29e8 [ 33.470310] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 33.478022] Dumping ftrace buffer: [ 33.481547] (ftrace buffer empty) [ 33.485236] Kernel Offset: disabled [ 33.488846] Rebooting in 86400 seconds..