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-7,10.128.0.48' (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 syzkaller login: [ 31.207382] dev_remove_pack: ffff8801ccb33540 not found [ 31.222205] ================================================================== [ 31.223287] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 31.224210] Read of size 8 at addr ffff8801cc284fe8 by task syzkaller384100/3746 [ 31.225211] [ 31.225448] CPU: 1 PID: 3746 Comm: syzkaller384100 Not tainted 4.13.0-next-20170912+ #20 [ 31.226527] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.227784] Call Trace: [ 31.230342] dump_stack+0x194/0x257 [ 31.233946] ? arch_local_irq_restore+0x53/0x53 [ 31.238589] ? show_regs_print_info+0x65/0x65 [ 31.243065] ? __dev_remove_pack+0x305/0x3b0 [ 31.247448] print_address_description+0x73/0x250 [ 31.252774] ? __dev_remove_pack+0x305/0x3b0 [ 31.257158] kasan_report+0x24e/0x340 [ 31.260932] __asan_report_load8_noabort+0x14/0x20 [ 31.265833] __dev_remove_pack+0x305/0x3b0 [ 31.270039] ? dev_get_by_name_rcu+0x270/0x270 [ 31.274595] ? refcount_sub_and_test+0x115/0x1b0 [ 31.279333] __unregister_prot_hook+0x211/0x280 [ 31.283980] packet_release+0x8bb/0xd70 [ 31.287935] ? packet_set_ring+0x1b70/0x1b70 [ 31.292322] ? dentry_free+0xcd/0x130 [ 31.296095] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.301082] ? kmem_cache_free+0x249/0x280 [ 31.305291] ? dentry_free+0xd2/0x130 [ 31.309067] ? locks_remove_file+0x3fa/0x5a0 [ 31.313447] ? fcntl_setlk+0x10d0/0x10d0 [ 31.317488] ? __fsnotify_parent+0xb4/0x3a0 [ 31.321783] ? fsnotify+0x1af0/0x1af0 [ 31.325559] sock_release+0x8d/0x1e0 [ 31.329241] ? sock_release+0x8d/0x1e0 [ 31.333100] ? sock_release+0x1e0/0x1e0 [ 31.337044] sock_close+0x16/0x20 [ 31.340469] __fput+0x333/0x7f0 [ 31.343724] ? fput+0x140/0x140 [ 31.346981] ? check_same_owner+0x320/0x320 [ 31.351280] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.355752] ____fput+0x15/0x20 [ 31.359001] task_work_run+0x199/0x270 [ 31.362861] ? task_work_cancel+0x210/0x210 [ 31.367151] ? _raw_spin_unlock+0x22/0x30 [ 31.371272] ? switch_task_namespaces+0x87/0xc0 [ 31.375916] do_exit+0xa52/0x1b40 [ 31.379341] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.384345] ? trace_hardirqs_on+0xd/0x10 [ 31.388488] ? __hrtimer_get_remaining+0x161/0x1c0 [ 31.393392] ? mm_update_next_owner+0x930/0x930 [ 31.398029] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 31.402939] ? check_same_owner+0x320/0x320 [ 31.407244] ? _do_fork+0x2f5/0xfe0 [ 31.410868] ? __might_sleep+0x95/0x190 [ 31.414819] ? do_nanosleep+0x508/0x6f0 [ 31.418769] ? schedule_timeout_idle+0x90/0x90 [ 31.423339] ? memset+0x31/0x40 [ 31.426599] ? hrtimer_nanosleep+0x2cc/0x860 [ 31.430982] ? nanosleep_copyout+0x100/0x100 [ 31.435358] ? __might_sleep+0x95/0x190 [ 31.439317] ? kasan_check_write+0x14/0x20 [ 31.443522] ? _copy_from_user+0x99/0x110 [ 31.447644] ? __hrtimer_init+0x140/0x140 [ 31.451767] ? syscall_return_slowpath+0x500/0x500 [ 31.456671] do_group_exit+0x149/0x400 [ 31.460532] ? SyS_exit+0x30/0x30 [ 31.463970] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.468973] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.473704] SyS_exit_group+0x1d/0x20 [ 31.477478] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.482201] RIP: 0033:0x446309 [ 31.485375] RSP: 002b:00007ffc6a1a0b68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 31.493054] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 0000000000446309 [ 31.500294] RDX: 0000000000444a61 RSI: 0000000000000000 RDI: 0000000000000000 [ 31.507537] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 31.514776] R10: 00000000006da144 R11: 0000000000000202 R12: 0000000000000000 [ 31.522016] R13: 00007ffc6a1a0b0f R14: 00007fb0080b29c0 R15: 0000000000000000 [ 31.529276] [ 31.530878] Allocated by task 3776: [ 31.534477] save_stack_trace+0x16/0x20 [ 31.538422] save_stack+0x43/0xd0 [ 31.541845] kasan_kmalloc+0xad/0xe0 [ 31.545528] kmem_cache_alloc_trace+0x136/0x750 [ 31.550175] fanout_add+0xa50/0x1190 [ 31.553858] packet_setsockopt+0xfdc/0x1e80 [ 31.558151] SyS_setsockopt+0x189/0x360 [ 31.562095] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.566820] [ 31.568416] Freed by task 3746: [ 31.571666] save_stack_trace+0x16/0x20 [ 31.575609] save_stack+0x43/0xd0 [ 31.579036] kasan_slab_free+0x71/0xc0 [ 31.582893] kfree+0xca/0x250 [ 31.585967] packet_release+0xa8f/0xd70 [ 31.589909] sock_release+0x8d/0x1e0 [ 31.593590] sock_close+0x16/0x20 [ 31.597019] __fput+0x333/0x7f0 [ 31.600269] ____fput+0x15/0x20 [ 31.603519] task_work_run+0x199/0x270 [ 31.607374] do_exit+0xa52/0x1b40 [ 31.610796] do_group_exit+0x149/0x400 [ 31.614651] SyS_exit_group+0x1d/0x20 [ 31.618419] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.623139] [ 31.624738] The buggy address belongs to the object at ffff8801cc284740 [ 31.624738] which belongs to the cache kmalloc-4096 of size 4096 [ 31.637538] The buggy address is located 2216 bytes inside of [ 31.637538] 4096-byte region [ffff8801cc284740, ffff8801cc285740) [ 31.649553] The buggy address belongs to the page: [ 31.654465] page:ffffea000730a100 count:1 mapcount:0 mapping:ffff8801cc284740 index:0x0 compound_mapcount: 0 [ 31.664409] flags: 0x200000000008100(slab|head) [ 31.669050] raw: 0200000000008100 ffff8801cc284740 0000000000000000 0000000100000001 [ 31.676898] raw: ffffea000730a3a0 ffffea0007309e20 ffff8801dac00dc0 0000000000000000 [ 31.684748] page dumped because: kasan: bad access detected [ 31.690428] [ 31.692024] Memory state around the buggy address: [ 31.696923] ffff8801cc284e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.704251] ffff8801cc284f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.711577] >ffff8801cc284f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.718904] ^ [ 31.725625] ffff8801cc285000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.732955] ffff8801cc285080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.740283] ================================================================== [ 31.747609] Disabling lock debugging due to kernel taint [ 31.753126] Kernel panic - not syncing: panic_on_warn set ... [ 31.753126] [ 31.760455] CPU: 1 PID: 3746 Comm: syzkaller384100 Tainted: G B 4.13.0-next-20170912+ #20 [ 31.769866] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.779359] Call Trace: [ 31.781915] dump_stack+0x194/0x257 [ 31.785509] ? arch_local_irq_restore+0x53/0x53 [ 31.790143] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.794868] ? __dev_remove_pack+0x2f0/0x3b0 [ 31.799245] panic+0x1e4/0x417 [ 31.802409] ? __warn+0x1d9/0x1d9 [ 31.805833] ? __dev_remove_pack+0x305/0x3b0 [ 31.810213] kasan_end_report+0x50/0x50 [ 31.814154] kasan_report+0x137/0x340 [ 31.817921] __asan_report_load8_noabort+0x14/0x20 [ 31.822816] __dev_remove_pack+0x305/0x3b0 [ 31.827032] ? dev_get_by_name_rcu+0x270/0x270 [ 31.831580] ? refcount_sub_and_test+0x115/0x1b0 [ 31.836308] __unregister_prot_hook+0x211/0x280 [ 31.840945] packet_release+0x8bb/0xd70 [ 31.844888] ? packet_set_ring+0x1b70/0x1b70 [ 31.849267] ? dentry_free+0xcd/0x130 [ 31.853034] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.858015] ? kmem_cache_free+0x249/0x280 [ 31.862216] ? dentry_free+0xd2/0x130 [ 31.865987] ? locks_remove_file+0x3fa/0x5a0 [ 31.870361] ? fcntl_setlk+0x10d0/0x10d0 [ 31.874567] ? __fsnotify_parent+0xb4/0x3a0 [ 31.878855] ? fsnotify+0x1af0/0x1af0 [ 31.882624] sock_release+0x8d/0x1e0 [ 31.886301] ? sock_release+0x8d/0x1e0 [ 31.890152] ? sock_release+0x1e0/0x1e0 [ 31.894088] sock_close+0x16/0x20 [ 31.897506] __fput+0x333/0x7f0 [ 31.900752] ? fput+0x140/0x140 [ 31.903998] ? check_same_owner+0x320/0x320 [ 31.908291] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.912760] ____fput+0x15/0x20 [ 31.916008] task_work_run+0x199/0x270 [ 31.919862] ? task_work_cancel+0x210/0x210 [ 31.924148] ? _raw_spin_unlock+0x22/0x30 [ 31.928264] ? switch_task_namespaces+0x87/0xc0 [ 31.932899] do_exit+0xa52/0x1b40 [ 31.936321] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.941311] ? trace_hardirqs_on+0xd/0x10 [ 31.945441] ? __hrtimer_get_remaining+0x161/0x1c0 [ 31.950357] ? mm_update_next_owner+0x930/0x930 [ 31.954988] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 31.959886] ? check_same_owner+0x320/0x320 [ 31.964182] ? _do_fork+0x2f5/0xfe0 [ 31.967788] ? __might_sleep+0x95/0x190 [ 31.971731] ? do_nanosleep+0x508/0x6f0 [ 31.975671] ? schedule_timeout_idle+0x90/0x90 [ 31.980234] ? memset+0x31/0x40 [ 31.983483] ? hrtimer_nanosleep+0x2cc/0x860 [ 31.987858] ? nanosleep_copyout+0x100/0x100 [ 31.992229] ? __might_sleep+0x95/0x190 [ 31.996171] ? kasan_check_write+0x14/0x20 [ 32.000371] ? _copy_from_user+0x99/0x110 [ 32.004486] ? __hrtimer_init+0x140/0x140 [ 32.008602] ? syscall_return_slowpath+0x500/0x500 [ 32.013496] do_group_exit+0x149/0x400 [ 32.017350] ? SyS_exit+0x30/0x30 [ 32.020776] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.025763] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.030485] SyS_exit_group+0x1d/0x20 [ 32.034249] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.038966] RIP: 0033:0x446309 [ 32.042124] RSP: 002b:00007ffc6a1a0b68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 [ 32.049809] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 0000000000446309 [ 32.057043] RDX: 0000000000444a61 RSI: 0000000000000000 RDI: 0000000000000000 [ 32.064276] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 32.071510] R10: 00000000006da144 R11: 0000000000000202 R12: 0000000000000000 [ 32.078743] R13: 00007ffc6a1a0b0f R14: 00007fb0080b29c0 R15: 0000000000000000 [ 32.086351] Dumping ftrace buffer: [ 32.089858] (ftrace buffer empty) [ 32.093534] Kernel Offset: disabled [ 32.097126] Rebooting in 86400 seconds..