[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. [ 17.936622] sshd (4420) used greatest stack depth: 16776 bytes left Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.17' (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: [ 39.919090] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 40.168495] 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 [ 40.535358] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 40.541463] 8021q: adding VLAN 0 to HW filter on device bond0 [ 40.579910] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 40.619073] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 40.659006] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 40.665144] 8021q: adding VLAN 0 to HW filter on device team0 [ 40.691934] bond0: Enslaving bond_slave as an active interface with an up link [ 40.700321] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready executing program [ 40.717261] team0: Port device team_slave added [ 40.723064] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 40.764190] ================================================================== [ 40.771638] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 40.778380] Write of size 4 at addr ffff8801d403f0e0 by task syzkaller568741/4450 [ 40.785974] [ 40.787590] CPU: 0 PID: 4450 Comm: syzkaller568741 Not tainted 4.16.0+ #17 [ 40.794587] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.803918] Call Trace: [ 40.806489] dump_stack+0x1b9/0x294 [ 40.810099] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.815270] ? printk+0x9e/0xba [ 40.818540] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.823276] ? kasan_check_write+0x14/0x20 [ 40.827492] print_address_description+0x6c/0x20b [ 40.832316] ? skb_release_data+0x19b/0x860 [ 40.836617] kasan_report.cold.7+0xac/0x2f5 [ 40.840926] check_memory_region+0x13e/0x1b0 [ 40.845584] kasan_check_write+0x14/0x20 [ 40.849626] skb_release_data+0x19b/0x860 [ 40.853756] ? skb_tx_error+0x2f0/0x2f0 [ 40.857710] ? kasan_check_read+0x11/0x20 [ 40.861838] ? rcu_is_watching+0x85/0x140 [ 40.865966] ? kasan_check_write+0x14/0x20 [ 40.870192] ? sock_rmem_free+0x6f/0x90 [ 40.874149] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.879667] skb_release_all+0x4a/0x60 [ 40.883534] kfree_skb+0x195/0x560 [ 40.887051] ? skb_queue_purge+0x19/0x40 [ 40.891089] ? __kfree_skb+0x20/0x20 [ 40.894784] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 40.900223] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 40.905307] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.910309] ? trace_hardirqs_on+0xd/0x10 [ 40.914441] ? skb_dequeue+0x12f/0x180 [ 40.918309] skb_queue_purge+0x19/0x40 [ 40.922187] packet_sock_destruct+0x93/0x290 [ 40.926573] ? packet_mm_close+0xc0/0xc0 [ 40.930619] ? graph_lock+0x170/0x170 [ 40.934401] ? __free_object+0x16e/0x330 [ 40.938441] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 40.943784] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 40.948346] ? packet_mm_close+0xc0/0xc0 [ 40.952389] __sk_destruct+0xff/0xa40 [ 40.956178] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 40.961873] ? graph_lock+0x170/0x170 [ 40.965658] ? lock_downgrade+0x8e0/0x8e0 [ 40.969787] ? __lock_is_held+0xb5/0x140 [ 40.973832] ? kasan_check_read+0x11/0x20 [ 40.977961] ? do_raw_spin_unlock+0x9e/0x2e0 [ 40.982526] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 40.987100] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 40.992200] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.997716] ? refcount_sub_and_test+0x212/0x330 [ 41.002453] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 41.007192] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 41.011926] ? pcpu_free_area+0xa90/0xa90 [ 41.016057] sk_destruct+0x78/0x90 [ 41.019577] __sk_free+0x22e/0x340 [ 41.023111] sk_free+0x42/0x50 [ 41.026288] packet_release+0xa18/0xd50 [ 41.030241] ? lock_downgrade+0x8e0/0x8e0 [ 41.034373] ? packet_lookup_frame+0x270/0x270 [ 41.038935] ? cpumask_weight.constprop.5+0x44/0x44 [ 41.043932] ? do_raw_spin_lock+0xc1/0x200 [ 41.048147] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.053662] ? locks_remove_file+0x3f7/0x5a0 [ 41.058056] ? fcntl_setlk+0x1020/0x1020 [ 41.062102] ? fsnotify+0x415/0x1100 [ 41.065825] ? fsnotify_first_mark+0x330/0x330 [ 41.070399] sock_release+0x96/0x1b0 [ 41.074095] ? sock_alloc_file+0x4e0/0x4e0 [ 41.078313] sock_close+0x16/0x20 [ 41.081747] __fput+0x34d/0x890 [ 41.085009] ? fput+0x1a0/0x1a0 [ 41.088270] ? check_same_owner+0x320/0x320 [ 41.092579] ____fput+0x15/0x20 [ 41.095837] task_work_run+0x1e4/0x290 [ 41.099705] ? task_work_cancel+0x240/0x240 [ 41.104009] ? switch_task_namespaces+0xbd/0xd0 [ 41.108660] do_exit+0x1aee/0x2730 [ 41.112191] ? lock_release+0xa10/0xa10 [ 41.116155] ? mm_update_next_owner+0x980/0x980 [ 41.120807] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.126339] ? import_iovec+0x24b/0x420 [ 41.130308] ? dup_iter+0x270/0x270 [ 41.134104] ? kasan_check_read+0x11/0x20 [ 41.138238] ? rcu_is_watching+0x85/0x140 [ 41.142366] ? rcu_pm_notify+0xc0/0xc0 [ 41.146255] ? ___sys_sendmsg+0x31a/0x940 [ 41.150386] ? kfree+0x1e9/0x260 [ 41.154027] ? ___sys_sendmsg+0x31f/0x940 [ 41.158175] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.163696] ? copy_msghdr_from_user+0x560/0x560 [ 41.168439] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 41.173183] ? graph_lock+0x170/0x170 [ 41.176971] ? graph_lock+0x170/0x170 [ 41.180753] ? find_held_lock+0x36/0x1c0 [ 41.184796] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.190322] ? __fget_light+0x2ef/0x430 [ 41.194304] ? fget_raw+0x20/0x20 [ 41.197740] ? find_held_lock+0x36/0x1c0 [ 41.201811] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.207334] ? sockfd_lookup_light+0xc5/0x160 [ 41.211826] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.217350] ? __sys_sendmsg+0x1aa/0x270 [ 41.221391] ? SyS_shutdown+0x30/0x30 [ 41.225179] ? __do_page_fault+0x441/0xe40 [ 41.229397] do_group_exit+0x16f/0x430 [ 41.233267] ? SyS_exit+0x30/0x30 [ 41.236713] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 41.241536] ? do_syscall_64+0xb7/0x9d0 [ 41.245492] ? do_group_exit+0x430/0x430 [ 41.249536] SyS_exit_group+0x1d/0x20 [ 41.253319] do_syscall_64+0x29e/0x9d0 [ 41.257188] ? vmalloc_sync_all+0x30/0x30 [ 41.261316] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.266055] ? syscall_return_slowpath+0x5c0/0x5c0 [ 41.270966] ? syscall_return_slowpath+0x30f/0x5c0 [ 41.276139] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 41.281485] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.286309] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.291474] RIP: 0033:0x4418d9 [ 41.294650] RSP: 002b:00007ffe5f511768 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 41.302340] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004418d9 [ 41.309594] RDX: 00000000004418d9 RSI: 0000000000000000 RDI: 0000000000000001 [ 41.316856] RBP: 00000000004a34e9 R08: 0000000000006eb0 R09: 00000000006cd018 [ 41.324108] R10: 0000000000006eb0 R11: 0000000000000202 R12: 00007ffe5f511868 [ 41.331364] R13: 0000000000402660 R14: 0000000000000000 R15: 0000000000000000 [ 41.338620] [ 41.340245] Allocated by task 4450: [ 41.343856] save_stack+0x43/0xd0 [ 41.347292] kasan_kmalloc+0xc4/0xe0 [ 41.350982] __kmalloc_node_track_caller+0x47/0x70 [ 41.355893] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 41.360635] __alloc_skb+0x14d/0x780 [ 41.364326] alloc_skb_with_frags+0x137/0x760 [ 41.368805] sock_alloc_send_pskb+0x87a/0xae0 [ 41.373277] packet_sendmsg+0x1bd1/0x6100 [ 41.377404] sock_sendmsg+0xd5/0x120 [ 41.381094] ___sys_sendmsg+0x805/0x940 [ 41.385052] __sys_sendmsg+0x115/0x270 [ 41.388917] SyS_sendmsg+0x29/0x30 [ 41.392441] do_syscall_64+0x29e/0x9d0 [ 41.396310] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.401473] [ 41.403085] Freed by task 4450: [ 41.406351] save_stack+0x43/0xd0 [ 41.409784] __kasan_slab_free+0x11a/0x170 [ 41.413997] kasan_slab_free+0xe/0x10 [ 41.417775] kfree+0xd9/0x260 [ 41.420868] skb_free_head+0x99/0xc0 [ 41.424558] skb_release_data+0x690/0x860 [ 41.428683] skb_release_all+0x4a/0x60 [ 41.432548] kfree_skb+0x195/0x560 [ 41.436069] ip6_tnl_start_xmit+0xa44/0x2290 [ 41.440469] dev_hard_start_xmit+0x264/0xc10 [ 41.444856] __dev_queue_xmit+0x2724/0x34c0 [ 41.449153] dev_queue_xmit+0x17/0x20 [ 41.452938] packet_sendmsg+0x411d/0x6100 [ 41.457075] sock_sendmsg+0xd5/0x120 [ 41.460772] ___sys_sendmsg+0x805/0x940 [ 41.464722] __sys_sendmsg+0x115/0x270 [ 41.468586] SyS_sendmsg+0x29/0x30 [ 41.472118] do_syscall_64+0x29e/0x9d0 [ 41.475993] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.481158] [ 41.482769] The buggy address belongs to the object at ffff8801d403f000 [ 41.482769] which belongs to the cache kmalloc-512 of size 512 [ 41.495412] The buggy address is located 224 bytes inside of [ 41.495412] 512-byte region [ffff8801d403f000, ffff8801d403f200) [ 41.507271] The buggy address belongs to the page: [ 41.512181] page:ffffea0007500fc0 count:1 mapcount:0 mapping:ffff8801d403f000 index:0x0 [ 41.520311] flags: 0x2fffc0000000100(slab) [ 41.524530] raw: 02fffc0000000100 ffff8801d403f000 0000000000000000 0000000100000006 [ 41.532393] raw: ffffea0007500fa0 ffffea0007501220 ffff8801dac00940 0000000000000000 [ 41.540248] page dumped because: kasan: bad access detected [ 41.545930] [ 41.547530] Memory state around the buggy address: [ 41.552439] ffff8801d403ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.559776] ffff8801d403f000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.567114] >ffff8801d403f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.574450] ^ [ 41.580918] ffff8801d403f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.588254] ffff8801d403f180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.595590] ================================================================== [ 41.602923] Disabling lock debugging due to kernel taint [ 41.608863] Kernel panic - not syncing: panic_on_warn set ... [ 41.608863] [ 41.616218] CPU: 0 PID: 4450 Comm: syzkaller568741 Tainted: G B 4.16.0+ #17 [ 41.624513] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.633844] Call Trace: [ 41.636420] dump_stack+0x1b9/0x294 [ 41.640033] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.645207] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.649947] ? skb_release_data+0xd0/0x860 [ 41.654507] panic+0x22f/0x4de [ 41.657677] ? add_taint.cold.5+0x16/0x16 [ 41.661806] ? do_raw_spin_unlock+0x9e/0x2e0 [ 41.666200] ? do_raw_spin_unlock+0x9e/0x2e0 [ 41.670591] ? skb_release_data+0x19b/0x860 [ 41.674891] kasan_end_report+0x47/0x4f [ 41.678851] kasan_report.cold.7+0xc9/0x2f5 [ 41.683150] check_memory_region+0x13e/0x1b0 [ 41.687623] kasan_check_write+0x14/0x20 [ 41.691667] skb_release_data+0x19b/0x860 [ 41.695791] ? skb_tx_error+0x2f0/0x2f0 [ 41.699742] ? kasan_check_read+0x11/0x20 [ 41.703870] ? rcu_is_watching+0x85/0x140 [ 41.707996] ? kasan_check_write+0x14/0x20 [ 41.712207] ? sock_rmem_free+0x6f/0x90 [ 41.716162] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.721676] skb_release_all+0x4a/0x60 [ 41.725540] kfree_skb+0x195/0x560 [ 41.729057] ? skb_queue_purge+0x19/0x40 [ 41.733094] ? __kfree_skb+0x20/0x20 [ 41.736793] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 41.741362] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 41.746441] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.751434] ? trace_hardirqs_on+0xd/0x10 [ 41.755560] ? skb_dequeue+0x12f/0x180 [ 41.759427] skb_queue_purge+0x19/0x40 [ 41.763295] packet_sock_destruct+0x93/0x290 [ 41.767679] ? packet_mm_close+0xc0/0xc0 [ 41.771729] ? graph_lock+0x170/0x170 [ 41.775518] ? __free_object+0x16e/0x330 [ 41.779569] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 41.784823] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 41.789382] ? packet_mm_close+0xc0/0xc0 [ 41.793418] __sk_destruct+0xff/0xa40 [ 41.797195] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 41.802100] ? graph_lock+0x170/0x170 [ 41.805879] ? lock_downgrade+0x8e0/0x8e0 [ 41.810002] ? __lock_is_held+0xb5/0x140 [ 41.814039] ? kasan_check_read+0x11/0x20 [ 41.818165] ? do_raw_spin_unlock+0x9e/0x2e0 [ 41.822550] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 41.827750] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 41.832831] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.838344] ? refcount_sub_and_test+0x212/0x330 [ 41.843080] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 41.847820] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 41.852561] ? pcpu_free_area+0xa90/0xa90 [ 41.856690] sk_destruct+0x78/0x90 [ 41.860208] __sk_free+0x22e/0x340 [ 41.863725] sk_free+0x42/0x50 [ 41.866895] packet_release+0xa18/0xd50 [ 41.870852] ? lock_downgrade+0x8e0/0x8e0 [ 41.874987] ? packet_lookup_frame+0x270/0x270 [ 41.879549] ? cpumask_weight.constprop.5+0x44/0x44 [ 41.884547] ? do_raw_spin_lock+0xc1/0x200 [ 41.888766] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.894279] ? locks_remove_file+0x3f7/0x5a0 [ 41.898663] ? fcntl_setlk+0x1020/0x1020 [ 41.902698] ? fsnotify+0x415/0x1100 [ 41.906391] ? fsnotify_first_mark+0x330/0x330 [ 41.910949] sock_release+0x96/0x1b0 [ 41.914641] ? sock_alloc_file+0x4e0/0x4e0 [ 41.918850] sock_close+0x16/0x20 [ 41.922287] __fput+0x34d/0x890 [ 41.925557] ? fput+0x1a0/0x1a0 [ 41.928815] ? check_same_owner+0x320/0x320 [ 41.933115] ____fput+0x15/0x20 [ 41.936369] task_work_run+0x1e4/0x290 [ 41.940240] ? task_work_cancel+0x240/0x240 [ 41.944570] ? switch_task_namespaces+0xbd/0xd0 [ 41.949238] do_exit+0x1aee/0x2730 [ 41.952762] ? lock_release+0xa10/0xa10 [ 41.956718] ? mm_update_next_owner+0x980/0x980 [ 41.961892] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.967416] ? import_iovec+0x24b/0x420 [ 41.971367] ? dup_iter+0x270/0x270 [ 41.974972] ? kasan_check_read+0x11/0x20 [ 41.979102] ? rcu_is_watching+0x85/0x140 [ 41.983231] ? rcu_pm_notify+0xc0/0xc0 [ 41.987099] ? ___sys_sendmsg+0x31a/0x940 [ 41.991224] ? kfree+0x1e9/0x260 [ 41.994575] ? ___sys_sendmsg+0x31f/0x940 [ 41.998703] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.004220] ? copy_msghdr_from_user+0x560/0x560 [ 42.008954] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 42.013685] ? graph_lock+0x170/0x170 [ 42.017463] ? graph_lock+0x170/0x170 [ 42.021241] ? find_held_lock+0x36/0x1c0 [ 42.025282] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.030795] ? __fget_light+0x2ef/0x430 [ 42.034745] ? fget_raw+0x20/0x20 [ 42.038174] ? find_held_lock+0x36/0x1c0 [ 42.042221] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.047736] ? sockfd_lookup_light+0xc5/0x160 [ 42.052211] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.057724] ? __sys_sendmsg+0x1aa/0x270 [ 42.061775] ? SyS_shutdown+0x30/0x30 [ 42.065554] ? __do_page_fault+0x441/0xe40 [ 42.069767] do_group_exit+0x16f/0x430 [ 42.073632] ? SyS_exit+0x30/0x30 [ 42.077062] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 42.081888] ? do_syscall_64+0xb7/0x9d0 [ 42.085839] ? do_group_exit+0x430/0x430 [ 42.089881] SyS_exit_group+0x1d/0x20 [ 42.093661] do_syscall_64+0x29e/0x9d0 [ 42.097524] ? vmalloc_sync_all+0x30/0x30 [ 42.101656] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.106391] ? syscall_return_slowpath+0x5c0/0x5c0 [ 42.111298] ? syscall_return_slowpath+0x30f/0x5c0 [ 42.116206] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 42.121548] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.126369] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.131707] RIP: 0033:0x4418d9 [ 42.134873] RSP: 002b:00007ffe5f511768 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 42.142558] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004418d9 [ 42.149805] RDX: 00000000004418d9 RSI: 0000000000000000 RDI: 0000000000000001 [ 42.157053] RBP: 00000000004a34e9 R08: 0000000000006eb0 R09: 00000000006cd018 [ 42.164301] R10: 0000000000006eb0 R11: 0000000000000202 R12: 00007ffe5f511868 [ 42.171552] R13: 0000000000402660 R14: 0000000000000000 R15: 0000000000000000 [ 42.179226] Dumping ftrace buffer: [ 42.182743] (ftrace buffer empty) [ 42.186427] Kernel Offset: disabled [ 42.190033] Rebooting in 86400 seconds..