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.13' (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: [ 29.375681] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 29.625593] 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 [ 29.995532] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 30.001633] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.038783] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 30.078924] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 30.118131] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 30.124218] 8021q: adding VLAN 0 to HW filter on device team0 executing program [ 30.151326] bond0: Enslaving bond_slave as an active interface with an up link [ 30.160259] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 30.172434] team0: Port device team_slave added [ 30.177774] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 30.218132] ================================================================== [ 30.225572] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 30.232227] Write of size 4 at addr ffff8801b282cba0 by task syzkaller150287/4428 [ 30.239823] [ 30.241435] CPU: 1 PID: 4428 Comm: syzkaller150287 Not tainted 4.16.0+ #17 [ 30.248424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.257754] Call Trace: [ 30.260324] dump_stack+0x1b9/0x294 [ 30.263930] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.269099] ? printk+0x9e/0xba [ 30.272357] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.277098] ? kasan_check_write+0x14/0x20 [ 30.281313] print_address_description+0x6c/0x20b [ 30.286133] ? skb_release_data+0x19b/0x860 [ 30.290431] kasan_report.cold.7+0xac/0x2f5 [ 30.294728] check_memory_region+0x13e/0x1b0 [ 30.299112] kasan_check_write+0x14/0x20 [ 30.303150] skb_release_data+0x19b/0x860 [ 30.307278] ? skb_tx_error+0x2f0/0x2f0 [ 30.311227] ? kasan_check_read+0x11/0x20 [ 30.315353] ? rcu_is_watching+0x85/0x140 [ 30.319478] ? kasan_check_write+0x14/0x20 [ 30.323692] ? sock_rmem_free+0x6f/0x90 [ 30.327642] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.333159] skb_release_all+0x4a/0x60 [ 30.337030] kfree_skb+0x195/0x560 [ 30.340555] ? skb_queue_purge+0x19/0x40 [ 30.344590] ? __kfree_skb+0x20/0x20 [ 30.348280] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.352840] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.357920] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.362914] ? trace_hardirqs_on+0xd/0x10 [ 30.367045] ? skb_dequeue+0x12f/0x180 [ 30.370914] skb_queue_purge+0x19/0x40 [ 30.374786] packet_sock_destruct+0x93/0x290 [ 30.379174] ? packet_mm_close+0xc0/0xc0 [ 30.383213] ? graph_lock+0x170/0x170 [ 30.386994] ? __free_object+0x16e/0x330 [ 30.391042] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 30.396302] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.400863] ? packet_mm_close+0xc0/0xc0 [ 30.404907] __sk_destruct+0xff/0xa40 [ 30.408697] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 30.413611] ? graph_lock+0x170/0x170 [ 30.417399] ? lock_downgrade+0x8e0/0x8e0 [ 30.421535] ? __lock_is_held+0xb5/0x140 [ 30.425592] ? kasan_check_read+0x11/0x20 [ 30.429734] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.434127] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 30.438694] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 30.443789] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.449306] ? refcount_sub_and_test+0x212/0x330 [ 30.454048] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.458790] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 30.463543] ? pcpu_free_area+0xa90/0xa90 [ 30.467675] sk_destruct+0x78/0x90 [ 30.471192] __sk_free+0x22e/0x340 [ 30.474707] sk_free+0x42/0x50 [ 30.477878] packet_release+0xa18/0xd50 [ 30.481825] ? lock_downgrade+0x8e0/0x8e0 [ 30.485949] ? packet_lookup_frame+0x270/0x270 [ 30.490511] ? cpumask_weight.constprop.5+0x44/0x44 [ 30.495504] ? do_raw_spin_lock+0xc1/0x200 [ 30.499720] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.505234] ? locks_remove_file+0x3f7/0x5a0 [ 30.509616] ? fcntl_setlk+0x1020/0x1020 [ 30.513651] ? fsnotify+0x415/0x1100 [ 30.517346] ? fsnotify_first_mark+0x330/0x330 [ 30.522167] sock_release+0x96/0x1b0 [ 30.525862] ? sock_alloc_file+0x4e0/0x4e0 [ 30.530073] sock_close+0x16/0x20 [ 30.533503] __fput+0x34d/0x890 [ 30.536767] ? fput+0x1a0/0x1a0 [ 30.540033] ? check_same_owner+0x320/0x320 [ 30.544335] ____fput+0x15/0x20 [ 30.548011] task_work_run+0x1e4/0x290 [ 30.551883] ? task_work_cancel+0x240/0x240 [ 30.556186] ? switch_task_namespaces+0xbd/0xd0 [ 30.560832] do_exit+0x1aee/0x2730 [ 30.564352] ? mm_update_next_owner+0x980/0x980 [ 30.568999] ? finish_mkwrite_fault+0x610/0x610 [ 30.573663] ? debug_check_no_locks_freed+0x310/0x310 [ 30.578858] ? kasan_check_read+0x11/0x20 [ 30.582994] ? rcu_is_watching+0x85/0x140 [ 30.587129] ? lock_acquire+0x1dc/0x520 [ 30.591087] ? lock_release+0xa10/0xa10 [ 30.595047] ? tun_chr_close+0x60/0x60 [ 30.598917] ? kasan_check_write+0x14/0x20 [ 30.603139] ? do_raw_spin_lock+0xc1/0x200 [ 30.607351] ? __handle_mm_fault+0x88c/0x4150 [ 30.611823] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 30.616562] ? graph_lock+0x170/0x170 [ 30.620350] ? rcu_is_watching+0x85/0x140 [ 30.624478] ? graph_lock+0x170/0x170 [ 30.628253] ? find_held_lock+0x36/0x1c0 [ 30.632293] ? find_held_lock+0x36/0x1c0 [ 30.636333] ? lock_downgrade+0x8e0/0x8e0 [ 30.640460] ? handle_mm_fault+0x8c0/0xc70 [ 30.644673] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.650183] ? handle_mm_fault+0x55a/0xc70 [ 30.654392] ? __handle_mm_fault+0x4150/0x4150 [ 30.658955] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.664467] ? __do_page_fault+0x441/0xe40 [ 30.668680] do_group_exit+0x16f/0x430 [ 30.672557] ? SyS_exit+0x30/0x30 [ 30.675987] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 30.680808] ? do_syscall_64+0xb7/0x9d0 [ 30.684758] ? do_group_exit+0x430/0x430 [ 30.688794] SyS_exit_group+0x1d/0x20 [ 30.692574] do_syscall_64+0x29e/0x9d0 [ 30.696437] ? vmalloc_sync_all+0x30/0x30 [ 30.700564] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.705296] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.710203] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.715117] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.720639] ? retint_user+0x18/0x18 [ 30.724342] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.729167] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.734336] RIP: 0033:0x4416e9 [ 30.737509] RSP: 002b:00007fffb963ffa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 30.745201] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 30.752447] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 30.759692] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 30.766938] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffb9640098 [ 30.774187] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 30.781446] [ 30.783062] Allocated by task 4428: [ 30.786678] save_stack+0x43/0xd0 [ 30.790121] kasan_kmalloc+0xc4/0xe0 [ 30.793822] __kmalloc_node_track_caller+0x47/0x70 [ 30.798745] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 30.803476] __alloc_skb+0x14d/0x780 [ 30.807167] alloc_skb_with_frags+0x137/0x760 [ 30.811647] sock_alloc_send_pskb+0x87a/0xae0 [ 30.816125] packet_sendmsg+0x1bd1/0x6100 [ 30.820252] sock_sendmsg+0xd5/0x120 [ 30.823941] ___sys_sendmsg+0x805/0x940 [ 30.827891] __sys_sendmsg+0x115/0x270 [ 30.831758] SyS_sendmsg+0x29/0x30 [ 30.835279] do_syscall_64+0x29e/0x9d0 [ 30.839147] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.844306] [ 30.845908] Freed by task 4428: [ 30.849163] save_stack+0x43/0xd0 [ 30.852593] __kasan_slab_free+0x11a/0x170 [ 30.856805] kasan_slab_free+0xe/0x10 [ 30.860581] kfree+0xd9/0x260 [ 30.863673] skb_free_head+0x99/0xc0 [ 30.867372] skb_release_data+0x690/0x860 [ 30.871503] skb_release_all+0x4a/0x60 [ 30.875375] kfree_skb+0x195/0x560 [ 30.878894] ip6_tnl_start_xmit+0xa44/0x2290 [ 30.883280] dev_hard_start_xmit+0x264/0xc10 [ 30.887662] __dev_queue_xmit+0x2724/0x34c0 [ 30.891963] dev_queue_xmit+0x17/0x20 [ 30.895738] packet_sendmsg+0x411d/0x6100 [ 30.899860] sock_sendmsg+0xd5/0x120 [ 30.903547] ___sys_sendmsg+0x805/0x940 [ 30.907493] __sys_sendmsg+0x115/0x270 [ 30.911358] SyS_sendmsg+0x29/0x30 [ 30.914893] do_syscall_64+0x29e/0x9d0 [ 30.918758] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.923916] [ 30.925522] The buggy address belongs to the object at ffff8801b282cac0 [ 30.925522] which belongs to the cache kmalloc-512 of size 512 [ 30.938152] The buggy address is located 224 bytes inside of [ 30.938152] 512-byte region [ffff8801b282cac0, ffff8801b282ccc0) [ 30.949996] The buggy address belongs to the page: [ 30.954906] page:ffffea0006ca0b00 count:1 mapcount:0 mapping:ffff8801b282c0c0 index:0x0 [ 30.963026] flags: 0x2fffc0000000100(slab) [ 30.967237] raw: 02fffc0000000100 ffff8801b282c0c0 0000000000000000 0000000100000006 [ 30.975091] raw: ffffea0006cae160 ffffea0006ce7f60 ffff8801dac00940 0000000000000000 [ 30.982940] page dumped because: kasan: bad access detected [ 30.988625] [ 30.990226] Memory state around the buggy address: [ 30.995130] ffff8801b282ca80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.002471] ffff8801b282cb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.009813] >ffff8801b282cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.017146] ^ [ 31.021528] ffff8801b282cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.028859] ffff8801b282cc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.036193] ================================================================== [ 31.043523] Disabling lock debugging due to kernel taint [ 31.049456] Kernel panic - not syncing: panic_on_warn set ... [ 31.049456] [ 31.056825] CPU: 1 PID: 4428 Comm: syzkaller150287 Tainted: G B 4.16.0+ #17 [ 31.065121] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.074450] Call Trace: [ 31.077029] dump_stack+0x1b9/0x294 [ 31.080641] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.085804] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.090542] ? skb_release_data+0xd0/0x860 [ 31.094753] panic+0x22f/0x4de [ 31.097919] ? add_taint.cold.5+0x16/0x16 [ 31.102048] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.106441] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.110824] ? skb_release_data+0x19b/0x860 [ 31.115127] kasan_end_report+0x47/0x4f [ 31.119076] kasan_report.cold.7+0xc9/0x2f5 [ 31.123370] check_memory_region+0x13e/0x1b0 [ 31.127756] kasan_check_write+0x14/0x20 [ 31.131791] skb_release_data+0x19b/0x860 [ 31.135921] ? skb_tx_error+0x2f0/0x2f0 [ 31.139868] ? kasan_check_read+0x11/0x20 [ 31.143988] ? rcu_is_watching+0x85/0x140 [ 31.148110] ? kasan_check_write+0x14/0x20 [ 31.152321] ? sock_rmem_free+0x6f/0x90 [ 31.156273] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.161785] skb_release_all+0x4a/0x60 [ 31.165658] kfree_skb+0x195/0x560 [ 31.169171] ? skb_queue_purge+0x19/0x40 [ 31.173209] ? __kfree_skb+0x20/0x20 [ 31.176897] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.181457] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.186536] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.191526] ? trace_hardirqs_on+0xd/0x10 [ 31.195649] ? skb_dequeue+0x12f/0x180 [ 31.199520] skb_queue_purge+0x19/0x40 [ 31.203394] packet_sock_destruct+0x93/0x290 [ 31.207774] ? packet_mm_close+0xc0/0xc0 [ 31.211817] ? graph_lock+0x170/0x170 [ 31.215595] ? __free_object+0x16e/0x330 [ 31.219637] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 31.224889] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.229447] ? packet_mm_close+0xc0/0xc0 [ 31.233481] __sk_destruct+0xff/0xa40 [ 31.237256] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 31.242158] ? graph_lock+0x170/0x170 [ 31.245932] ? lock_downgrade+0x8e0/0x8e0 [ 31.250054] ? __lock_is_held+0xb5/0x140 [ 31.254091] ? kasan_check_read+0x11/0x20 [ 31.258215] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.262605] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 31.267162] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 31.272242] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.277752] ? refcount_sub_and_test+0x212/0x330 [ 31.282481] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.287217] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 31.291948] ? pcpu_free_area+0xa90/0xa90 [ 31.296070] sk_destruct+0x78/0x90 [ 31.299583] __sk_free+0x22e/0x340 [ 31.303095] sk_free+0x42/0x50 [ 31.306262] packet_release+0xa18/0xd50 [ 31.310211] ? lock_downgrade+0x8e0/0x8e0 [ 31.314337] ? packet_lookup_frame+0x270/0x270 [ 31.318892] ? cpumask_weight.constprop.5+0x44/0x44 [ 31.323880] ? do_raw_spin_lock+0xc1/0x200 [ 31.328093] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.333602] ? locks_remove_file+0x3f7/0x5a0 [ 31.337986] ? fcntl_setlk+0x1020/0x1020 [ 31.342030] ? fsnotify+0x415/0x1100 [ 31.345720] ? fsnotify_first_mark+0x330/0x330 [ 31.350278] sock_release+0x96/0x1b0 [ 31.353967] ? sock_alloc_file+0x4e0/0x4e0 [ 31.358173] sock_close+0x16/0x20 [ 31.361599] __fput+0x34d/0x890 [ 31.364852] ? fput+0x1a0/0x1a0 [ 31.368107] ? check_same_owner+0x320/0x320 [ 31.372406] ____fput+0x15/0x20 [ 31.375658] task_work_run+0x1e4/0x290 [ 31.379521] ? task_work_cancel+0x240/0x240 [ 31.383816] ? switch_task_namespaces+0xbd/0xd0 [ 31.388460] do_exit+0x1aee/0x2730 [ 31.391977] ? mm_update_next_owner+0x980/0x980 [ 31.396620] ? finish_mkwrite_fault+0x610/0x610 [ 31.401261] ? debug_check_no_locks_freed+0x310/0x310 [ 31.406427] ? kasan_check_read+0x11/0x20 [ 31.410549] ? rcu_is_watching+0x85/0x140 [ 31.414670] ? lock_acquire+0x1dc/0x520 [ 31.418617] ? lock_release+0xa10/0xa10 [ 31.422565] ? tun_chr_close+0x60/0x60 [ 31.426428] ? kasan_check_write+0x14/0x20 [ 31.430635] ? do_raw_spin_lock+0xc1/0x200 [ 31.434847] ? __handle_mm_fault+0x88c/0x4150 [ 31.439492] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 31.444223] ? graph_lock+0x170/0x170 [ 31.448000] ? rcu_is_watching+0x85/0x140 [ 31.452126] ? graph_lock+0x170/0x170 [ 31.455902] ? find_held_lock+0x36/0x1c0 [ 31.459945] ? find_held_lock+0x36/0x1c0 [ 31.463983] ? lock_downgrade+0x8e0/0x8e0 [ 31.468106] ? handle_mm_fault+0x8c0/0xc70 [ 31.472327] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.477843] ? handle_mm_fault+0x55a/0xc70 [ 31.482060] ? __handle_mm_fault+0x4150/0x4150 [ 31.486632] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.492153] ? __do_page_fault+0x441/0xe40 [ 31.496369] do_group_exit+0x16f/0x430 [ 31.500229] ? SyS_exit+0x30/0x30 [ 31.503657] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 31.508475] ? do_syscall_64+0xb7/0x9d0 [ 31.512422] ? do_group_exit+0x430/0x430 [ 31.516459] SyS_exit_group+0x1d/0x20 [ 31.520235] do_syscall_64+0x29e/0x9d0 [ 31.524098] ? vmalloc_sync_all+0x30/0x30 [ 31.528220] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.532949] ? syscall_return_slowpath+0x5c0/0x5c0 [ 31.537850] ? syscall_return_slowpath+0x30f/0x5c0 [ 31.542753] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.548267] ? retint_user+0x18/0x18 [ 31.551958] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.556776] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.561936] RIP: 0033:0x4416e9 [ 31.565097] RSP: 002b:00007fffb963ffa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 31.572781] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416e9 [ 31.580030] RDX: 0000000000441620 RSI: 0000000000000001 RDI: 0000000000000001 [ 31.587283] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 31.594531] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffb9640098 [ 31.601790] R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000 [ 31.609434] Dumping ftrace buffer: [ 31.612948] (ftrace buffer empty) [ 31.616628] Kernel Offset: disabled [ 31.620233] Rebooting in 86400 seconds..