2017/09/13 06:22:38 parsed 1 programs 2017/09/13 06:22:38 executed programs: 0 2017/09/13 06:22:43 executed programs: 529 2017/09/13 06:22:48 executed programs: 1348 2017/09/13 06:22:53 executed programs: 2127 syzkaller login: [ 67.478167] dev_remove_pack: ffff88003cf88980 not found [ 67.491197] ================================================================== [ 67.491807] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 67.492334] Read of size 8 at addr ffff88003d06cf28 by task syz-executor1/10872 [ 67.492913] [ 67.493033] CPU: 0 PID: 10872 Comm: syz-executor1 Not tainted 4.13.0-next-20170913+ #3 [ 67.493698] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 67.494447] Call Trace: [ 67.494700] dump_stack+0x194/0x257 [ 67.495007] ? arch_local_irq_restore+0x53/0x53 [ 67.495378] ? show_regs_print_info+0x65/0x65 [ 67.495748] ? __dev_remove_pack+0x305/0x3b0 [ 67.496076] print_address_description+0x73/0x250 [ 67.496450] ? __dev_remove_pack+0x305/0x3b0 [ 67.496818] kasan_report+0x24e/0x340 [ 67.497104] __asan_report_load8_noabort+0x14/0x20 [ 67.497489] __dev_remove_pack+0x305/0x3b0 [ 67.497811] ? dev_get_by_name_rcu+0x270/0x270 [ 67.498208] ? refcount_sub_and_test+0x115/0x1b0 [ 67.498594] ? refcount_inc+0x50/0x50 [ 67.498870] __unregister_prot_hook+0x224/0x280 [ 67.499251] packet_release+0x8bb/0xd70 [ 67.499569] ? packet_set_ring+0x1b70/0x1b70 [ 67.499884] ? dentry_free+0xcd/0x130 [ 67.500213] ? rcu_read_lock_sched_held+0x108/0x120 [ 67.500715] ? kmem_cache_free+0x249/0x280 [ 67.501425] ? dentry_free+0xd2/0x130 [ 67.501821] ? locks_remove_file+0x3fa/0x5a0 [ 67.502165] ? fcntl_setlk+0x10d0/0x10d0 [ 67.502486] ? __fsnotify_parent+0xb4/0x3a0 [ 67.502827] ? fsnotify+0x1af0/0x1af0 [ 67.503132] sock_release+0x8d/0x1e0 [ 67.503466] ? sock_release+0x8d/0x1e0 [ 67.503842] ? sock_release+0x1e0/0x1e0 [ 67.504191] sock_close+0x16/0x20 [ 67.504490] __fput+0x333/0x7f0 [ 67.504800] ? fput+0x140/0x140 [ 67.505122] ? check_same_owner+0x320/0x320 [ 67.505454] ? _raw_spin_unlock_irq+0x27/0x70 [ 67.505786] ____fput+0x15/0x20 [ 67.506015] task_work_run+0x199/0x270 [ 67.506289] ? task_work_cancel+0x210/0x210 [ 67.506627] ? _raw_spin_unlock+0x22/0x30 [ 67.506925] ? switch_task_namespaces+0x87/0xc0 [ 67.507252] do_exit+0xa52/0x1b40 [ 67.507506] ? plist_check_list+0xa0/0xa0 [ 67.507813] ? plist_del+0x47b/0x990 [ 67.508073] ? mm_update_next_owner+0x930/0x930 [ 67.508403] ? plist_add+0x760/0x760 [ 67.508681] ? check_same_owner+0x320/0x320 [ 67.508994] ? find_held_lock+0x39/0x1d0 [ 67.509292] ? check_noncircular+0x20/0x20 [ 67.509589] ? lock_downgrade+0x990/0x990 [ 67.509879] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 67.510264] ? find_held_lock+0x39/0x1d0 [ 67.510559] ? lock_downgrade+0x990/0x990 [ 67.510857] ? recalc_sigpending_tsk+0x117/0x150 [ 67.511188] ? recalc_sigpending+0x103/0x160 [ 67.511499] ? recalc_sigpending_tsk+0x150/0x150 [ 67.511825] ? get_signal+0x397/0x17e0 [ 67.512097] do_group_exit+0x149/0x400 [ 67.512377] ? __lock_is_held+0xbc/0x140 [ 67.512667] ? SyS_exit+0x30/0x30 [ 67.512909] ? _raw_spin_unlock_irq+0x27/0x70 [ 67.513222] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 67.513578] get_signal+0x7e8/0x17e0 [ 67.513859] ? ptrace_notify+0x130/0x130 [ 67.514235] ? __fget+0xbb/0x580 [ 67.514555] ? lock_release+0xd70/0xd70 [ 67.514925] ? exit_robust_list+0x240/0x240 [ 67.515336] do_signal+0x94/0x1ee0 [ 67.515661] ? iterate_fd+0x3f0/0x3f0 [ 67.516017] ? setup_sigcontext+0x7d0/0x7d0 [ 67.516416] ? find_held_lock+0x39/0x1d0 [ 67.516750] ? packet_getsockopt+0x197/0xe00 [ 67.517158] ? packet_notifier+0x950/0x950 [ 67.517455] ? __fget_light+0x29d/0x390 [ 67.517742] ? selinux_tun_dev_create+0xc0/0xc0 [ 67.518075] ? selinux_tun_dev_create+0xc0/0xc0 [ 67.518377] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 67.518900] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 67.519385] ? exit_to_usermode_loop+0x98/0x300 [ 67.519818] exit_to_usermode_loop+0x224/0x300 [ 67.520218] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 67.520734] syscall_return_slowpath+0x42f/0x500 [ 67.521105] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 67.521971] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 67.522371] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 67.523084] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 67.523760] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 67.524447] RIP: 0033:0x447299 [ 67.524903] RSP: 002b:00007f0e9a6a6cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 67.526012] RAX: fffffffffffffe00 RBX: 0000000000708188 RCX: 0000000000447299 [ 67.527050] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000708188 [ 67.528088] RBP: 0000000000708160 R08: 0000000000000000 R09: 0000000000000000 [ 67.529158] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 67.530208] R13: 0000000000000000 R14: 00007f0e9a6a79c0 R15: 00007f0e9a6a7700 [ 67.531268] [ 67.531503] Allocated by task 10870: [ 67.532073] save_stack_trace+0x16/0x20 [ 67.532634] save_stack+0x43/0xd0 [ 67.533165] kasan_kmalloc+0xad/0xe0 [ 67.533695] kmem_cache_alloc_trace+0x136/0x750 [ 67.534386] fanout_add+0xa50/0x1190 [ 67.534777] packet_setsockopt+0xfdc/0x1e80 [ 67.535176] SyS_setsockopt+0x189/0x360 [ 67.535688] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 67.536207] [ 67.536380] Freed by task 10872: [ 67.536671] save_stack_trace+0x16/0x20 [ 67.537015] save_stack+0x43/0xd0 [ 67.537342] kasan_slab_free+0x71/0xc0 [ 67.537680] kfree+0xca/0x250 [ 67.537948] packet_release+0xa8f/0xd70 [ 67.538292] sock_release+0x8d/0x1e0 [ 67.538602] sock_close+0x16/0x20 [ 67.538892] __fput+0x333/0x7f0 [ 67.539174] ____fput+0x15/0x20 [ 67.539447] task_work_run+0x199/0x270 [ 67.539769] do_exit+0xa52/0x1b40 [ 67.540064] do_group_exit+0x149/0x400 [ 67.540460] get_signal+0x7e8/0x17e0 [ 67.540870] do_signal+0x94/0x1ee0 [ 67.541180] exit_to_usermode_loop+0x224/0x300 [ 67.541606] syscall_return_slowpath+0x42f/0x500 [ 67.542132] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 67.543082] [ 67.543320] The buggy address belongs to the object at ffff88003d06c680 [ 67.543320] which belongs to the cache kmalloc-4096 of size 4096 [ 67.545200] The buggy address is located 2216 bytes inside of [ 67.545200] 4096-byte region [ffff88003d06c680, ffff88003d06d680) [ 67.546286] The buggy address belongs to the page: [ 67.546695] page:ffffea0000f41b00 count:1 mapcount:0 mapping:ffff88003d06c680 index:0x0 compound_mapcount: 0 [ 67.547536] flags: 0x100000000008100(slab|head) [ 67.547921] raw: 0100000000008100 ffff88003d06c680 0000000000000000 0000000100000001 [ 67.548576] raw: ffffea0000ebf6a0 ffff88003e801a50 ffff88003e800dc0 0000000000000000 [ 67.549231] page dumped because: kasan: bad access detected [ 67.549698] [ 67.549837] Memory state around the buggy address: [ 67.550456] ffff88003d06ce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.551504] ffff88003d06ce80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.552554] >ffff88003d06cf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.553616] ^ [ 67.554295] ffff88003d06cf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.555352] ffff88003d06d000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.556412] ================================================================== [ 67.557484] Disabling lock debugging due to kernel taint [ 67.558312] Kernel panic - not syncing: panic_on_warn set ... [ 67.558312] [ 67.559378] CPU: 0 PID: 10872 Comm: syz-executor1 Tainted: G B 4.13.0-next-20170913+ #3 [ 67.560682] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 67.561844] Call Trace: [ 67.562217] dump_stack+0x194/0x257 [ 67.562737] ? arch_local_irq_restore+0x53/0x53 [ 67.563413] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 67.564091] ? __dev_remove_pack+0x2f0/0x3b0 [ 67.565414] panic+0x1e4/0x417 [ 67.565713] ? __warn+0x1d9/0x1d9 [ 67.566107] ? __dev_remove_pack+0x305/0x3b0 [ 67.566564] kasan_end_report+0x50/0x50 [ 67.566909] kasan_report+0x137/0x340 [ 67.567293] __asan_report_load8_noabort+0x14/0x20 [ 67.567982] __dev_remove_pack+0x305/0x3b0 [ 67.568577] ? dev_get_by_name_rcu+0x270/0x270 [ 67.569222] ? refcount_sub_and_test+0x115/0x1b0 [ 67.569848] ? refcount_inc+0x50/0x50 [ 67.570222] __unregister_prot_hook+0x224/0x280 [ 67.570877] packet_release+0x8bb/0xd70 [ 67.571336] ? packet_set_ring+0x1b70/0x1b70 [ 67.571824] ? dentry_free+0xcd/0x130 [ 67.572358] ? rcu_read_lock_sched_held+0x108/0x120 [ 67.573061] ? kmem_cache_free+0x249/0x280 [ 67.573675] ? dentry_free+0xd2/0x130 [ 67.574187] ? locks_remove_file+0x3fa/0x5a0 [ 67.574804] ? fcntl_setlk+0x10d0/0x10d0 [ 67.575375] ? __fsnotify_parent+0xb4/0x3a0 [ 67.575977] ? fsnotify+0x1af0/0x1af0 [ 67.576516] sock_release+0x8d/0x1e0 [ 67.577036] ? sock_release+0x8d/0x1e0 [ 67.577583] ? sock_release+0x1e0/0x1e0 [ 67.578140] sock_close+0x16/0x20 [ 67.578619] __fput+0x333/0x7f0 [ 67.579083] ? fput+0x140/0x140 [ 67.579559] ? check_same_owner+0x320/0x320 [ 67.580235] ? _raw_spin_unlock_irq+0x27/0x70 [ 67.580863] ____fput+0x15/0x20 [ 67.581325] task_work_run+0x199/0x270 [ 67.581871] ? task_work_cancel+0x210/0x210 [ 67.582478] ? _raw_spin_unlock+0x22/0x30 [ 67.583061] ? switch_task_namespaces+0x87/0xc0 [ 67.583713] do_exit+0xa52/0x1b40 [ 67.584206] ? plist_check_list+0xa0/0xa0 [ 67.584791] ? plist_del+0x47b/0x990 [ 67.585567] ? mm_update_next_owner+0x930/0x930 [ 67.586516] ? plist_add+0x760/0x760 [ 67.586836] ? check_same_owner+0x320/0x320 [ 67.587251] ? find_held_lock+0x39/0x1d0 [ 67.587694] ? check_noncircular+0x20/0x20 [ 67.588221] ? lock_downgrade+0x990/0x990 [ 67.588574] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 67.589038] ? find_held_lock+0x39/0x1d0 [ 67.589366] ? lock_downgrade+0x990/0x990 [ 67.589675] ? recalc_sigpending_tsk+0x117/0x150 [ 67.590014] ? recalc_sigpending+0x103/0x160 [ 67.590329] ? recalc_sigpending_tsk+0x150/0x150 [ 67.590712] ? get_signal+0x397/0x17e0 [ 67.591144] do_group_exit+0x149/0x400 [ 67.591467] ? __lock_is_held+0xbc/0x140 [ 67.591793] ? SyS_exit+0x30/0x30 [ 67.592087] ? _raw_spin_unlock_irq+0x27/0x70 [ 67.592462] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 67.592873] get_signal+0x7e8/0x17e0 [ 67.593202] ? ptrace_notify+0x130/0x130 [ 67.593545] ? __fget+0xbb/0x580 [ 67.593841] ? lock_release+0xd70/0xd70 [ 67.594376] ? exit_robust_list+0x240/0x240 [ 67.594938] do_signal+0x94/0x1ee0 [ 67.595439] ? iterate_fd+0x3f0/0x3f0 [ 67.595885] ? setup_sigcontext+0x7d0/0x7d0 [ 67.596495] ? find_held_lock+0x39/0x1d0 [ 67.596973] ? packet_getsockopt+0x197/0xe00 [ 67.597414] ? packet_notifier+0x950/0x950 [ 67.597960] ? __fget_light+0x29d/0x390 [ 67.598287] ? selinux_tun_dev_create+0xc0/0xc0 [ 67.598675] ? selinux_tun_dev_create+0xc0/0xc0 [ 67.599184] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 67.599994] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 67.600678] ? exit_to_usermode_loop+0x98/0x300 [ 67.601089] exit_to_usermode_loop+0x224/0x300 [ 67.601499] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 67.601987] syscall_return_slowpath+0x42f/0x500 [ 67.602392] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 67.602819] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 67.603240] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 67.603664] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 67.604073] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 67.604475] RIP: 0033:0x447299 [ 67.604745] RSP: 002b:00007f0e9a6a6cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 67.605398] RAX: fffffffffffffe00 RBX: 0000000000708188 RCX: 0000000000447299 [ 67.606014] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000708188 [ 67.607349] RBP: 0000000000708160 R08: 0000000000000000 R09: 0000000000000000 [ 67.607961] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 67.608588] R13: 0000000000000000 R14: 00007f0e9a6a79c0 R15: 00007f0e9a6a7700 [ 67.609286] Dumping ftrace buffer: [ 67.609651] (ftrace buffer empty) [ 67.609912] Kernel Offset: disabled [ 67.610210] Rebooting in 86400 seconds..