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-5,10.128.0.39' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 39.030908] dev_remove_pack: ffff8801bbbbf4c0 not found [ 39.049928] ================================================================== [ 39.057326] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 39.064065] Read of size 8 at addr ffff8801bbbb15e8 by task syzkaller979222/8645 [ 39.071581] [ 39.073195] CPU: 0 PID: 8645 Comm: syzkaller979222 Not tainted 4.13.0-next-20170905+ #15 [ 39.081403] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.090739] Call Trace: [ 39.093316] dump_stack+0x194/0x257 [ 39.096934] ? arch_local_irq_restore+0x53/0x53 [ 39.101591] ? show_regs_print_info+0x65/0x65 [ 39.106100] ? __dev_remove_pack+0x305/0x3b0 [ 39.110496] print_address_description+0x73/0x250 [ 39.115327] ? __dev_remove_pack+0x305/0x3b0 [ 39.119728] kasan_report+0x24e/0x340 [ 39.123525] __asan_report_load8_noabort+0x14/0x20 [ 39.128483] __dev_remove_pack+0x305/0x3b0 [ 39.132708] ? dev_get_by_name_rcu+0x270/0x270 [ 39.137280] ? refcount_sub_and_test+0x115/0x1b0 [ 39.142043] __unregister_prot_hook+0x211/0x280 [ 39.146712] packet_release+0x8bb/0xd70 [ 39.150683] ? packet_set_ring+0x1b70/0x1b70 [ 39.155079] ? dentry_free+0xcd/0x130 [ 39.158864] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.163868] ? kmem_cache_free+0x249/0x280 [ 39.168091] ? dentry_free+0xd2/0x130 [ 39.171885] ? locks_remove_file+0x3fa/0x5a0 [ 39.176281] ? fcntl_setlk+0x10d0/0x10d0 [ 39.180333] ? __fsnotify_parent+0xb4/0x3a0 [ 39.184648] ? fsnotify+0x1af0/0x1af0 [ 39.188445] sock_release+0x8d/0x1e0 [ 39.192141] ? sock_release+0x8d/0x1e0 [ 39.196019] ? sock_release+0x1e0/0x1e0 [ 39.199993] sock_close+0x16/0x20 [ 39.203432] __fput+0x333/0x7f0 [ 39.206703] ? fput+0x140/0x140 [ 39.209969] ? check_same_owner+0x320/0x320 [ 39.214276] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.218766] ____fput+0x15/0x20 [ 39.222033] task_work_run+0x199/0x270 [ 39.225916] ? task_work_cancel+0x210/0x210 [ 39.230229] ? _raw_spin_unlock+0x22/0x30 [ 39.234362] ? switch_task_namespaces+0x87/0xc0 [ 39.239039] do_exit+0xa52/0x1b40 [ 39.242487] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.247490] ? trace_hardirqs_on+0xd/0x10 [ 39.251652] ? hrtimer_try_to_cancel+0x11/0x5c0 [ 39.256308] ? mm_update_next_owner+0x930/0x930 [ 39.260960] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 39.265882] ? check_same_owner+0x320/0x320 [ 39.270189] ? _do_fork+0x2f5/0xfe0 [ 39.273815] ? __might_sleep+0x95/0x190 [ 39.277785] ? do_nanosleep+0x508/0x6f0 [ 39.281766] ? schedule_timeout_idle+0x90/0x90 [ 39.286373] ? memset+0x31/0x40 [ 39.289665] ? hrtimer_nanosleep+0x2cc/0x860 [ 39.294065] ? nanosleep_copyout+0x100/0x100 [ 39.298458] ? __might_sleep+0x95/0x190 [ 39.302430] ? kasan_check_write+0x14/0x20 [ 39.306650] ? _copy_from_user+0x99/0x110 [ 39.310797] ? __hrtimer_init+0x140/0x140 [ 39.314932] ? syscall_return_slowpath+0x500/0x500 [ 39.319854] do_group_exit+0x149/0x400 [ 39.323743] ? SyS_exit+0x30/0x30 [ 39.327196] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.332213] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.336992] SyS_exit_group+0x1d/0x20 [ 39.340779] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.345517] RIP: 0033:0x446539 [ 39.348708] RSP: 002b:00007fff704f63a8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 39.356419] RAX: ffffffffffffffda RBX: 000000000000000b RCX: 0000000000446539 [ 39.363672] RDX: 0000000000444c91 RSI: 0000000000000000 RDI: 0000000000000000 [ 39.370924] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 39.378185] R10: 00000000006da144 R11: 0000000000000202 R12: 0000000000000000 [ 39.385437] R13: 00007fff704f634f R14: 00007f1f479019c0 R15: 0000000000000000 [ 39.392739] [ 39.394350] Allocated by task 8744: [ 39.397960] save_stack_trace+0x16/0x20 [ 39.401921] save_stack+0x43/0xd0 [ 39.405361] kasan_kmalloc+0xad/0xe0 [ 39.409060] kmem_cache_alloc_trace+0x136/0x750 [ 39.413726] fanout_add+0xa50/0x1190 [ 39.417423] packet_setsockopt+0xfdc/0x1e80 [ 39.421732] SyS_setsockopt+0x189/0x360 [ 39.425689] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.430438] [ 39.432060] Freed by task 8645: [ 39.435325] save_stack_trace+0x16/0x20 [ 39.439294] save_stack+0x43/0xd0 [ 39.442742] kasan_slab_free+0x71/0xc0 [ 39.446611] kfree+0xca/0x250 [ 39.449698] packet_release+0xa8f/0xd70 [ 39.453653] sock_release+0x8d/0x1e0 [ 39.457353] sock_close+0x16/0x20 [ 39.460796] __fput+0x333/0x7f0 [ 39.464076] ____fput+0x15/0x20 [ 39.467352] task_work_run+0x199/0x270 [ 39.471220] do_exit+0xa52/0x1b40 [ 39.474658] do_group_exit+0x149/0x400 [ 39.478528] SyS_exit_group+0x1d/0x20 [ 39.482321] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.487066] [ 39.488678] The buggy address belongs to the object at ffff8801bbbb0d40 [ 39.488678] which belongs to the cache kmalloc-4096 of size 4096 [ 39.501493] The buggy address is located 2216 bytes inside of [ 39.501493] 4096-byte region [ffff8801bbbb0d40, ffff8801bbbb1d40) [ 39.513542] The buggy address belongs to the page: [ 39.518463] page:ffffea0006eeec00 count:1 mapcount:0 mapping:ffff8801bbbb0d40 index:0x0 compound_mapcount: 0 [ 39.528432] flags: 0x200000000008100(slab|head) [ 39.533085] raw: 0200000000008100 ffff8801bbbb0d40 0000000000000000 0000000100000001 [ 39.540965] raw: ffffea00070d4620 ffffea00070dfba0 ffff8801dac00dc0 0000000000000000 [ 39.548825] page dumped because: kasan: bad access detected [ 39.554515] [ 39.556129] Memory state around the buggy address: [ 39.561062] ffff8801bbbb1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.568432] ffff8801bbbb1500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.575776] >ffff8801bbbb1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.583116] ^ [ 39.589870] ffff8801bbbb1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.597212] ffff8801bbbb1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.604555] ================================================================== [ 39.611898] Disabling lock debugging due to kernel taint [ 39.617450] Kernel panic - not syncing: panic_on_warn set ... [ 39.617450] [ 39.624798] CPU: 0 PID: 8645 Comm: syzkaller979222 Tainted: G B 4.13.0-next-20170905+ #15 [ 39.634214] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.643545] Call Trace: [ 39.646114] dump_stack+0x194/0x257 [ 39.649720] ? arch_local_irq_restore+0x53/0x53 [ 39.654368] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.659105] ? __dev_remove_pack+0x2e0/0x3b0 [ 39.663493] panic+0x1e4/0x417 [ 39.666694] ? __warn+0x1d9/0x1d9 [ 39.670135] ? __dev_remove_pack+0x305/0x3b0 [ 39.674519] kasan_end_report+0x50/0x50 [ 39.678498] kasan_report+0x137/0x340 [ 39.682292] __asan_report_load8_noabort+0x14/0x20 [ 39.687195] __dev_remove_pack+0x305/0x3b0 [ 39.691404] ? dev_get_by_name_rcu+0x270/0x270 [ 39.695966] ? refcount_sub_and_test+0x115/0x1b0 [ 39.700705] __unregister_prot_hook+0x211/0x280 [ 39.705357] packet_release+0x8bb/0xd70 [ 39.709312] ? packet_set_ring+0x1b70/0x1b70 [ 39.713702] ? dentry_free+0xcd/0x130 [ 39.717481] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.722475] ? kmem_cache_free+0x249/0x280 [ 39.726689] ? dentry_free+0xd2/0x130 [ 39.730470] ? locks_remove_file+0x3fa/0x5a0 [ 39.734859] ? fcntl_setlk+0x10d0/0x10d0 [ 39.738899] ? __fsnotify_parent+0xb4/0x3a0 [ 39.743196] ? fsnotify+0x1af0/0x1af0 [ 39.746998] sock_release+0x8d/0x1e0 [ 39.750686] ? sock_release+0x8d/0x1e0 [ 39.754550] ? sock_release+0x1e0/0x1e0 [ 39.758526] sock_close+0x16/0x20 [ 39.761960] __fput+0x333/0x7f0 [ 39.765217] ? fput+0x140/0x140 [ 39.768476] ? check_same_owner+0x320/0x320 [ 39.772787] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.777273] ____fput+0x15/0x20 [ 39.780527] task_work_run+0x199/0x270 [ 39.784396] ? task_work_cancel+0x210/0x210 [ 39.788692] ? _raw_spin_unlock+0x22/0x30 [ 39.792815] ? switch_task_namespaces+0x87/0xc0 [ 39.797459] do_exit+0xa52/0x1b40 [ 39.800888] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.805882] ? trace_hardirqs_on+0xd/0x10 [ 39.810015] ? hrtimer_try_to_cancel+0x11/0x5c0 [ 39.814659] ? mm_update_next_owner+0x930/0x930 [ 39.819313] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 39.824220] ? check_same_owner+0x320/0x320 [ 39.828516] ? _do_fork+0x2f5/0xfe0 [ 39.832132] ? __might_sleep+0x95/0x190 [ 39.836084] ? do_nanosleep+0x508/0x6f0 [ 39.840038] ? schedule_timeout_idle+0x90/0x90 [ 39.844607] ? memset+0x31/0x40 [ 39.847867] ? hrtimer_nanosleep+0x2cc/0x860 [ 39.852250] ? nanosleep_copyout+0x100/0x100 [ 39.856631] ? __might_sleep+0x95/0x190 [ 39.860586] ? kasan_check_write+0x14/0x20 [ 39.864796] ? _copy_from_user+0x99/0x110 [ 39.868935] ? __hrtimer_init+0x140/0x140 [ 39.873059] ? syscall_return_slowpath+0x500/0x500 [ 39.877964] do_group_exit+0x149/0x400 [ 39.881826] ? SyS_exit+0x30/0x30 [ 39.885269] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.890260] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.894989] SyS_exit_group+0x1d/0x20 [ 39.898767] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.903493] RIP: 0033:0x446539 [ 39.906666] RSP: 002b:00007fff704f63a8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 39.914360] RAX: ffffffffffffffda RBX: 000000000000000b RCX: 0000000000446539 [ 39.921602] RDX: 0000000000444c91 RSI: 0000000000000000 RDI: 0000000000000000 [ 39.928855] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 39.936097] R10: 00000000006da144 R11: 0000000000000202 R12: 0000000000000000 [ 39.943389] R13: 00007fff704f634f R14: 00007f1f479019c0 R15: 0000000000000000 [ 39.950926] Dumping ftrace buffer: [ 39.954438] (ftrace buffer empty) [ 39.958114] Kernel Offset: disabled [ 39.961707] Rebooting in 86400 seconds..