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 'ci-upstream-kasan-gce-4,10.128.0.37' (ECDSA) to the list of known hosts. 2017/09/07 18:04:56 parsed 1 programs 2017/09/07 18:04:56 executed programs: 0 syzkaller login: [ 31.663956] dev_remove_pack: ffff8801cf548b40 not found [ 31.679452] ================================================================== [ 31.686890] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 31.693617] Read of size 8 at addr ffff8801ce663368 by task syz-executor0/2995 [ 31.700947] [ 31.702551] CPU: 0 PID: 2995 Comm: syz-executor0 Not tainted 4.13.0+ #72 [ 31.709370] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.718697] Call Trace: [ 31.721260] dump_stack+0x194/0x257 [ 31.724863] ? arch_local_irq_restore+0x53/0x53 [ 31.729509] ? show_regs_print_info+0x65/0x65 [ 31.733986] ? __dev_remove_pack+0x305/0x3b0 [ 31.738370] print_address_description+0x73/0x250 [ 31.743187] ? __dev_remove_pack+0x305/0x3b0 [ 31.747571] kasan_report+0x24e/0x340 [ 31.751347] __asan_report_load8_noabort+0x14/0x20 [ 31.756365] __dev_remove_pack+0x305/0x3b0 [ 31.760589] ? dev_get_by_name_rcu+0x270/0x270 [ 31.765158] ? refcount_sub_and_test+0x115/0x1b0 [ 31.769895] __unregister_prot_hook+0x211/0x280 [ 31.774543] packet_release+0x8bb/0xd70 [ 31.778510] ? packet_set_ring+0x1b70/0x1b70 [ 31.782890] ? lock_downgrade+0x990/0x990 [ 31.787011] ? lockref_put_or_lock+0x19/0x80 [ 31.791398] ? do_raw_spin_trylock+0x190/0x190 [ 31.795958] ? locks_remove_file+0x3fa/0x5a0 [ 31.800341] ? fcntl_setlk+0x10d0/0x10d0 [ 31.804897] ? __fsnotify_parent+0xb4/0x3a0 [ 31.809193] ? fsnotify+0x1af0/0x1af0 [ 31.812965] ? _raw_spin_unlock+0x22/0x30 [ 31.817093] sock_release+0x8d/0x1e0 [ 31.820775] ? sock_release+0x8d/0x1e0 [ 31.824636] ? sock_release+0x1e0/0x1e0 [ 31.828581] sock_close+0x16/0x20 [ 31.832007] __fput+0x333/0x7f0 [ 31.835265] ? fput+0x140/0x140 [ 31.838518] ? check_same_owner+0x320/0x320 [ 31.842808] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.847290] ____fput+0x15/0x20 [ 31.850543] task_work_run+0x199/0x270 [ 31.854404] ? task_work_cancel+0x210/0x210 [ 31.858697] ? _raw_spin_unlock+0x22/0x30 [ 31.862819] ? switch_task_namespaces+0x87/0xc0 [ 31.867466] do_exit+0xa52/0x1b40 [ 31.870899] ? plist_check_list+0xa0/0xa0 [ 31.875040] ? plist_del+0x47b/0x990 [ 31.878728] ? mm_update_next_owner+0x930/0x930 [ 31.883370] ? plist_add+0x760/0x760 [ 31.887067] ? check_same_owner+0x320/0x320 [ 31.891368] ? find_held_lock+0x39/0x1d0 [ 31.895427] ? check_noncircular+0x20/0x20 [ 31.899644] ? lock_downgrade+0x990/0x990 [ 31.903766] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 31.909125] ? find_held_lock+0x39/0x1d0 [ 31.913169] ? lock_downgrade+0x990/0x990 [ 31.917290] ? recalc_sigpending_tsk+0x117/0x150 [ 31.922017] ? recalc_sigpending+0x103/0x160 [ 31.926397] ? recalc_sigpending_tsk+0x150/0x150 [ 31.931122] ? get_signal+0x397/0x17e0 [ 31.934991] do_group_exit+0x149/0x400 [ 31.938857] ? __lock_is_held+0xbc/0x140 [ 31.942890] ? SyS_exit+0x30/0x30 [ 31.946317] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.950795] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.955791] get_signal+0x7e8/0x17e0 [ 31.959511] ? ptrace_notify+0x130/0x130 [ 31.963546] ? __fget+0xbb/0x580 [ 31.966894] ? lock_downgrade+0x990/0x990 [ 31.971017] ? lock_release+0xd70/0xd70 [ 31.974974] ? exit_robust_list+0x240/0x240 [ 31.979283] do_signal+0x94/0x1ee0 [ 31.983061] ? iterate_fd+0x3f0/0x3f0 [ 31.986849] ? setup_sigcontext+0x7d0/0x7d0 [ 31.991158] ? do_page_fault+0xee/0x720 [ 31.995124] ? __do_page_fault+0xb60/0xb60 [ 31.999355] ? __fget_light+0x29d/0x390 [ 32.003319] ? selinux_tun_dev_create+0xc0/0xc0 [ 32.007963] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 32.013650] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 32.018901] ? exit_to_usermode_loop+0x98/0x300 [ 32.023548] exit_to_usermode_loop+0x224/0x300 [ 32.028106] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.033624] syscall_return_slowpath+0x42f/0x500 [ 32.038355] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 32.043371] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 32.048280] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.053270] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.058008] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 32.062733] RIP: 0033:0x451e59 [ 32.065892] RSP: 002b:00007f8f73da8cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 32.073576] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 0000000000451e59 [ 32.080821] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 32.088064] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 32.095304] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 32.102544] R13: 00007fff372550af R14: 00007f8f73da99c0 R15: 0000000000000000 [ 32.109805] [ 32.111407] Allocated by task 2995: [ 32.115009] save_stack_trace+0x16/0x20 [ 32.118956] save_stack+0x43/0xd0 [ 32.122377] kasan_kmalloc+0xad/0xe0 [ 32.126060] kmem_cache_alloc_trace+0x136/0x750 [ 32.130703] fanout_add+0xa50/0x1190 [ 32.134385] packet_setsockopt+0xfdc/0x1e80 [ 32.138683] SyS_setsockopt+0x189/0x360 [ 32.142629] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.147351] [ 32.148947] Freed by task 2995: [ 32.152198] save_stack_trace+0x16/0x20 [ 32.156143] save_stack+0x43/0xd0 [ 32.159567] kasan_slab_free+0x71/0xc0 [ 32.163426] kfree+0xca/0x250 [ 32.166502] packet_release+0xa8f/0xd70 [ 32.170448] sock_release+0x8d/0x1e0 [ 32.174133] sock_close+0x16/0x20 [ 32.178146] __fput+0x333/0x7f0 [ 32.181395] ____fput+0x15/0x20 [ 32.184647] task_work_run+0x199/0x270 [ 32.188510] do_exit+0xa52/0x1b40 [ 32.191936] do_group_exit+0x149/0x400 [ 32.195796] get_signal+0x7e8/0x17e0 [ 32.199485] do_signal+0x94/0x1ee0 [ 32.202996] exit_to_usermode_loop+0x224/0x300 [ 32.207558] syscall_return_slowpath+0x42f/0x500 [ 32.212284] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 32.217006] [ 32.218624] The buggy address belongs to the object at ffff8801ce662ac0 [ 32.218624] which belongs to the cache kmalloc-4096 of size 4096 [ 32.231424] The buggy address is located 2216 bytes inside of [ 32.231424] 4096-byte region [ffff8801ce662ac0, ffff8801ce663ac0) [ 32.243445] The buggy address belongs to the page: [ 32.248348] page:ffffea0007399880 count:1 mapcount:0 mapping:ffff8801ce662ac0 index:0x0 compound_mapcount: 0 [ 32.258296] flags: 0x200000000008100(slab|head) [ 32.262940] raw: 0200000000008100 ffff8801ce662ac0 0000000000000000 0000000100000001 [ 32.270795] raw: ffffea0007399c20 ffffea0007399920 ffff8801dac00dc0 0000000000000000 [ 32.278644] page dumped because: kasan: bad access detected [ 32.284323] [ 32.285939] Memory state around the buggy address: [ 32.290847] ffff8801ce663200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.298184] ffff8801ce663280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.305512] >ffff8801ce663300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.312839] ^ [ 32.319560] ffff8801ce663380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.326888] ffff8801ce663400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.334214] ================================================================== [ 32.341540] Disabling lock debugging due to kernel taint [ 32.347054] Kernel panic - not syncing: panic_on_warn set ... [ 32.347054] [ 32.354389] CPU: 0 PID: 2995 Comm: syz-executor0 Tainted: G B 4.13.0+ #72 [ 32.362408] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.371729] Call Trace: [ 32.374287] dump_stack+0x194/0x257 [ 32.377882] ? arch_local_irq_restore+0x53/0x53 [ 32.382519] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.387246] ? __dev_remove_pack+0x230/0x3b0 [ 32.391625] panic+0x1e4/0x417 [ 32.394784] ? __warn+0x1d9/0x1d9 [ 32.398209] ? __dev_remove_pack+0x305/0x3b0 [ 32.402585] kasan_end_report+0x50/0x50 [ 32.406521] kasan_report+0x137/0x340 [ 32.410287] __asan_report_load8_noabort+0x14/0x20 [ 32.415181] __dev_remove_pack+0x305/0x3b0 [ 32.419383] ? dev_get_by_name_rcu+0x270/0x270 [ 32.423932] ? refcount_sub_and_test+0x115/0x1b0 [ 32.428661] __unregister_prot_hook+0x211/0x280 [ 32.433298] packet_release+0x8bb/0xd70 [ 32.437245] ? packet_set_ring+0x1b70/0x1b70 [ 32.441630] ? lock_downgrade+0x990/0x990 [ 32.445755] ? lockref_put_or_lock+0x19/0x80 [ 32.450152] ? do_raw_spin_trylock+0x190/0x190 [ 32.454718] ? locks_remove_file+0x3fa/0x5a0 [ 32.459111] ? fcntl_setlk+0x10d0/0x10d0 [ 32.463170] ? __fsnotify_parent+0xb4/0x3a0 [ 32.467467] ? fsnotify+0x1af0/0x1af0 [ 32.471243] ? _raw_spin_unlock+0x22/0x30 [ 32.475369] sock_release+0x8d/0x1e0 [ 32.479062] ? sock_release+0x8d/0x1e0 [ 32.482918] ? sock_release+0x1e0/0x1e0 [ 32.486855] sock_close+0x16/0x20 [ 32.490275] __fput+0x333/0x7f0 [ 32.493523] ? fput+0x140/0x140 [ 32.496773] ? check_same_owner+0x320/0x320 [ 32.501072] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.505537] ____fput+0x15/0x20 [ 32.508783] task_work_run+0x199/0x270 [ 32.512639] ? task_work_cancel+0x210/0x210 [ 32.516928] ? _raw_spin_unlock+0x22/0x30 [ 32.521044] ? switch_task_namespaces+0x87/0xc0 [ 32.525680] do_exit+0xa52/0x1b40 [ 32.529100] ? plist_check_list+0xa0/0xa0 [ 32.533231] ? plist_del+0x47b/0x990 [ 32.536912] ? mm_update_next_owner+0x930/0x930 [ 32.541556] ? plist_add+0x760/0x760 [ 32.545244] ? check_same_owner+0x320/0x320 [ 32.549535] ? find_held_lock+0x39/0x1d0 [ 32.553567] ? check_noncircular+0x20/0x20 [ 32.557770] ? lock_downgrade+0x990/0x990 [ 32.561887] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 32.567225] ? find_held_lock+0x39/0x1d0 [ 32.571259] ? lock_downgrade+0x990/0x990 [ 32.575373] ? recalc_sigpending_tsk+0x117/0x150 [ 32.580095] ? recalc_sigpending+0x103/0x160 [ 32.584472] ? recalc_sigpending_tsk+0x150/0x150 [ 32.589191] ? get_signal+0x397/0x17e0 [ 32.593051] do_group_exit+0x149/0x400 [ 32.596910] ? __lock_is_held+0xbc/0x140 [ 32.600935] ? SyS_exit+0x30/0x30 [ 32.604354] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.608814] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.613799] get_signal+0x7e8/0x17e0 [ 32.617498] ? ptrace_notify+0x130/0x130 [ 32.621529] ? __fget+0xbb/0x580 [ 32.624863] ? lock_downgrade+0x990/0x990 [ 32.628979] ? lock_release+0xd70/0xd70 [ 32.632933] ? exit_robust_list+0x240/0x240 [ 32.637230] do_signal+0x94/0x1ee0 [ 32.640738] ? iterate_fd+0x3f0/0x3f0 [ 32.644526] ? setup_sigcontext+0x7d0/0x7d0 [ 32.648820] ? do_page_fault+0xee/0x720 [ 32.652763] ? __do_page_fault+0xb60/0xb60 [ 32.656971] ? __fget_light+0x29d/0x390 [ 32.660927] ? selinux_tun_dev_create+0xc0/0xc0