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.50' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 syzkaller login: [ 41.870371] IPVS: ftp: loaded support on port[0] = 21 net.ipv6.conf.syz_tun.router_solicitations = 0 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 42.236309] 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 [ 42.704353] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 42.710940] 8021q: adding VLAN 0 to HW filter on device bond0 [ 42.757574] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 42.806384] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 42.849145] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 42.855286] 8021q: adding VLAN 0 to HW filter on device team0 [ 42.887786] bond0: Enslaving bond_slave as an active interface with an up link executing program [ 42.896237] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 42.918357] team0: Port device team_slave added [ 42.923794] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 42.934195] ip (4602) used greatest stack depth: 16344 bytes left [ 42.977205] ================================================================== [ 42.985348] BUG: KASAN: use-after-free in skb_release_data+0x19b/0x860 [ 42.992193] Write of size 4 at addr ffff8801c677a3a0 by task syzkaller611629/4431 [ 43.000074] [ 43.001706] CPU: 0 PID: 4431 Comm: syzkaller611629 Not tainted 4.16.0+ #17 [ 43.011654] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.021167] Call Trace: [ 43.023753] dump_stack+0x1b9/0x294 [ 43.027382] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.032562] ? printk+0x9e/0xba [ 43.035831] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 43.040581] ? kasan_check_write+0x14/0x20 [ 43.044930] print_address_description+0x6c/0x20b [ 43.049853] ? skb_release_data+0x19b/0x860 [ 43.054344] kasan_report.cold.7+0xac/0x2f5 [ 43.058660] check_memory_region+0x13e/0x1b0 [ 43.063061] kasan_check_write+0x14/0x20 [ 43.067111] skb_release_data+0x19b/0x860 [ 43.071247] ? skb_tx_error+0x2f0/0x2f0 [ 43.075206] ? kasan_check_read+0x11/0x20 [ 43.079343] ? rcu_is_watching+0x85/0x140 [ 43.083661] ? kasan_check_write+0x14/0x20 [ 43.088410] ? sock_rmem_free+0x6f/0x90 [ 43.094561] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.101147] skb_release_all+0x4a/0x60 [ 43.105047] kfree_skb+0x195/0x560 [ 43.108585] ? skb_queue_purge+0x19/0x40 [ 43.112820] ? __kfree_skb+0x20/0x20 [ 43.116532] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.121285] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 43.126824] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.132107] ? trace_hardirqs_on+0xd/0x10 [ 43.136265] ? skb_dequeue+0x12f/0x180 [ 43.140165] skb_queue_purge+0x19/0x40 [ 43.144244] packet_sock_destruct+0x93/0x290 [ 43.148740] ? packet_mm_close+0xc0/0xc0 [ 43.152846] ? graph_lock+0x170/0x170 [ 43.156647] ? __free_object+0x16e/0x330 [ 43.161070] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 43.166341] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.170926] ? packet_mm_close+0xc0/0xc0 [ 43.176031] __sk_destruct+0xff/0xa40 [ 43.180355] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 43.185276] ? graph_lock+0x170/0x170 [ 43.189068] ? lock_downgrade+0x8e0/0x8e0 [ 43.193302] ? __lock_is_held+0xb5/0x140 [ 43.198610] ? kasan_check_read+0x11/0x20 [ 43.202754] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.207184] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.211774] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 43.217065] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.222608] ? refcount_sub_and_test+0x212/0x330 [ 43.227357] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 43.232187] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 43.237075] ? pcpu_free_area+0xa90/0xa90 [ 43.241297] sk_destruct+0x78/0x90 [ 43.244836] __sk_free+0x22e/0x340 [ 43.248810] sk_free+0x42/0x50 [ 43.252016] packet_release+0xa18/0xd50 [ 43.256044] ? lock_downgrade+0x8e0/0x8e0 [ 43.260355] ? packet_lookup_frame+0x270/0x270 [ 43.264933] ? cpumask_weight.constprop.5+0x44/0x44 [ 43.269933] ? do_raw_spin_lock+0xc1/0x200 [ 43.274166] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.279690] ? locks_remove_file+0x3f7/0x5a0 [ 43.284081] ? fcntl_setlk+0x1020/0x1020 [ 43.288124] ? fsnotify+0x415/0x1100 [ 43.291935] ? fsnotify_first_mark+0x330/0x330 [ 43.297206] sock_release+0x96/0x1b0 [ 43.300902] ? sock_alloc_file+0x4e0/0x4e0 [ 43.305120] sock_close+0x16/0x20 [ 43.308559] __fput+0x34d/0x890 [ 43.311821] ? fput+0x1a0/0x1a0 [ 43.315093] ? check_same_owner+0x320/0x320 [ 43.319458] ____fput+0x15/0x20 [ 43.324028] task_work_run+0x1e4/0x290 [ 43.329401] ? task_work_cancel+0x240/0x240 [ 43.334774] ? switch_task_namespaces+0xbd/0xd0 [ 43.340335] do_exit+0x1aee/0x2730 [ 43.343957] ? mm_update_next_owner+0x980/0x980 [ 43.348609] ? finish_mkwrite_fault+0x610/0x610 [ 43.353447] ? debug_check_no_locks_freed+0x310/0x310 [ 43.358631] ? kasan_check_read+0x11/0x20 [ 43.362761] ? rcu_is_watching+0x85/0x140 [ 43.366975] ? lock_acquire+0x1dc/0x520 [ 43.370932] ? lock_release+0xa10/0xa10 [ 43.374980] ? tun_chr_close+0x60/0x60 [ 43.378863] ? kasan_check_write+0x14/0x20 [ 43.383080] ? do_raw_spin_lock+0xc1/0x200 [ 43.387302] ? __handle_mm_fault+0x88c/0x4150 [ 43.393184] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 43.397920] ? graph_lock+0x170/0x170 [ 43.401701] ? rcu_is_watching+0x85/0x140 [ 43.406094] ? graph_lock+0x170/0x170 [ 43.409880] ? find_held_lock+0x36/0x1c0 [ 43.413931] ? find_held_lock+0x36/0x1c0 [ 43.418650] ? lock_downgrade+0x8e0/0x8e0 [ 43.422778] ? handle_mm_fault+0x8c0/0xc70 [ 43.427004] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.432529] ? handle_mm_fault+0x55a/0xc70 [ 43.439877] ? __handle_mm_fault+0x4150/0x4150 [ 43.444451] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.450241] ? __do_page_fault+0x441/0xe40 [ 43.454627] do_group_exit+0x16f/0x430 [ 43.458626] ? SyS_exit+0x30/0x30 [ 43.462066] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 43.466898] ? do_syscall_64+0xb7/0x9d0 [ 43.470857] ? do_group_exit+0x430/0x430 [ 43.474899] SyS_exit_group+0x1d/0x20 [ 43.478682] do_syscall_64+0x29e/0x9d0 [ 43.482555] ? vmalloc_sync_all+0x30/0x30 [ 43.486687] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.491433] ? syscall_return_slowpath+0x5c0/0x5c0 [ 43.496443] ? syscall_return_slowpath+0x30f/0x5c0 [ 43.501367] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.506890] ? retint_user+0x18/0x18 [ 43.510596] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.515443] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.520657] RIP: 0033:0x4416f9 [ 43.523920] RSP: 002b:00007ffceac81c48 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 43.531617] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416f9 [ 43.538961] RDX: 0000000000441630 RSI: 0000000000000001 RDI: 0000000000000001 [ 43.547443] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 43.554695] R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffceac81d38 [ 43.562830] R13: 0000000000402480 R14: 0000000000000000 R15: 0000000000000000 [ 43.572238] [ 43.573861] Allocated by task 4431: [ 43.577568] save_stack+0x43/0xd0 [ 43.581092] kasan_kmalloc+0xc4/0xe0 [ 43.584790] __kmalloc_node_track_caller+0x47/0x70 [ 43.589704] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 43.594719] __alloc_skb+0x14d/0x780 [ 43.599052] alloc_skb_with_frags+0x137/0x760 [ 43.603631] sock_alloc_send_pskb+0x87a/0xae0 [ 43.608114] packet_sendmsg+0x1bd1/0x6100 [ 43.612637] sock_sendmsg+0xd5/0x120 [ 43.616337] ___sys_sendmsg+0x805/0x940 [ 43.620561] __sys_sendmsg+0x115/0x270 [ 43.624427] SyS_sendmsg+0x29/0x30 [ 43.627946] do_syscall_64+0x29e/0x9d0 [ 43.631820] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.636985] [ 43.638592] Freed by task 4431: [ 43.642178] save_stack+0x43/0xd0 [ 43.645640] __kasan_slab_free+0x11a/0x170 [ 43.650101] kasan_slab_free+0xe/0x10 [ 43.653887] kfree+0xd9/0x260 [ 43.656983] skb_free_head+0x99/0xc0 [ 43.660687] skb_release_data+0x690/0x860 [ 43.664841] skb_release_all+0x4a/0x60 [ 43.668723] kfree_skb+0x195/0x560 [ 43.672255] ip6_tnl_start_xmit+0xa44/0x2290 [ 43.676758] dev_hard_start_xmit+0x264/0xc10 [ 43.682732] __dev_queue_xmit+0x2724/0x34c0 [ 43.687148] dev_queue_xmit+0x17/0x20 [ 43.691475] packet_sendmsg+0x411d/0x6100 [ 43.695702] sock_sendmsg+0xd5/0x120 [ 43.699873] ___sys_sendmsg+0x805/0x940 [ 43.704009] __sys_sendmsg+0x115/0x270 [ 43.707992] SyS_sendmsg+0x29/0x30 [ 43.712404] do_syscall_64+0x29e/0x9d0 [ 43.716634] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.721808] [ 43.723432] The buggy address belongs to the object at ffff8801c677a2c0 [ 43.723432] which belongs to the cache kmalloc-512 of size 512 [ 43.736083] The buggy address is located 224 bytes inside of [ 43.736083] 512-byte region [ffff8801c677a2c0, ffff8801c677a4c0) [ 43.747941] The buggy address belongs to the page: [ 43.752861] page:ffffea000719de80 count:1 mapcount:0 mapping:ffff8801c677a040 index:0x0 [ 43.761013] flags: 0x2fffc0000000100(slab) [ 43.765243] raw: 02fffc0000000100 ffff8801c677a040 0000000000000000 0000000100000006 [ 43.773112] raw: ffffea000719de20 ffffea0007172160 ffff8801dac00940 0000000000000000 [ 43.780973] page dumped because: kasan: bad access detected [ 43.786678] [ 43.788309] Memory state around the buggy address: [ 43.793231] ffff8801c677a280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.800576] ffff8801c677a300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.807941] >ffff8801c677a380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.815279] ^ [ 43.819680] ffff8801c677a400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.827031] ffff8801c677a480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.834376] ================================================================== [ 43.841716] Disabling lock debugging due to kernel taint [ 43.847483] Kernel panic - not syncing: panic_on_warn set ... [ 43.847483] [ 43.854863] CPU: 0 PID: 4431 Comm: syzkaller611629 Tainted: G B 4.16.0+ #17 [ 43.863217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.872585] Call Trace: [ 43.875684] dump_stack+0x1b9/0x294 [ 43.879310] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.884491] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.889237] ? skb_release_data+0xd0/0x860 [ 43.893460] panic+0x22f/0x4de [ 43.896642] ? add_taint.cold.5+0x16/0x16 [ 43.900885] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.905292] ? do_raw_spin_unlock+0x9e/0x2e0 [ 43.909704] ? skb_release_data+0x19b/0x860 [ 43.914017] kasan_end_report+0x47/0x4f [ 43.917987] kasan_report.cold.7+0xc9/0x2f5 [ 43.922303] check_memory_region+0x13e/0x1b0 [ 43.926690] kasan_check_write+0x14/0x20 [ 43.930736] skb_release_data+0x19b/0x860 [ 43.934867] ? skb_tx_error+0x2f0/0x2f0 [ 43.938834] ? kasan_check_read+0x11/0x20 [ 43.942972] ? rcu_is_watching+0x85/0x140 [ 43.947110] ? kasan_check_write+0x14/0x20 [ 43.951346] ? sock_rmem_free+0x6f/0x90 [ 43.955397] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.960922] skb_release_all+0x4a/0x60 [ 43.964800] kfree_skb+0x195/0x560 [ 43.968562] ? skb_queue_purge+0x19/0x40 [ 43.972616] ? __kfree_skb+0x20/0x20 [ 43.976318] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 43.980888] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 43.985978] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.990979] ? trace_hardirqs_on+0xd/0x10 [ 43.995119] ? skb_dequeue+0x12f/0x180 [ 43.999777] skb_queue_purge+0x19/0x40 [ 44.003651] packet_sock_destruct+0x93/0x290 [ 44.008048] ? packet_mm_close+0xc0/0xc0 [ 44.012100] ? graph_lock+0x170/0x170 [ 44.015893] ? __free_object+0x16e/0x330 [ 44.019944] ? __list_del_entry_valid.cold.1+0x58/0x58 [ 44.025309] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 44.029880] ? packet_mm_close+0xc0/0xc0 [ 44.033924] __sk_destruct+0xff/0xa40 [ 44.037717] ? sock_warn_obsolete_bsdism+0xb0/0xb0 [ 44.042647] ? graph_lock+0x170/0x170 [ 44.046432] ? lock_downgrade+0x8e0/0x8e0 [ 44.050570] ? __lock_is_held+0xb5/0x140 [ 44.054717] ? kasan_check_read+0x11/0x20 [ 44.058860] ? do_raw_spin_unlock+0x9e/0x2e0 [ 44.063258] ? do_raw_spin_trylock+0x1b0/0x1b0 [ 44.067833] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 44.072922] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.078441] ? refcount_sub_and_test+0x212/0x330 [ 44.083185] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 44.087925] ? refcount_inc_not_zero+0x2d0/0x2d0 [ 44.092666] ? pcpu_free_area+0xa90/0xa90 [ 44.097158] sk_destruct+0x78/0x90 [ 44.100705] __sk_free+0x22e/0x340 [ 44.104243] sk_free+0x42/0x50 [ 44.107513] packet_release+0xa18/0xd50 [ 44.111580] ? lock_downgrade+0x8e0/0x8e0 [ 44.116239] ? packet_lookup_frame+0x270/0x270 [ 44.120815] ? cpumask_weight.constprop.5+0x44/0x44 [ 44.125838] ? do_raw_spin_lock+0xc1/0x200 [ 44.130246] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 44.135773] ? locks_remove_file+0x3f7/0x5a0 [ 44.140192] ? fcntl_setlk+0x1020/0x1020 [ 44.144238] ? fsnotify+0x415/0x1100 [ 44.148037] ? fsnotify_first_mark+0x330/0x330 [ 44.152604] sock_release+0x96/0x1b0 [ 44.156299] ? sock_alloc_file+0x4e0/0x4e0 [ 44.160542] sock_close+0x16/0x20 [ 44.163983] __fput+0x34d/0x890 [ 44.167255] ? fput+0x1a0/0x1a0 [ 44.170524] ? check_same_owner+0x320/0x320 [ 44.174831] ____fput+0x15/0x20 [ 44.178752] task_work_run+0x1e4/0x290 [ 44.182626] ? task_work_cancel+0x240/0x240 [ 44.187035] ? switch_task_namespaces+0xbd/0xd0 [ 44.191689] do_exit+0x1aee/0x2730 [ 44.195216] ? mm_update_next_owner+0x980/0x980 [ 44.199959] ? finish_mkwrite_fault+0x610/0x610 [ 44.204613] ? debug_check_no_locks_freed+0x310/0x310 [ 44.209790] ? kasan_check_read+0x11/0x20 [ 44.213934] ? rcu_is_watching+0x85/0x140 [ 44.218072] ? lock_acquire+0x1dc/0x520 [ 44.222040] ? lock_release+0xa10/0xa10 [ 44.226002] ? tun_chr_close+0x60/0x60 [ 44.229884] ? kasan_check_write+0x14/0x20 [ 44.234104] ? do_raw_spin_lock+0xc1/0x200 [ 44.238325] ? __handle_mm_fault+0x88c/0x4150 [ 44.242805] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 44.247542] ? graph_lock+0x170/0x170 [ 44.251327] ? rcu_is_watching+0x85/0x140 [ 44.255458] ? graph_lock+0x170/0x170 [ 44.259241] ? find_held_lock+0x36/0x1c0 [ 44.263290] ? find_held_lock+0x36/0x1c0 [ 44.267333] ? lock_downgrade+0x8e0/0x8e0 [ 44.271470] ? handle_mm_fault+0x8c0/0xc70 [ 44.275696] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.281217] ? handle_mm_fault+0x55a/0xc70 [ 44.285438] ? __handle_mm_fault+0x4150/0x4150 [ 44.290019] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.295633] ? __do_page_fault+0x441/0xe40 [ 44.299849] do_group_exit+0x16f/0x430 [ 44.303718] ? SyS_exit+0x30/0x30 [ 44.307160] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 44.311998] ? do_syscall_64+0xb7/0x9d0 [ 44.315965] ? do_group_exit+0x430/0x430 [ 44.320018] SyS_exit_group+0x1d/0x20 [ 44.323823] do_syscall_64+0x29e/0x9d0 [ 44.327698] ? vmalloc_sync_all+0x30/0x30 [ 44.331833] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.336583] ? syscall_return_slowpath+0x5c0/0x5c0 [ 44.341509] ? syscall_return_slowpath+0x30f/0x5c0 [ 44.346436] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.352052] ? retint_user+0x18/0x18 [ 44.355767] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.360596] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.365811] RIP: 0033:0x4416f9 [ 44.368984] RSP: 002b:00007ffceac81c48 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 44.376678] RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004416f9 [ 44.383932] RDX: 0000000000441630 RSI: 0000000000000001 RDI: 0000000000000001 [ 44.391186] RBP: 00000000004a3309 R08: 0000000000000000 R09: 00000000006cd018 [ 44.398444] R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffceac81d38 [ 44.405701] R13: 0000000000402480 R14: 0000000000000000 R15: 0000000000000000 [ 44.413545] Dumping ftrace buffer: [ 44.417073] (ftrace buffer empty) [ 44.420765] Kernel Offset: disabled [ 44.424386] Rebooting in 86400 seconds..