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-mmots-kasan-gce-7,10.128.0.60' (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 syzkaller login: [ 51.227939] dev_remove_pack: ffff8801ca604e00 not found executing program executing program executing program executing program [ 51.355466] ================================================================== [ 51.362888] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 51.370405] Read of size 2 at addr ffff8801ca047680 by task syzkaller000679/4605 [ 51.377909] [ 51.379517] CPU: 0 PID: 4605 Comm: syzkaller000679 Not tainted 4.13.0-mm1+ #7 [ 51.386768] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.396097] Call Trace: [ 51.398655] [ 51.400789] dump_stack+0x194/0x257 [ 51.404393] ? arch_local_irq_restore+0x53/0x53 [ 51.409036] ? show_regs_print_info+0x65/0x65 [ 51.413520] ? compat_packet_setsockopt+0x140/0x140 [ 51.418520] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 51.423686] print_address_description+0x73/0x250 [ 51.428511] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 51.433676] kasan_report+0x24e/0x340 [ 51.437461] __asan_report_load2_noabort+0x14/0x20 [ 51.442365] __netif_receive_skb_core+0x2be3/0x33d0 [ 51.447351] ? __bpf_address_lookup+0x2b0/0x2b0 [ 51.452005] ? nf_ingress+0x9f0/0x9f0 [ 51.455783] ? unwind_dump+0x4c0/0x4c0 [ 51.459656] ? cpuacct_charge+0xc4/0x5b0 [ 51.463703] ? check_noncircular+0x20/0x20 [ 51.467911] ? __kernel_text_address+0xae/0xe0 [ 51.472466] ? unwind_get_return_address+0x61/0xa0 [ 51.477371] ? __save_stack_trace+0x7e/0xd0 [ 51.481680] ? depot_save_stack+0x12c/0x490 [ 51.485985] ? find_held_lock+0x39/0x1d0 [ 51.490031] ? lock_downgrade+0x990/0x990 [ 51.494178] ? lock_acquire+0x1d5/0x580 [ 51.498127] ? netif_receive_skb_internal+0x1d7/0x670 [ 51.503291] ? find_held_lock+0x39/0x1d0 [ 51.507335] ? pvclock_read_flags+0x160/0x160 [ 51.511805] ? lock_downgrade+0x990/0x990 [ 51.515935] ? lock_acquire+0x1d5/0x580 [ 51.519885] ? netif_receive_skb_internal+0xa2/0x670 [ 51.524974] ? ktime_get_with_offset+0x2c1/0x420 [ 51.529708] ? lock_release+0xd70/0xd70 [ 51.533661] ? ktime_get+0x3a0/0x3a0 [ 51.537363] __netif_receive_skb+0x2c/0x1b0 [ 51.541657] ? __netif_receive_skb+0x2c/0x1b0 [ 51.546134] netif_receive_skb_internal+0x10b/0x670 [ 51.551125] ? dev_cpu_dead+0xb00/0xb00 [ 51.555071] ? __alloc_pages_nodemask+0xd80/0xd80 [ 51.559888] ? net_rx_action+0x1910/0x1910 [ 51.564097] ? rcu_pm_notify+0xc0/0xc0 [ 51.567968] ? skb_gro_reset_offset+0x17b/0x300 [ 51.572615] napi_gro_receive+0x3d0/0x500 [ 51.576737] ? dev_gro_receive+0x19b0/0x19b0 [ 51.581128] ? eth_type_trans+0x2a3/0x650 [ 51.585250] ? eth_gro_receive+0x810/0x810 [ 51.589476] receive_buf+0xcc5/0x51f0 [ 51.593279] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 51.597837] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 51.603692] ? rcu_report_qs_rnp+0x613/0x880 [ 51.608073] ? rcu_report_qs_rnp+0x613/0x880 [ 51.612465] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.617465] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.622456] ? unwind_dump+0x4c0/0x4c0 [ 51.626321] ? unwind_dump+0x4c0/0x4c0 [ 51.630196] ? __unwind_start+0x169/0x330 [ 51.634321] ? unwind_get_return_address+0x61/0xa0 [ 51.639232] ? __save_stack_trace+0x61/0xd0 [ 51.643538] ? rcu_report_qs_rnp+0x613/0x880 [ 51.647922] ? save_stack_trace+0x16/0x20 [ 51.652047] ? __lock_acquire+0x20fd/0x4620 [ 51.656348] ? __do_softirq+0x2bb/0xbd0 [ 51.660294] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.665284] ? unwind_dump+0x4c0/0x4c0 [ 51.669150] ? find_held_lock+0x39/0x1d0 [ 51.673193] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.678355] ? lock_downgrade+0x990/0x990 [ 51.682489] ? check_noncircular+0x20/0x20 [ 51.686704] ? check_noncircular+0x20/0x20 [ 51.690910] ? pvclock_read_flags+0x160/0x160 [ 51.695387] ? lock_release+0xd70/0xd70 [ 51.699339] ? _find_next_bit+0xee/0x120 [ 51.703374] ? _find_next_bit+0xee/0x120 [ 51.707415] ? __lock_is_held+0xbc/0x140 [ 51.711465] ? __lock_is_held+0xbc/0x140 [ 51.715500] ? __x2apic_send_IPI_dest.constprop.7+0x5b/0x80 [ 51.721187] ? x2apic_send_IPI+0x6d/0xa0 [ 51.725224] ? native_smp_send_reschedule+0x69/0xa0 [ 51.730215] ? resched_curr+0x196/0x420 [ 51.734161] ? wake_q_add+0x90/0x90 [ 51.737763] ? check_noncircular+0x20/0x20 [ 51.741969] ? check_noncircular+0x20/0x20 [ 51.746187] ? check_noncircular+0x20/0x20 [ 51.750409] ? check_noncircular+0x20/0x20 [ 51.754620] ? check_preempt_wakeup+0x6b1/0x1320 [ 51.759357] ? find_held_lock+0x39/0x1d0 [ 51.763402] ? lock_downgrade+0x990/0x990 [ 51.767521] ? lock_downgrade+0x990/0x990 [ 51.771658] ? check_noncircular+0x20/0x20 [ 51.775867] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.780856] ? ttwu_do_wakeup+0x523/0x710 [ 51.784993] ? do_raw_spin_trylock+0x190/0x190 [ 51.789545] ? do_raw_spin_trylock+0x190/0x190 [ 51.794102] ? check_noncircular+0x20/0x20 [ 51.798319] ? vring_use_dma_api+0x7f/0xa0 [ 51.802529] ? vring_unmap_one+0x49/0x3d0 [ 51.806657] ? detach_buf+0x463/0x6a0 [ 51.810446] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 51.815173] ? common_interrupt+0x9d/0x9d [ 51.819296] ? detach_buf+0x6a0/0x6a0 [ 51.823072] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.828065] virtnet_poll+0x304/0xad0 [ 51.831855] ? receive_buf+0x51f0/0x51f0 [ 51.835884] ? unwind_dump+0x4c0/0x4c0 [ 51.839752] ? net_rx_action+0x49b/0x1910 [ 51.843882] net_rx_action+0x792/0x1910 [ 51.847840] ? napi_complete_done+0x6c0/0x6c0 [ 51.852309] ? save_stack_trace+0x16/0x20 [ 51.856434] ? __lock_acquire+0x20fd/0x4620 [ 51.860725] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 51.865817] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.870987] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.876153] ? __note_gp_changes+0x8d0/0x8d0 [ 51.880534] ? rcu_accelerate_cbs+0x196/0x970 [ 51.885149] ? rcu_pm_notify+0xc0/0xc0 [ 51.889058] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.894071] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 51.898906] ? raise_softirq+0x490/0x490 [ 51.902955] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.907965] ? rcu_process_callbacks+0x3a2/0x17b0 [ 51.912808] ? trace_hardirqs_off+0xd/0x10 [ 51.917027] ? __napi_schedule+0x25e/0x370 [ 51.921253] ? netdev_info+0x170/0x170 [ 51.925122] ? check_noncircular+0x20/0x20 [ 51.929338] ? check_noncircular+0x20/0x20 [ 51.933554] ? rcu_pm_notify+0xc0/0xc0 [ 51.937430] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.942427] ? __handle_irq_event_percpu+0x308/0x9d0 [ 51.947519] ? rcu_pm_notify+0xc0/0xc0 [ 51.951398] __do_softirq+0x2bb/0xbd0 [ 51.955187] ? __softirqentry_text_start+0x8/0x8 [ 51.959917] ? do_raw_spin_trylock+0x190/0x190 [ 51.964479] ? handle_irq_event_percpu+0x141/0x1b0 [ 51.969390] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 51.974476] ? _raw_spin_lock+0x32/0x40 [ 51.978428] ? _raw_spin_unlock+0x22/0x30 [ 51.982548] ? handle_edge_irq+0x2b4/0x7c0 [ 51.986770] irq_exit+0x1d3/0x210 [ 51.990206] do_IRQ+0xf6/0x190 [ 51.993379] common_interrupt+0x9d/0x9d [ 51.997327] [ 51.999549] RIP: 0010:__do_page_fault+0x3b0/0xb60 [ 52.004361] RSP: 0000:ffff8801ca267d80 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff6e [ 52.012046] RAX: ffff8801ca30a380 RBX: 0000000000000004 RCX: 0000000000000000 [ 52.019294] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff85ac97f8 [ 52.026541] RBP: ffff8801ca267de0 R08: 00007fe5cd76d700 R09: 0000000000000000 [ 52.033785] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801ca267f58 [ 52.041036] R13: ffff8801caa907c0 R14: ffff8801ca30a380 R15: ffff8801ca267fe0 [ 52.048317] ? do_raw_spin_trylock+0x190/0x190 [ 52.052884] ? lock_release+0xd70/0xd70 [ 52.056838] do_page_fault+0xee/0x720 [ 52.060616] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.065091] ? __do_page_fault+0xb60/0xb60 [ 52.069308] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.074310] ? lockdep_sys_exit+0x47/0xf0 [ 52.078435] ? syscall_return_slowpath+0x2b3/0x500 [ 52.083336] ? finish_task_switch+0x1aa/0x740 [ 52.087816] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 52.092822] ? ret_from_fork+0x1a/0x40 [ 52.096686] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 52.101513] page_fault+0x22/0x30 [ 52.104939] RIP: 0033:0x4070c5 [ 52.108103] RSP: 002b:00007fe5cd76cdd8 EFLAGS: 00010202 [ 52.113459] RAX: 00000000006dbac0 RBX: 00007fe5cd76d700 RCX: ffffffffffffffe8 [ 52.120710] RDX: 00000000004b5180 RSI: 00007fe5cd76ce70 RDI: 00007fe5cd76d700 [ 52.127964] RBP: 0000000000000000 R08: 00007fe5cd76d700 R09: 00007fe5cd76d700 [ 52.135210] R10: 00007fe5cd76d9d0 R11: 0000000000000202 R12: 0000000000000000 [ 52.142454] R13: 00007fff94a3887f R14: 00007fe5cd76d9c0 R15: 0000000000000000 [ 52.149731] [ 52.151345] Allocated by task 4502: [ 52.154954] save_stack_trace+0x16/0x20 [ 52.158903] save_stack+0x43/0xd0 [ 52.162352] kasan_kmalloc+0xad/0xe0 [ 52.166047] kmem_cache_alloc_trace+0x136/0x750 [ 52.170709] fanout_add+0xa50/0x1190 [ 52.174396] packet_setsockopt+0xfdc/0x1e80 [ 52.178693] SyS_setsockopt+0x189/0x360 [ 52.182644] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.187369] [ 52.188973] Freed by task 4489: [ 52.192236] save_stack_trace+0x16/0x20 [ 52.196190] save_stack+0x43/0xd0 [ 52.199617] kasan_slab_free+0x71/0xc0 [ 52.203486] kfree+0xca/0x250 [ 52.206567] packet_release+0xa8f/0xd70 [ 52.210522] sock_release+0x8d/0x1e0 [ 52.214207] sock_close+0x16/0x20 [ 52.217633] __fput+0x333/0x7f0 [ 52.220884] ____fput+0x15/0x20 [ 52.224137] task_work_run+0x199/0x270 [ 52.228000] do_exit+0xa52/0x1b40 [ 52.231432] do_group_exit+0x149/0x400 [ 52.235290] SyS_exit_group+0x1d/0x20 [ 52.239068] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.243792] [ 52.245394] The buggy address belongs to the object at ffff8801ca046e00 [ 52.245394] which belongs to the cache kmalloc-4096 of size 4096 [ 52.258200] The buggy address is located 2176 bytes inside of [ 52.258200] 4096-byte region [ffff8801ca046e00, ffff8801ca047e00) [ 52.270233] The buggy address belongs to the page: [ 52.275145] page:ffffea0007281180 count:1 mapcount:0 mapping:ffff8801ca046e00 index:0x0 compound_mapcount: 0 [ 52.285107] flags: 0x200000000008100(slab|head) [ 52.289750] raw: 0200000000008100 ffff8801ca046e00 0000000000000000 0000000100000001 [ 52.297603] raw: ffffea0007281120 ffffea0007280ea0 ffff8801dac00dc0 0000000000000000 [ 52.305465] page dumped because: kasan: bad access detected [ 52.311146] [ 52.312744] Memory state around the buggy address: [ 52.317653] ffff8801ca047580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.324992] ffff8801ca047600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.332326] >ffff8801ca047680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.339673] ^ [ 52.343029] ffff8801ca047700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.350374] ffff8801ca047780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb