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.15.198' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 43.858332] dev_remove_pack: ffff8801c449dc80 not found executing program executing program executing program executing program executing program executing program executing program [ 43.961605] ================================================================== [ 43.968996] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 43.976498] Read of size 2 at addr ffff8801c030cec0 by task syzkaller358977/2993 [ 43.984015] [ 43.985617] CPU: 0 PID: 2993 Comm: syzkaller358977 Not tainted 4.13.0-next-20170908+ #18 [ 43.993822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.003153] Call Trace: [ 44.005706] [ 44.007833] dump_stack+0x194/0x257 [ 44.011435] ? arch_local_irq_restore+0x53/0x53 [ 44.016085] ? show_regs_print_info+0x65/0x65 [ 44.020559] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 44.025725] print_address_description+0x73/0x250 [ 44.030540] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 44.035703] kasan_report+0x24e/0x340 [ 44.039480] __asan_report_load2_noabort+0x14/0x20 [ 44.044380] __netif_receive_skb_core+0x2be3/0x33d0 [ 44.049366] ? __bpf_address_lookup+0x2b0/0x2b0 [ 44.054016] ? nf_ingress+0x9f0/0x9f0 [ 44.057802] ? unwind_dump+0x4c0/0x4c0 [ 44.061675] ? check_noncircular+0x20/0x20 [ 44.065882] ? __kernel_text_address+0xae/0xe0 [ 44.070436] ? unwind_get_return_address+0x61/0xa0 [ 44.075337] ? __save_stack_trace+0x7e/0xd0 [ 44.079638] ? depot_save_stack+0x12c/0x490 [ 44.083945] ? find_held_lock+0x39/0x1d0 [ 44.088006] ? lock_downgrade+0x990/0x990 [ 44.092123] ? sock_close+0x16/0x20 [ 44.095730] ? lock_acquire+0x1d5/0x580 [ 44.099675] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 44.104856] ? find_held_lock+0x39/0x1d0 [ 44.108900] ? pvclock_read_flags+0x160/0x160 [ 44.113368] ? lock_downgrade+0x990/0x990 [ 44.117500] ? lock_acquire+0x1d5/0x580 [ 44.121449] ? netif_receive_skb_internal+0x93/0x5e0 [ 44.126527] ? ktime_get_with_offset+0x2c1/0x420 [ 44.131256] ? lock_release+0xd70/0xd70 [ 44.135198] ? ktime_get+0x3a0/0x3a0 [ 44.138896] __netif_receive_skb+0x2c/0x1b0 [ 44.143186] ? __netif_receive_skb+0x2c/0x1b0 [ 44.147655] netif_receive_skb_internal+0x10b/0x5e0 [ 44.152641] ? dev_cpu_dead+0xb00/0xb00 [ 44.156588] ? __alloc_pages_nodemask+0xd80/0xd80 [ 44.161409] ? net_rx_action+0x1910/0x1910 [ 44.165618] ? rcu_pm_notify+0xc0/0xc0 [ 44.169491] ? skb_gro_reset_offset+0x17b/0x300 [ 44.174132] napi_gro_receive+0x3d0/0x500 [ 44.178260] ? dev_gro_receive+0x19b0/0x19b0 [ 44.182644] ? eth_type_trans+0x2a3/0x650 [ 44.186769] ? eth_gro_receive+0x810/0x810 [ 44.190985] receive_buf+0xcc5/0x51f0 [ 44.194784] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 44.199335] ? __enqueue_entity+0x109/0x1e0 [ 44.203626] ? account_system_index_time+0xd0/0x2c0 [ 44.208612] ? print_usage_bug+0x480/0x480 [ 44.212823] ? __lock_acquire+0x732/0x4620 [ 44.217028] ? print_usage_bug+0x480/0x480 [ 44.221250] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.226411] ? print_usage_bug+0x480/0x480 [ 44.230635] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.235624] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.240615] ? __lock_acquire+0x732/0x4620 [ 44.244817] ? unwind_dump+0x4c0/0x4c0 [ 44.248696] ? __lock_acquire+0x732/0x4620 [ 44.252902] ? __lock_acquire+0x732/0x4620 [ 44.257121] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.262292] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 44.268144] ? hrtimer_interrupt+0x1d4/0x5f0 [ 44.272520] ? hrtimer_interrupt+0x1d4/0x5f0 [ 44.276899] ? save_stack_trace+0x16/0x20 [ 44.281017] ? check_noncircular+0x20/0x20 [ 44.285225] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.290228] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.295229] ? unwind_dump+0x4c0/0x4c0 [ 44.299089] ? unwind_dump+0x4c0/0x4c0 [ 44.302946] ? find_held_lock+0x39/0x1d0 [ 44.306983] ? __unwind_start+0x169/0x330 [ 44.311117] ? unwind_get_return_address+0x61/0xa0 [ 44.316020] ? __save_stack_trace+0x61/0xd0 [ 44.320313] ? get_stack_info+0x37/0x150 [ 44.324344] ? update_stack_state+0x225/0x700 [ 44.328829] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 44.334703] ? handle_irq_event+0xa7/0x140 [ 44.338905] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.343902] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.348891] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.353891] ? unwind_dump+0x4c0/0x4c0 [ 44.357750] ? unwind_dump+0x4c0/0x4c0 [ 44.361609] ? __unwind_start+0x169/0x330 [ 44.365726] ? print_usage_bug+0x480/0x480 [ 44.369951] ? __unwind_start+0x169/0x330 [ 44.374071] ? unwind_get_return_address+0x61/0xa0 [ 44.378985] ? __save_stack_trace+0x61/0xd0 [ 44.383284] ? vring_use_dma_api+0x7f/0xa0 [ 44.387489] ? vring_unmap_one+0x49/0x3d0 [ 44.391612] ? detach_buf+0x463/0x6a0 [ 44.395394] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 44.400134] ? common_interrupt+0x9d/0x9d [ 44.404254] ? detach_buf+0x6a0/0x6a0 [ 44.408028] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 44.413019] virtnet_poll+0x304/0xad0 [ 44.416815] ? receive_buf+0x51f0/0x51f0 [ 44.420859] ? net_rx_action+0x49b/0x1910 [ 44.424985] net_rx_action+0x792/0x1910 [ 44.428942] ? napi_complete_done+0x6c0/0x6c0 [ 44.433408] ? check_noncircular+0x20/0x20 [ 44.437613] ? __lock_acquire+0x20fd/0x4620 [ 44.441920] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.447100] ? lock_downgrade+0x990/0x990 [ 44.451226] ? __wake_up+0x1e/0x50 [ 44.454737] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.459749] ? do_raw_spin_trylock+0x190/0x190 [ 44.464303] ? match_held_lock+0x990/0x9f0 [ 44.468510] ? kill_fasync+0x3ba/0x540 [ 44.472369] ? send_sigio+0x320/0x320 [ 44.476154] ? trace_hardirqs_off+0xd/0x10 [ 44.480363] ? __wake_up+0x3f/0x50 [ 44.483905] ? check_noncircular+0x20/0x20 [ 44.488118] ? credit_entropy_bits+0x4bc/0x880 [ 44.492676] ? add_interrupt_randomness+0x422/0x7f0 [ 44.497672] ? crng_reseed+0x5f0/0x5f0 [ 44.501536] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.506523] ? __handle_irq_event_percpu+0x308/0x9d0 [ 44.511602] ? rcu_pm_notify+0xc0/0xc0 [ 44.515475] __do_softirq+0x2bb/0xbd0 [ 44.519256] ? __softirqentry_text_start+0x8/0x8 [ 44.523982] ? do_raw_spin_trylock+0x190/0x190 [ 44.528532] ? handle_irq_event_percpu+0x141/0x1b0 [ 44.533432] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 44.538529] ? _raw_spin_lock+0x32/0x40 [ 44.542480] ? _raw_spin_unlock+0x22/0x30 [ 44.546602] ? handle_edge_irq+0x2b4/0x7c0 [ 44.550819] irq_exit+0x1d3/0x210 [ 44.554246] do_IRQ+0xf6/0x190 [ 44.557411] common_interrupt+0x9d/0x9d [ 44.561354] [ 44.563559] RIP: 0033:0x4054ea [ 44.566718] RSP: 002b:00007ffc78384098 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff6e [ 44.574398] RAX: 0000000000000000 RBX: 0000000000001e75 RCX: 000000000000a7f8 [ 44.581644] RDX: 0000000040000001 RSI: 00007ffc783840ac RDI: 00000000ffffffff [ 44.588884] RBP: 000000000000abb0 R08: 0000000000000bb1 R09: 0000000000e1f880 [ 44.596122] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000001e75 [ 44.603360] R13: 00000000004070f0 R14: 0000000000000000 R15: 0000000000000000 [ 44.610616] [ 44.612212] Allocated by task 7791: [ 44.615811] save_stack_trace+0x16/0x20 [ 44.619754] save_stack+0x43/0xd0 [ 44.623174] kasan_kmalloc+0xad/0xe0 [ 44.626873] kmem_cache_alloc_trace+0x136/0x750 [ 44.631511] fanout_add+0xa50/0x1190 [ 44.635194] packet_setsockopt+0xfdc/0x1e80 [ 44.639486] SyS_setsockopt+0x189/0x360 [ 44.643427] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.648147] [ 44.649741] Freed by task 7713: [ 44.653002] save_stack_trace+0x16/0x20 [ 44.656945] save_stack+0x43/0xd0 [ 44.660367] kasan_slab_free+0x71/0xc0 [ 44.664221] kfree+0xca/0x250 [ 44.667297] packet_release+0xa8f/0xd70 [ 44.671240] sock_release+0x8d/0x1e0 [ 44.674920] sock_close+0x16/0x20 [ 44.678341] __fput+0x333/0x7f0 [ 44.681587] ____fput+0x15/0x20 [ 44.684840] task_work_run+0x199/0x270 [ 44.688694] do_exit+0xa52/0x1b40 [ 44.692134] do_group_exit+0x149/0x400 [ 44.695989] SyS_exit_group+0x1d/0x20 [ 44.699758] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.704476] [ 44.706073] The buggy address belongs to the object at ffff8801c030c640 [ 44.706073] which belongs to the cache kmalloc-4096 of size 4096 [ 44.718867] The buggy address is located 2176 bytes inside of [ 44.718867] 4096-byte region [ffff8801c030c640, ffff8801c030d640) [ 44.730879] The buggy address belongs to the page: [ 44.735775] page:ffffea000700c300 count:1 mapcount:0 mapping:ffff8801c030c640 index:0x0 compound_mapcount: 0 [ 44.745716] flags: 0x200000000008100(slab|head) [ 44.750352] raw: 0200000000008100 ffff8801c030c640 0000000000000000 0000000100000001 [ 44.758214] raw: ffffea000700e620 ffffea00073f28a0 ffff8801dac00dc0 0000000000000000 [ 44.766076] page dumped because: kasan: bad access detected [ 44.771749] [ 44.773342] Memory state around the buggy address: [ 44.778241] ffff8801c030cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.785568] ffff8801c030ce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.792897] >ffff8801c030ce80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.800222] ^ [ 44.805639] ffff8801c030cf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.812982] ffff8801c030cf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.820322] ================================================================== [ 44.827672] Disabling lock debugging due to kernel taint [ 44.833149] Kernel panic - not syncing: panic_on_warn set ... [ 44.833149] [ 44.840492] CPU: 0 PID: 2993 Comm: syzkaller358977 Tainted: G B 4.13.0-next-20170908+ #18 [ 44.849898] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.859213] Call Trace: [ 44.861760] [ 44.863878] dump_stack+0x194/0x257 [ 44.867470] ? arch_local_irq_restore+0x53/0x53 [ 44.872117] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.876842] ? __netif_receive_skb_core+0x2b90/0x33d0 [ 44.881996] panic+0x1e4/0x417 [ 44.885153] ? __warn+0x1d9/0x1d9 [ 44.888579] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 44.893734] kasan_end_report+0x50/0x50 [ 44.897672] kasan_report+0x137/0x340 [ 44.901448] __asan_report_load2_noabort+0x14/0x20 [ 44.906338] __netif_receive_skb_core+0x2be3/0x33d0 [ 44.911335] ? __bpf_address_lookup+0x2b0/0x2b0 [ 44.915974] ? nf_ingress+0x9f0/0x9f0 [ 44.919737] ? unwind_dump+0x4c0/0x4c0 [ 44.923594] ? check_noncircular+0x20/0x20 [ 44.927791] ? __kernel_text_address+0xae/0xe0 [ 44.932334] ? unwind_get_return_address+0x61/0xa0 [ 44.937229] ? __save_stack_trace+0x7e/0xd0 [ 44.941519] ? depot_save_stack+0x12c/0x490 [ 44.945817] ? find_held_lock+0x39/0x1d0 [ 44.949850] ? lock_downgrade+0x990/0x990 [ 44.953960] ? sock_close+0x16/0x20 [ 44.957551] ? lock_acquire+0x1d5/0x580