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-next-kasan-gce-4,10.128.0.55' (ECDSA) to the list of known hosts. 2017/09/05 14:02:56 parsed 1 programs 2017/09/05 14:02:56 executed programs: 0 syzkaller login: [ 123.918929] syz-executor0 uses obsolete (PF_INET,SOCK_PACKET) 2017/09/05 14:03:01 executed programs: 55 2017/09/05 14:03:06 executed programs: 112 2017/09/05 14:03:11 executed programs: 170 2017/09/05 14:03:16 executed programs: 227 2017/09/05 14:03:21 executed programs: 285 2017/09/05 14:03:26 executed programs: 344 2017/09/05 14:03:31 executed programs: 398 [ 160.668167] dev_remove_pack: ffff8801d3589b00 not found [ 160.714322] ================================================================== [ 160.721739] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 160.728464] Read of size 8 at addr ffff8801d2c53528 by task syz-executor0/5084 [ 160.735799] [ 160.737403] CPU: 0 PID: 5084 Comm: syz-executor0 Not tainted 4.13.0-next-20170905+ #15 [ 160.745512] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 160.754838] Call Trace: [ 160.757403] dump_stack+0x194/0x257 [ 160.761019] ? arch_local_irq_restore+0x53/0x53 [ 160.765661] ? show_regs_print_info+0x65/0x65 [ 160.770145] ? __dev_remove_pack+0x305/0x3b0 [ 160.774537] print_address_description+0x73/0x250 [ 160.779350] ? __dev_remove_pack+0x305/0x3b0 [ 160.783739] kasan_report+0x24e/0x340 [ 160.787516] __asan_report_load8_noabort+0x14/0x20 [ 160.792415] __dev_remove_pack+0x305/0x3b0 [ 160.796621] ? dev_get_by_name_rcu+0x270/0x270 [ 160.801203] ? refcount_sub_and_test+0x115/0x1b0 [ 160.805977] ? refcount_inc+0x50/0x50 [ 160.809763] __unregister_prot_hook+0x224/0x280 [ 160.814412] packet_release+0x8bb/0xd70 [ 160.818372] ? packet_set_ring+0x1b70/0x1b70 [ 160.822758] ? dentry_free+0xcd/0x130 [ 160.826531] ? rcu_read_lock_sched_held+0x108/0x120 [ 160.831522] ? kmem_cache_free+0x249/0x280 [ 160.835738] ? dentry_free+0xd2/0x130 [ 160.839528] ? locks_remove_file+0x3fa/0x5a0 [ 160.844003] ? fcntl_setlk+0x10d0/0x10d0 [ 160.848038] ? __fsnotify_parent+0xb4/0x3a0 [ 160.852331] ? fsnotify+0x1af0/0x1af0 [ 160.856116] sock_release+0x8d/0x1e0 [ 160.859803] ? sock_release+0x8d/0x1e0 [ 160.863702] ? sock_release+0x1e0/0x1e0 [ 160.867676] sock_close+0x16/0x20 [ 160.871106] __fput+0x333/0x7f0 [ 160.874365] ? fput+0x140/0x140 [ 160.877618] ? check_same_owner+0x320/0x320 [ 160.881999] ? _raw_spin_unlock_irq+0x27/0x70 [ 160.886474] ____fput+0x15/0x20 [ 160.889728] task_work_run+0x199/0x270 [ 160.893590] ? task_work_cancel+0x210/0x210 [ 160.897888] ? _raw_spin_unlock+0x22/0x30 [ 160.902013] ? switch_task_namespaces+0x87/0xc0 [ 160.906663] do_exit+0xa52/0x1b40 [ 160.910104] ? plist_check_list+0xa0/0xa0 [ 160.914234] ? plist_del+0x47b/0x990 [ 160.917920] ? mm_update_next_owner+0x930/0x930 [ 160.922574] ? plist_add+0x760/0x760 [ 160.926272] ? check_same_owner+0x320/0x320 [ 160.930575] ? osq_unlock+0x350/0x350 [ 160.934363] ? find_held_lock+0x39/0x1d0 [ 160.938405] ? check_noncircular+0x20/0x20 [ 160.942617] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 160.947971] ? find_held_lock+0x39/0x1d0 [ 160.952014] ? lock_downgrade+0x990/0x990 [ 160.956144] ? recalc_sigpending_tsk+0x117/0x150 [ 160.960874] ? recalc_sigpending+0x103/0x160 [ 160.965260] ? recalc_sigpending_tsk+0x150/0x150 [ 160.969986] ? get_signal+0x397/0x17e0 [ 160.973860] do_group_exit+0x149/0x400 [ 160.977735] ? __lock_is_held+0xbc/0x140 [ 160.981766] ? SyS_exit+0x30/0x30 [ 160.985198] ? _raw_spin_unlock_irq+0x27/0x70 [ 160.989666] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 160.994659] get_signal+0x7e8/0x17e0 [ 160.998376] ? ptrace_notify+0x130/0x130 [ 161.002410] ? __fget+0xbb/0x580 [ 161.005747] ? __lockdep_init_map+0xe4/0x650 [ 161.010153] ? lock_release+0xd70/0xd70 [ 161.014112] ? exit_robust_list+0x240/0x240 [ 161.018422] do_signal+0x94/0x1ee0 [ 161.021943] ? iterate_fd+0x3f0/0x3f0 [ 161.025723] ? setup_sigcontext+0x7d0/0x7d0 [ 161.030109] ? __lock_is_held+0xbc/0x140 [ 161.034157] ? __fget_light+0x29d/0x390 [ 161.038108] ? selinux_tun_dev_create+0xc0/0xc0 [ 161.042753] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 161.048435] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 161.053683] ? alloc_file+0x284/0x3a0 [ 161.057479] ? exit_to_usermode_loop+0x98/0x300 [ 161.062150] exit_to_usermode_loop+0x224/0x300 [ 161.066723] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 161.072259] syscall_return_slowpath+0x42f/0x500 [ 161.076989] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 161.081995] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 161.086905] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 161.091905] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 161.096644] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 161.101374] RIP: 0033:0x451e59 [ 161.104538] RSP: 002b:00007f2bcb8b1cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 161.112221] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 0000000000451e59 [ 161.119465] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 161.126708] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 161.133951] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 161.141193] R13: 0000000000a6f7ef R14: 00007f2bcb8b29c0 R15: 0000000000000000 [ 161.148455] [ 161.150057] Allocated by task 5084: [ 161.153666] save_stack_trace+0x16/0x20 [ 161.157616] save_stack+0x43/0xd0 [ 161.161046] kasan_kmalloc+0xad/0xe0 [ 161.164730] kmem_cache_alloc_trace+0x136/0x750 [ 161.169406] fanout_add+0xa50/0x1190 [ 161.173122] packet_setsockopt+0xfdc/0x1e80 [ 161.177444] SyS_setsockopt+0x189/0x360 [ 161.181423] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 161.186169] [ 161.187791] Freed by task 5084: [ 161.191064] save_stack_trace+0x16/0x20 [ 161.195032] save_stack+0x43/0xd0 [ 161.198475] kasan_slab_free+0x71/0xc0 [ 161.202365] kfree+0xca/0x250 [ 161.205471] packet_release+0xa8f/0xd70 [ 161.209453] sock_release+0x8d/0x1e0 [ 161.213166] sock_close+0x16/0x20 [ 161.216618] __fput+0x333/0x7f0 [ 161.219891] ____fput+0x15/0x20 [ 161.223173] task_work_run+0x199/0x270 [ 161.227047] do_exit+0xa52/0x1b40 [ 161.230492] do_group_exit+0x149/0x400 [ 161.234368] get_signal+0x7e8/0x17e0 [ 161.238122] do_signal+0x94/0x1ee0 [ 161.241664] exit_to_usermode_loop+0x224/0x300 [ 161.246245] syscall_return_slowpath+0x42f/0x500 [ 161.251006] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 161.255761] [ 161.257378] The buggy address belongs to the object at ffff8801d2c52c80 [ 161.257378] which belongs to the cache kmalloc-4096 of size 4096 [ 161.270475] The buggy address is located 2216 bytes inside of [ 161.270475] 4096-byte region [ffff8801d2c52c80, ffff8801d2c53c80) [ 161.282527] The buggy address belongs to the page: [ 161.287458] page:ffffea00074b1480 count:1 mapcount:0 mapping:ffff8801d2c52c80 index:0x0 compound_mapcount: 0 [ 161.297451] flags: 0x200000000008100(slab|head) [ 161.302116] raw: 0200000000008100 ffff8801d2c52c80 0000000000000000 0000000100000001 [ 161.310009] raw: ffffea00074b7120 ffffea00074f3520 ffff8801dac00dc0 0000000000000000 [ 161.317891] page dumped because: kasan: bad access detected [ 161.323603] [ 161.325230] Memory state around the buggy address: [ 161.330157] ffff8801d2c53400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 161.337525] ffff8801d2c53480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 161.344909] >ffff8801d2c53500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 161.352270] ^ [ 161.356942] ffff8801d2c53580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 161.364321] ffff8801d2c53600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 161.371678] ================================================================== [ 161.379042] Disabling lock debugging due to kernel taint [ 161.384646] Kernel panic - not syncing: panic_on_warn set ... [ 161.384646] [ 161.392014] CPU: 0 PID: 5084 Comm: syz-executor0 Tainted: G B 4.13.0-next-20170905+ #15 [ 161.401348] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 161.410692] Call Trace: [ 161.413282] dump_stack+0x194/0x257 [ 161.416904] ? arch_local_irq_restore+0x53/0x53 [ 161.421566] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 161.426324] ? __dev_remove_pack+0x2e0/0x3b0 [ 161.430721] panic+0x1e4/0x417 [ 161.433910] ? __warn+0x1d9/0x1d9 [ 161.437362] ? __dev_remove_pack+0x305/0x3b0 [ 161.441762] kasan_end_report+0x50/0x50 [ 161.445729] kasan_report+0x137/0x340 [ 161.449612] __asan_report_load8_noabort+0x14/0x20 [ 161.454543] __dev_remove_pack+0x305/0x3b0 [ 161.458779] ? dev_get_by_name_rcu+0x270/0x270 [ 161.463356] ? refcount_sub_and_test+0x115/0x1b0 [ 161.468108] ? refcount_inc+0x50/0x50 [ 161.471902] __unregister_prot_hook+0x224/0x280 [ 161.476572] packet_release+0x8bb/0xd70 [ 161.480552] ? packet_set_ring+0x1b70/0x1b70 [ 161.484945] ? dentry_free+0xcd/0x130 [ 161.488718] ? rcu_read_lock_sched_held+0x108/0x120 [ 161.493717] ? kmem_cache_free+0x249/0x280 [ 161.497943] ? dentry_free+0xd2/0x130 [ 161.501718] ? locks_remove_file+0x3fa/0x5a0 [ 161.506111] ? fcntl_setlk+0x10d0/0x10d0 [ 161.510151] ? __fsnotify_parent+0xb4/0x3a0 [ 161.514445] ? fsnotify+0x1af0/0x1af0 [ 161.518219] sock_release+0x8d/0x1e0 [ 161.521898] ? sock_release+0x8d/0x1e0 [ 161.525750] ? sock_release+0x1e0/0x1e0 [ 161.529699] sock_close+0x16/0x20 [ 161.533120] __fput+0x333/0x7f0 [ 161.536377] ? fput+0x140/0x140 [ 161.539639] ? check_same_owner+0x320/0x320 [ 161.543949] ? _raw_spin_unlock_irq+0x27/0x70 [ 161.548446] ____fput+0x15/0x20 [ 161.551714] task_work_run+0x199/0x270 [ 161.555590] ? task_work_cancel+0x210/0x210 [ 161.559900] ? _raw_spin_unlock+0x22/0x30 [ 161.564032] ? switch_task_namespaces+0x87/0xc0 [ 161.568692] do_exit+0xa52/0x1b40 [ 161.572138] ? plist_check_list+0xa0/0xa0 [ 161.576276] ? plist_del+0x47b/0x990 [ 161.579990] ? mm_update_next_owner+0x930/0x930 [ 161.584737] ? plist_add+0x760/0x760 [ 161.588441] ? check_same_owner+0x320/0x320 [ 161.592771] ? osq_unlock+0x350/0x350 [ 161.596565] ? find_held_lock+0x39/0x1d0 [ 161.600625] ? check_noncircular+0x20/0x20 [ 161.604857] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 161.610241] ? find_held_lock+0x39/0x1d0 [ 161.614301] ? lock_downgrade+0x990/0x990 [ 161.618435] ? recalc_sigpending_tsk+0x117/0x150 [ 161.623178] ? recalc_sigpending+0x103/0x160 [ 161.627590] ? recalc_sigpending_tsk+0x150/0x150 [ 161.632332] ? get_signal+0x397/0x17e0 [ 161.636218] do_group_exit+0x149/0x400 [ 161.640096] ? __lock_is_held+0xbc/0x140 [ 161.644128] ? SyS_exit+0x30/0x30 [ 161.647550] ? _raw_spin_unlock_irq+0x27/0x70 [ 161.652020] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 161.657016] get_signal+0x7e8/0x17e0 [ 161.660735] ? ptrace_notify+0x130/0x130 [ 161.664783] ? __fget+0xbb/0x580 [ 161.668149] ? __lockdep_init_map+0xe4/0x650 [ 161.672563] ? lock_release+0xd70/0xd70 [ 161.676537] ? exit_robust_list+0x240/0x240 [ 161.680948] do_signal+0x94/0x1ee0 [ 161.684496] ? iterate_fd+0x3f0/0x3f0 [ 161.688286] ? setup_sigcontext+0x7d0/0x7d0 [ 161.692599] ? __lock_is_held+0xbc/0x140 [ 161.696668] ? __fget_light+0x29d/0x390 [ 161.700634] ? selinux_tun_dev_create+0xc0/0xc0 [ 161.705292] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 161.710977] ? selinux_netlbl_sock_rcv_skb+0x730/0x730