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-0,10.128.0.14' (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 syzkaller login: [ 50.206210] dev_remove_pack: ffff8801cca22c00 not found executing program [ 50.269765] ================================================================== [ 50.277176] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 50.284680] Read of size 2 at addr ffff8801cc7b7180 by task swapper/1/0 [ 50.291398] [ 50.293003] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.13.0-next-20170913+ #21 [ 50.300424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.309749] Call Trace: [ 50.312304] [ 50.314429] dump_stack+0x194/0x257 [ 50.318031] ? arch_local_irq_restore+0x53/0x53 [ 50.322670] ? show_regs_print_info+0x65/0x65 [ 50.327146] ? update_stack_state+0x225/0x700 [ 50.331622] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 50.336786] print_address_description+0x73/0x250 [ 50.341604] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 50.346768] kasan_report+0x24e/0x340 [ 50.350543] __asan_report_load2_noabort+0x14/0x20 [ 50.355448] __netif_receive_skb_core+0x2be3/0x33d0 [ 50.360441] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 50.365442] ? nf_ingress+0x9f0/0x9f0 [ 50.369214] ? unwind_dump+0x4c0/0x4c0 [ 50.373072] ? check_noncircular+0x20/0x20 [ 50.377280] ? check_noncircular+0x20/0x20 [ 50.381508] ? check_noncircular+0x20/0x20 [ 50.385723] ? __save_stack_trace+0x6e/0xd0 [ 50.390024] ? depot_save_stack+0x12c/0x490 [ 50.394327] ? find_held_lock+0x39/0x1d0 [ 50.398370] ? lock_downgrade+0x990/0x990 [ 50.402491] ? default_idle_call+0x36/0x90 [ 50.406710] ? lock_acquire+0x1d5/0x580 [ 50.410659] ? netif_receive_skb_internal+0x1d7/0x670 [ 50.415822] ? find_held_lock+0x39/0x1d0 [ 50.419863] ? pvclock_read_flags+0x160/0x160 [ 50.424328] ? lock_downgrade+0x990/0x990 [ 50.428455] ? lock_acquire+0x1d5/0x580 [ 50.432399] ? netif_receive_skb_internal+0xa2/0x670 [ 50.437482] ? ktime_get_with_offset+0x2c1/0x420 [ 50.442213] ? lock_release+0xd70/0xd70 [ 50.446154] ? ktime_get+0x3a0/0x3a0 [ 50.449851] __netif_receive_skb+0x2c/0x1b0 [ 50.454143] ? __netif_receive_skb+0x2c/0x1b0 [ 50.458612] netif_receive_skb_internal+0x10b/0x670 [ 50.463597] ? dev_cpu_dead+0xb00/0xb00 [ 50.467540] ? __alloc_pages_nodemask+0xd80/0xd80 [ 50.472354] ? net_rx_action+0x1910/0x1910 [ 50.476560] ? rcu_pm_notify+0xc0/0xc0 [ 50.480425] ? skb_gro_reset_offset+0x17b/0x300 [ 50.485067] napi_gro_receive+0x3d0/0x500 [ 50.489186] ? dev_gro_receive+0x19b0/0x19b0 [ 50.493571] ? eth_type_trans+0x2a3/0x650 [ 50.497692] ? eth_gro_receive+0x810/0x810 [ 50.501909] receive_buf+0xcc5/0x51f0 [ 50.505680] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 50.510667] ? unwind_dump+0x4c0/0x4c0 [ 50.514533] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 50.519093] ? __unwind_start+0x169/0x330 [ 50.523214] ? unwind_get_return_address+0x61/0xa0 [ 50.528118] ? __save_stack_trace+0x61/0xd0 [ 50.532416] ? rcu_report_qs_rnp+0x613/0x880 [ 50.536798] ? save_stack_trace+0x16/0x20 [ 50.540917] ? __lock_acquire+0x20fd/0x4620 [ 50.545210] ? __do_softirq+0x2bb/0xbd0 [ 50.549152] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.554320] ? find_held_lock+0x39/0x1d0 [ 50.558361] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.563521] ? lock_downgrade+0x990/0x990 [ 50.567655] ? pvclock_read_flags+0x160/0x160 [ 50.572121] ? lock_release+0xd70/0xd70 [ 50.576070] ? _find_next_bit+0xee/0x120 [ 50.580108] ? sched_clock_cpu+0x1b/0x170 [ 50.584229] ? cpumask_next_wrap+0x6c/0x90 [ 50.588438] ? select_task_rq_fair+0xe9e/0x3060 [ 50.593075] ? save_stack_trace+0x16/0x20 [ 50.597194] ? check_noncircular+0x20/0x20 [ 50.601416] ? check_noncircular+0x20/0x20 [ 50.605618] ? check_noncircular+0x20/0x20 [ 50.609825] ? check_noncircular+0x20/0x20 [ 50.614031] ? __lock_is_held+0xbc/0x140 [ 50.618063] ? check_noncircular+0x20/0x20 [ 50.622266] ? check_noncircular+0x20/0x20 [ 50.626468] ? x2apic_send_IPI+0x6d/0xa0 [ 50.630505] ? native_smp_send_reschedule+0x69/0xa0 [ 50.635494] ? find_held_lock+0x39/0x1d0 [ 50.639538] ? lock_downgrade+0x990/0x990 [ 50.643652] ? lock_downgrade+0x990/0x990 [ 50.647775] ? check_noncircular+0x20/0x20 [ 50.651986] ? ttwu_do_wakeup+0x4d0/0x710 [ 50.656107] ? do_raw_spin_trylock+0x190/0x190 [ 50.660658] ? do_raw_spin_trylock+0x190/0x190 [ 50.665216] ? check_noncircular+0x20/0x20 [ 50.669427] ? trace_hardirqs_off+0xd/0x10 [ 50.673633] ? print_usage_bug+0x480/0x480 [ 50.677837] ? try_to_wake_up+0x115/0x1850 [ 50.682041] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.687206] ? find_held_lock+0x39/0x1d0 [ 50.691247] ? lock_downgrade+0x990/0x990 [ 50.695372] ? vring_use_dma_api+0x7f/0xa0 [ 50.699579] ? vring_unmap_one+0x49/0x3d0 [ 50.703698] ? detach_buf+0x463/0x6a0 [ 50.707480] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 50.712209] ? common_interrupt+0x9d/0x9d [ 50.716333] ? detach_buf+0x6a0/0x6a0 [ 50.720110] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 50.725192] virtnet_poll+0x304/0xad0 [ 50.728973] ? receive_buf+0x51f0/0x51f0 [ 50.733011] ? unwind_dump+0x4c0/0x4c0 [ 50.736878] ? net_rx_action+0x49b/0x1910 [ 50.741004] net_rx_action+0x792/0x1910 [ 50.744962] ? napi_complete_done+0x6c0/0x6c0 [ 50.749428] ? save_stack_trace+0x16/0x20 [ 50.753545] ? __lock_acquire+0x20fd/0x4620 [ 50.757851] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.763013] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.768183] ? note_gp_changes+0x650/0x650 [ 50.772387] ? print_usage_bug+0x480/0x480 [ 50.776596] ? rcu_pm_notify+0xc0/0xc0 [ 50.780466] ? rcu_read_lock_sched_held+0x108/0x120 [ 50.785453] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 50.790362] ? raise_softirq+0x490/0x490 [ 50.794394] ? lock_downgrade+0x990/0x990 [ 50.798515] ? check_noncircular+0x20/0x20 [ 50.802724] ? lock_acquire+0x1d5/0x580 [ 50.806672] ? trace_hardirqs_off+0xd/0x10 [ 50.810878] ? __napi_schedule+0x25e/0x370 [ 50.815085] ? netdev_info+0x170/0x170 [ 50.818942] ? check_noncircular+0x20/0x20 [ 50.823145] ? __lock_is_held+0xbc/0x140 [ 50.827177] ? check_noncircular+0x20/0x20 [ 50.831384] ? rcu_pm_notify+0xc0/0xc0 [ 50.835257] ? rcu_read_lock_sched_held+0x108/0x120 [ 50.840244] ? __handle_irq_event_percpu+0x308/0x9d0 [ 50.845322] ? rcu_pm_notify+0xc0/0xc0 [ 50.849192] __do_softirq+0x2bb/0xbd0 [ 50.852976] ? __softirqentry_text_start+0x8/0x8 [ 50.857703] ? do_raw_spin_trylock+0x190/0x190 [ 50.862253] ? handle_irq_event_percpu+0x141/0x1b0 [ 50.867159] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 50.872242] ? _raw_spin_lock+0x32/0x40 [ 50.876191] ? _raw_spin_unlock+0x22/0x30 [ 50.880309] ? handle_edge_irq+0x2b4/0x7c0 [ 50.884523] irq_exit+0x1d3/0x210 [ 50.887945] do_IRQ+0xf6/0x190 [ 50.891114] common_interrupt+0x9d/0x9d [ 50.895057] [ 50.897265] RIP: 0010:native_safe_halt+0x6/0x10 [ 50.901899] RSP: 0018:ffff8801d9f97db0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff1e [ 50.909578] RAX: dffffc0000000000 RBX: 1ffff1003b3f2fb9 RCX: 0000000000000000 [ 50.916815] RDX: 1ffffffff0b59308 RSI: 0000000000000001 RDI: ffffffff85ac9840 [ 50.924053] RBP: ffff8801d9f97db0 R08: ffffffff8161b619 R09: 0000000000000000 [ 50.931293] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac9830 [ 50.938532] R13: ffff8801d9f97e68 R14: 0000000000000000 R15: ffff8801d9f8a300 [ 50.945780] ? tick_nohz_idle_enter+0xd9/0x160 [ 50.950340] default_idle+0xbf/0x460 [ 50.954023] ? __sched_text_end+0x4/0x4 [ 50.957975] ? tick_nohz_idle_enter+0xde/0x160 [ 50.962533] arch_cpu_idle+0xa/0x10 [ 50.966130] default_idle_call+0x36/0x90 [ 50.970161] do_idle+0x256/0x3b0 [ 50.973501] cpu_startup_entry+0x18/0x20 [ 50.977533] start_secondary+0x277/0x310 [ 50.981578] secondary_startup_64+0xa5/0xa5 [ 50.985886] [ 50.987485] Allocated by task 3474: [ 50.991084] save_stack_trace+0x16/0x20 [ 50.995029] save_stack+0x43/0xd0 [ 50.998449] kasan_kmalloc+0xad/0xe0 [ 51.002132] kmem_cache_alloc_trace+0x136/0x750 [ 51.006770] fanout_add+0xa50/0x1190 [ 51.010451] packet_setsockopt+0xfdc/0x1e80 [ 51.014757] SyS_setsockopt+0x189/0x360 [ 51.018700] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 51.023422] [ 51.025020] Freed by task 3466: [ 51.028267] save_stack_trace+0x16/0x20 [ 51.032209] save_stack+0x43/0xd0 [ 51.035631] kasan_slab_free+0x71/0xc0 [ 51.039487] kfree+0xca/0x250 [ 51.042561] packet_release+0xa8f/0xd70 [ 51.046503] sock_release+0x8d/0x1e0 [ 51.050186] sock_close+0x16/0x20 [ 51.053606] __fput+0x333/0x7f0 [ 51.056855] ____fput+0x15/0x20 [ 51.060103] task_work_run+0x199/0x270 [ 51.063957] do_exit+0xa52/0x1b40 [ 51.067376] do_group_exit+0x149/0x400 [ 51.071229] SyS_exit_group+0x1d/0x20 [ 51.074999] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 51.079721] [ 51.081319] The buggy address belongs to the object at ffff8801cc7b6900 [ 51.081319] which belongs to the cache kmalloc-4096 of size 4096 [ 51.094114] The buggy address is located 2176 bytes inside of [ 51.094114] 4096-byte region [ffff8801cc7b6900, ffff8801cc7b7900) [ 51.106134] The buggy address belongs to the page: [ 51.111034] page:ffffea000731ed80 count:1 mapcount:0 mapping:ffff8801cc7b6900 index:0x0 compound_mapcount: 0 [ 51.120985] flags: 0x200000000008100(slab|head) [ 51.125623] raw: 0200000000008100 ffff8801cc7b6900 0000000000000000 0000000100000001 [ 51.133473] raw: ffffea000731e9a0 ffffea000731eea0 ffff8801dac00dc0 0000000000000000 [ 51.141491] page dumped because: kasan: bad access detected [ 51.147164] [ 51.148758] Memory state around the buggy address: [ 51.153656] ffff8801cc7b7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.160984] ffff8801cc7b7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.168309] >ffff8801cc7b7180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.175634] ^ [ 51.178970] ffff8801cc7b7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.186298] ffff8801cc7b7280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.193625] ================================================================== [ 51.200949] Disabling lock debugging due to kernel taint [ 51.206393] Kernel panic - not syncing: panic_on_warn set ... [ 51.206393] [ 51.213719] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G B 4.13.0-next-20170913+ #21 [ 51.222346] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.231665] Call Trace: [ 51.234212] [ 51.236332] dump_stack+0x194/0x257 [ 51.239924] ? arch_local_irq_restore+0x53/0x53 [ 51.244558] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.249283] ? __netif_receive_skb_core+0x2b90/0x33d0 [ 51.254440] panic+0x1e4/0x417 [ 51.257604] ? __warn+0x1d9/0x1d9 [ 51.261037] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 51.266190] kasan_end_report+0x50/0x50 [ 51.270125] kasan_report+0x137/0x340