2017/09/03 22:52:02 parsed 1 programs 2017/09/03 22:52:02 executed programs: 0 syzkaller login: [ 25.486964] dev_remove_pack: ffff88006d042c00 not found [ 25.520590] ================================================================== [ 25.521500] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 25.522132] Read of size 8 at addr ffff88006ceb7468 by task syz-executor0/3004 [ 25.522882] [ 25.523035] CPU: 3 PID: 3004 Comm: syz-executor0 Not tainted 4.13.0-rc7-next-20170901+ #13 [ 25.523870] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.524772] Call Trace: [ 25.525042] dump_stack+0x194/0x257 [ 25.525375] ? arch_local_irq_restore+0x53/0x53 [ 25.525876] ? show_regs_print_info+0x65/0x65 [ 25.526317] ? __dev_remove_pack+0x305/0x3b0 [ 25.526882] print_address_description+0x73/0x250 [ 25.527420] ? __dev_remove_pack+0x305/0x3b0 [ 25.528336] kasan_report+0x24e/0x340 [ 25.528990] __asan_report_load8_noabort+0x14/0x20 [ 25.529541] __dev_remove_pack+0x305/0x3b0 [ 25.530300] ? dev_get_by_name_rcu+0x270/0x270 [ 25.530811] ? refcount_sub_and_test+0x115/0x1b0 [ 25.531544] __unregister_prot_hook+0x211/0x280 [ 25.532350] packet_release+0x8bb/0xd70 [ 25.532697] ? packet_set_ring+0x1b70/0x1b70 [ 25.533132] ? dentry_free+0xcd/0x130 [ 25.534841] ? rcu_read_lock_sched_held+0x108/0x120 [ 25.535408] ? kmem_cache_free+0x249/0x280 [ 25.537256] ? dentry_free+0xd2/0x130 [ 25.537685] ? locks_remove_file+0x3fa/0x5a0 [ 25.539701] ? fcntl_setlk+0x10d0/0x10d0 [ 25.540608] ? __fsnotify_parent+0xb4/0x3a0 [ 25.541861] ? fsnotify+0x1af0/0x1af0 [ 25.542221] sock_release+0x8d/0x1e0 [ 25.543772] ? sock_release+0x8d/0x1e0 [ 25.544138] ? sock_release+0x1e0/0x1e0 [ 25.544500] sock_close+0x16/0x20 [ 25.545687] __fput+0x333/0x7f0 [ 25.546644] ? fput+0x140/0x140 [ 25.547741] ? check_same_owner+0x320/0x320 [ 25.548752] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.550161] ____fput+0x15/0x20 [ 25.550952] task_work_run+0x199/0x270 [ 25.551964] ? task_work_cancel+0x210/0x210 [ 25.552453] ? _raw_spin_unlock+0x22/0x30 [ 25.554394] ? switch_task_namespaces+0x87/0xc0 [ 25.555799] do_exit+0xa52/0x1b40 [ 25.557691] ? plist_check_list+0xa0/0xa0 [ 25.558604] ? plist_del+0x47b/0x990 [ 25.559501] ? mm_update_next_owner+0x930/0x930 [ 25.560370] ? plist_add+0x760/0x760 [ 25.561975] ? check_same_owner+0x320/0x320 [ 25.562465] ? find_held_lock+0x39/0x1d0 [ 25.564341] ? check_noncircular+0x20/0x20 [ 25.564816] ? lock_downgrade+0x990/0x990 [ 25.566446] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 25.568153] ? find_held_lock+0x39/0x1d0 [ 25.568965] ? lock_downgrade+0x990/0x990 [ 25.569332] ? recalc_sigpending_tsk+0x117/0x150 [ 25.570681] ? recalc_sigpending+0x103/0x160 [ 25.571576] ? recalc_sigpending_tsk+0x150/0x150 [ 25.572858] ? get_signal+0x397/0x17e0 [ 25.573533] do_group_exit+0x149/0x400 [ 25.574473] ? __lock_is_held+0xbc/0x140 [ 25.574853] ? SyS_exit+0x30/0x30 [ 25.575711] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.580088] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.582250] get_signal+0x7e8/0x17e0 [ 25.584060] ? ptrace_notify+0x130/0x130 [ 25.585759] ? __fget+0xbb/0x580 [ 25.586418] ? lock_release+0xd70/0xd70 [ 25.587448] ? exit_robust_list+0x240/0x240 [ 25.588340] do_signal+0x94/0x1ee0 [ 25.589803] ? iterate_fd+0x3f0/0x3f0 [ 25.590244] ? up_read+0x1a/0x40 [ 25.590635] ? setup_sigcontext+0x7d0/0x7d0 [ 25.600073] ? __do_page_fault+0xb60/0xb60 [ 25.601063] ? __fget_light+0x29d/0x390 [ 25.601677] ? selinux_tun_dev_create+0xc0/0xc0 [ 25.602184] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 25.602943] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.603742] ? exit_to_usermode_loop+0x98/0x300 [ 25.604185] exit_to_usermode_loop+0x224/0x300 [ 25.604853] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.605449] syscall_return_slowpath+0x42f/0x500 [ 25.606033] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 25.606563] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 25.607206] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.607830] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.608517] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.609505] RIP: 0033:0x447299 [ 25.610315] RSP: 002b:00007fe0096e1cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.612279] RAX: fffffffffffffe00 RBX: 0000000000708028 RCX: 0000000000447299 [ 25.614155] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000708028 [ 25.615365] RBP: 0000000000708000 R08: 0000000000000000 R09: 0000000000000000 [ 25.617683] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.626074] R13: 0000000000000000 R14: 00007fe0096e29c0 R15: 00007fe0096e2700 [ 25.627497] [ 25.627843] Allocated by task 3004: [ 25.628535] save_stack_trace+0x16/0x20 [ 25.630184] save_stack+0x43/0xd0 [ 25.631412] kasan_kmalloc+0xad/0xe0 [ 25.632657] kmem_cache_alloc_trace+0x136/0x750 [ 25.634201] fanout_add+0xa50/0x1190 [ 25.635606] packet_setsockopt+0xfdc/0x1e80 [ 25.637003] SyS_setsockopt+0x189/0x360 [ 25.638289] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.639832] [ 25.640362] Freed by task 3004: [ 25.640675] save_stack_trace+0x16/0x20 [ 25.641034] save_stack+0x43/0xd0 [ 25.641345] kasan_slab_free+0x71/0xc0 [ 25.641704] kfree+0xca/0x250 [ 25.641974] packet_release+0xa8f/0xd70 [ 25.642290] sock_release+0x8d/0x1e0 [ 25.644375] sock_close+0x16/0x20 [ 25.644950] __fput+0x333/0x7f0 [ 25.645633] ____fput+0x15/0x20 [ 25.646293] task_work_run+0x199/0x270 [ 25.646925] do_exit+0xa52/0x1b40 [ 25.647612] do_group_exit+0x149/0x400 [ 25.648493] get_signal+0x7e8/0x17e0 [ 25.649537] do_signal+0x94/0x1ee0 [ 25.650447] exit_to_usermode_loop+0x224/0x300 [ 25.651330] syscall_return_slowpath+0x42f/0x500 [ 25.652175] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.653088] [ 25.653452] The buggy address belongs to the object at ffff88006ceb6bc0 [ 25.653452] which belongs to the cache kmalloc-4096 of size 4096 [ 25.656763] The buggy address is located 2216 bytes inside of [ 25.656763] 4096-byte region [ffff88006ceb6bc0, ffff88006ceb7bc0) [ 25.660252] The buggy address belongs to the page: [ 25.661464] page:ffffea0001b3ad80 count:1 mapcount:0 mapping:ffff88006ceb6bc0 index:0x0 compound_mapcount: 0 [ 25.665759] flags: 0x500000000008100(slab|head) [ 25.666952] raw: 0500000000008100 ffff88006ceb6bc0 0000000000000000 0000000100000001 [ 25.668745] raw: ffffea00019fc7a0 ffffea00019f8a20 ffff88003e800dc0 0000000000000000 [ 25.670536] page dumped because: kasan: bad access detected [ 25.671932] [ 25.672430] Memory state around the buggy address: [ 25.673628] ffff88006ceb7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.675582] ffff88006ceb7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.677382] >ffff88006ceb7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.679256] ^ [ 25.680816] ffff88006ceb7480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.682409] ffff88006ceb7500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.683699] ================================================================== [ 25.686300] Disabling lock debugging due to kernel taint [ 25.696117] Kernel panic - not syncing: panic_on_warn set ... [ 25.696117] [ 25.702959] CPU: 3 PID: 3004 Comm: syz-executor0 Tainted: G B 4.13.0-rc7-next-20170901+ #13 [ 25.707474] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.710344] Call Trace: [ 25.711262] dump_stack+0x194/0x257 [ 25.712234] ? arch_local_irq_restore+0x53/0x53 [ 25.713532] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.715112] ? __dev_remove_pack+0x2a0/0x3b0 [ 25.716227] panic+0x1e4/0x417 [ 25.717236] ? __warn+0x1d9/0x1d9 [ 25.718352] ? __dev_remove_pack+0x305/0x3b0 [ 25.719900] kasan_end_report+0x50/0x50 [ 25.721516] kasan_report+0x137/0x340 [ 25.723098] __asan_report_load8_noabort+0x14/0x20 [ 25.724324] __dev_remove_pack+0x305/0x3b0 [ 25.725429] ? dev_get_by_name_rcu+0x270/0x270 [ 25.726513] ? refcount_sub_and_test+0x115/0x1b0 [ 25.736140] __unregister_prot_hook+0x211/0x280 [ 25.737336] packet_release+0x8bb/0xd70 [ 25.738351] ? packet_set_ring+0x1b70/0x1b70 [ 25.739437] ? dentry_free+0xcd/0x130 [ 25.740544] ? rcu_read_lock_sched_held+0x108/0x120 [ 25.741754] ? kmem_cache_free+0x249/0x280 [ 25.742818] ? dentry_free+0xd2/0x130 [ 25.743740] ? locks_remove_file+0x3fa/0x5a0 [ 25.744886] ? fcntl_setlk+0x10d0/0x10d0 [ 25.745911] ? __fsnotify_parent+0xb4/0x3a0 [ 25.746964] ? fsnotify+0x1af0/0x1af0 [ 25.747944] sock_release+0x8d/0x1e0 [ 25.749694] ? sock_release+0x8d/0x1e0 [ 25.750640] ? sock_release+0x1e0/0x1e0 [ 25.751566] sock_close+0x16/0x20 [ 25.752410] __fput+0x333/0x7f0 [ 25.753189] ? fput+0x140/0x140 [ 25.753903] ? check_same_owner+0x320/0x320 [ 25.754945] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.756207] ____fput+0x15/0x20 [ 25.756929] task_work_run+0x199/0x270 [ 25.757964] ? task_work_cancel+0x210/0x210 [ 25.759204] ? _raw_spin_unlock+0x22/0x30 [ 25.760243] ? switch_task_namespaces+0x87/0xc0 [ 25.761318] do_exit+0xa52/0x1b40 [ 25.762186] ? plist_check_list+0xa0/0xa0 [ 25.763215] ? plist_del+0x47b/0x990 [ 25.764344] ? mm_update_next_owner+0x930/0x930 [ 25.765585] ? plist_add+0x760/0x760 [ 25.766613] ? check_same_owner+0x320/0x320 [ 25.767836] ? find_held_lock+0x39/0x1d0 [ 25.768699] ? check_noncircular+0x20/0x20 [ 25.769487] ? lock_downgrade+0x990/0x990 [ 25.771229] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 25.772362] ? find_held_lock+0x39/0x1d0 [ 25.773356] ? lock_downgrade+0x990/0x990 [ 25.774329] ? recalc_sigpending_tsk+0x117/0x150 [ 25.775447] ? recalc_sigpending+0x103/0x160 [ 25.776446] ? recalc_sigpending_tsk+0x150/0x150 [ 25.777544] ? get_signal+0x397/0x17e0 [ 25.778496] do_group_exit+0x149/0x400 [ 25.779392] ? __lock_is_held+0xbc/0x140 [ 25.780283] ? SyS_exit+0x30/0x30 [ 25.781131] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.781981] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.782896] get_signal+0x7e8/0x17e0 [ 25.783624] ? ptrace_notify+0x130/0x130 [ 25.784427] ? __fget+0xbb/0x580 [ 25.785123] ? lock_release+0xd70/0xd70 [ 25.785916] ? exit_robust_list+0x240/0x240 [ 25.786951] do_signal+0x94/0x1ee0 [ 25.787830] ? iterate_fd+0x3f0/0x3f0 [ 25.788781] ? up_read+0x1a/0x40 [ 25.789677] ? setup_sigcontext+0x7d0/0x7d0 [ 25.790728] ? __do_page_fault+0xb60/0xb60 [ 25.792449] ? __fget_light+0x29d/0x390 [ 25.793457] ? selinux_tun_dev_create+0xc0/0xc0 [ 25.794570] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 25.796156] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.797444] ? exit_to_usermode_loop+0x98/0x300 [ 25.798626] exit_to_usermode_loop+0x224/0x300 [ 25.799681] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.800929] syscall_return_slowpath+0x42f/0x500 [ 25.802187] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 25.803481] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 25.804691] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.805936] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.807232] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.808393] RIP: 0033:0x447299 [ 25.809173] RSP: 002b:00007fe0096e1cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.810907] RAX: fffffffffffffe00 RBX: 0000000000708028 RCX: 0000000000447299 [ 25.812545] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000708028 [ 25.815239] RBP: 0000000000708000 R08: 0000000000000000 R09: 0000000000000000 [ 25.816035] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.816852] R13: 0000000000000000 R14: 00007fe0096e29c0 R15: 00007fe0096e2700 [ 25.817737] Dumping ftrace buffer: [ 25.818114] (ftrace buffer empty) [ 25.819684] Kernel Offset: disabled [ 25.820056] Rebooting in 86400 seconds..