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-0,10.128.0.51' (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 syzkaller login: [ 51.229588] dev_remove_pack: ffff8801ce557a00 not found executing program executing program [ 51.287199] ================================================================== [ 51.294576] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 51.302078] Read of size 2 at addr ffff8801ce2bf740 by task syzkaller174120/3080 [ 51.309576] [ 51.311174] CPU: 0 PID: 3080 Comm: syzkaller174120 Not tainted 4.13.0-mm1+ #7 [ 51.318414] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.327734] Call Trace: [ 51.330284] [ 51.332409] dump_stack+0x194/0x257 [ 51.336009] ? arch_local_irq_restore+0x53/0x53 [ 51.340650] ? show_regs_print_info+0x65/0x65 [ 51.345122] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 51.350284] print_address_description+0x73/0x250 [ 51.355096] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 51.360255] kasan_report+0x24e/0x340 [ 51.364031] __asan_report_load2_noabort+0x14/0x20 [ 51.368929] __netif_receive_skb_core+0x2be3/0x33d0 [ 51.373913] ? __bpf_address_lookup+0x2b0/0x2b0 [ 51.378562] ? nf_ingress+0x9f0/0x9f0 [ 51.382337] ? unwind_dump+0x4c0/0x4c0 [ 51.386213] ? check_noncircular+0x20/0x20 [ 51.390419] ? __kernel_text_address+0xae/0xe0 [ 51.394971] ? unwind_get_return_address+0x61/0xa0 [ 51.399872] ? __save_stack_trace+0x7e/0xd0 [ 51.404169] ? print_usage_bug+0x480/0x480 [ 51.408381] ? find_held_lock+0x39/0x1d0 [ 51.412425] ? lock_downgrade+0x990/0x990 [ 51.416541] ? __schedule+0x8f0/0x2070 [ 51.420403] ? lock_acquire+0x1d5/0x580 [ 51.424348] ? netif_receive_skb_internal+0x1d7/0x670 [ 51.429509] ? find_held_lock+0x39/0x1d0 [ 51.433551] ? pvclock_read_flags+0x160/0x160 [ 51.438016] ? mark_held_locks+0xb2/0x100 [ 51.442138] ? lock_acquire+0x1d5/0x580 [ 51.446080] ? netif_receive_skb_internal+0xa2/0x670 [ 51.451154] ? ktime_get_with_offset+0x2c1/0x420 [ 51.455884] ? lock_release+0xd70/0xd70 [ 51.459825] ? ktime_get+0x3a0/0x3a0 [ 51.463521] __netif_receive_skb+0x2c/0x1b0 [ 51.467810] ? __netif_receive_skb+0x2c/0x1b0 [ 51.472286] netif_receive_skb_internal+0x10b/0x670 [ 51.477271] ? dev_cpu_dead+0xb00/0xb00 [ 51.481216] ? __alloc_pages_nodemask+0xd80/0xd80 [ 51.486030] ? net_rx_action+0x1910/0x1910 [ 51.490241] ? __lock_is_held+0xbc/0x140 [ 51.494281] ? skb_gro_reset_offset+0x17b/0x300 [ 51.498921] napi_gro_receive+0x3d0/0x500 [ 51.503042] ? dev_gro_receive+0x19b0/0x19b0 [ 51.507421] ? eth_type_trans+0x2a3/0x650 [ 51.511539] ? eth_gro_receive+0x810/0x810 [ 51.515756] receive_buf+0xcc5/0x51f0 [ 51.519540] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 51.524097] ? __lock_acquire+0x732/0x4620 [ 51.528305] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.533292] ? unwind_dump+0x4c0/0x4c0 [ 51.537166] ? __lock_acquire+0x732/0x4620 [ 51.541372] ? __unwind_start+0x169/0x330 [ 51.545505] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.550666] ? save_stack_trace+0x16/0x20 [ 51.554784] ? __lock_acquire+0x20fd/0x4620 [ 51.559082] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.564248] ? print_usage_bug+0x480/0x480 [ 51.568451] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.573624] ? check_noncircular+0x20/0x20 [ 51.577830] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.582987] ? __lock_acquire+0x20fd/0x4620 [ 51.587288] ? check_noncircular+0x20/0x20 [ 51.591497] ? check_noncircular+0x20/0x20 [ 51.595704] ? find_held_lock+0x39/0x1d0 [ 51.599747] ? lock_downgrade+0x990/0x990 [ 51.603866] ? find_held_lock+0x39/0x1d0 [ 51.607902] ? find_held_lock+0x39/0x1d0 [ 51.611943] ? lock_downgrade+0x990/0x990 [ 51.616067] ? bpf_prog_alloc+0x310/0x310 [ 51.620190] ? __bpf_address_lookup+0x2b0/0x2b0 [ 51.624837] ? lock_release+0xd70/0xd70 [ 51.628781] ? __free_insn_slot+0x5c0/0x5c0 [ 51.633076] ? unwind_dump+0x4c0/0x4c0 [ 51.636946] ? is_bpf_text_address+0xa4/0x120 [ 51.641413] ? __kernel_text_address+0xae/0xe0 [ 51.645968] ? unwind_get_return_address+0x61/0xa0 [ 51.650868] ? __save_stack_trace+0x7e/0xd0 [ 51.655169] ? depot_save_stack+0x12c/0x490 [ 51.659465] ? print_usage_bug+0x480/0x480 [ 51.663667] ? free_task+0x148/0x1a0 [ 51.667354] ? save_stack+0xa3/0xd0 [ 51.670951] ? save_stack_trace+0x16/0x20 [ 51.675074] ? save_stack+0x43/0xd0 [ 51.678670] ? kasan_slab_free+0x71/0xc0 [ 51.682698] ? kmem_cache_free+0x77/0x280 [ 51.686812] ? free_task+0x148/0x1a0 [ 51.690491] ? __put_task_struct+0x240/0x5b0 [ 51.694869] ? delayed_put_task_struct+0xca/0x3d0 [ 51.699679] ? rcu_process_callbacks+0xd3e/0x17b0 [ 51.704488] ? __do_softirq+0x2bb/0xbd0 [ 51.708430] ? irq_exit+0x1d3/0x210 [ 51.712023] ? smp_apic_timer_interrupt+0x177/0x710 [ 51.717007] ? apic_timer_interrupt+0x9d/0xb0 [ 51.721471] ? rcu_read_lock_sched_held+0x40/0x120 [ 51.726370] ? vring_use_dma_api+0x7f/0xa0 [ 51.730574] ? vring_unmap_one+0x49/0x3d0 [ 51.734695] ? detach_buf+0x463/0x6a0 [ 51.738464] ? print_usage_bug+0x480/0x480 [ 51.742677] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 51.747403] ? common_interrupt+0x9d/0x9d [ 51.751524] ? detach_buf+0x6a0/0x6a0 [ 51.755297] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.760291] virtnet_poll+0x304/0xad0 [ 51.764073] ? receive_buf+0x51f0/0x51f0 [ 51.768102] ? unwind_dump+0x4c0/0x4c0 [ 51.771963] ? mark_held_locks+0xb2/0x100 [ 51.776084] ? net_rx_action+0x49b/0x1910 [ 51.780207] net_rx_action+0x792/0x1910 [ 51.784166] ? napi_complete_done+0x6c0/0x6c0 [ 51.788631] ? save_stack_trace+0x16/0x20 [ 51.792747] ? __lock_acquire+0x20fd/0x4620 [ 51.797042] ? __lock_is_held+0xbc/0x140 [ 51.801084] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.806247] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.811418] ? __lock_is_held+0xbc/0x140 [ 51.815457] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.820443] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 51.825254] ? raise_softirq+0x490/0x490 [ 51.829286] ? run_rebalance_domains+0x383/0x780 [ 51.834015] ? print_usage_bug+0x480/0x480 [ 51.838228] ? trace_hardirqs_off+0xd/0x10 [ 51.842431] ? __napi_schedule+0x25e/0x370 [ 51.846637] ? netdev_info+0x170/0x170 [ 51.850490] ? check_noncircular+0x20/0x20 [ 51.854694] ? __lock_is_held+0xbc/0x140 [ 51.858724] ? check_noncircular+0x20/0x20 [ 51.862926] ? __lock_is_held+0xbc/0x140 [ 51.866967] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.871953] ? __handle_irq_event_percpu+0x308/0x9d0 [ 51.877030] ? __lock_is_held+0xbc/0x140 [ 51.881076] __do_softirq+0x2bb/0xbd0 [ 51.884858] ? __softirqentry_text_start+0x8/0x8 [ 51.889582] ? do_raw_spin_trylock+0x190/0x190 [ 51.894131] ? handle_irq_event_percpu+0x141/0x1b0 [ 51.899030] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 51.904111] ? _raw_spin_lock+0x32/0x40 [ 51.908059] ? _raw_spin_unlock+0x22/0x30 [ 51.912177] ? handle_edge_irq+0x2b4/0x7c0 [ 51.916393] irq_exit+0x1d3/0x210 [ 51.919813] do_IRQ+0xf6/0x190 [ 51.922979] common_interrupt+0x9d/0x9d [ 51.926918] [ 51.929124] RIP: 0010:_raw_spin_unlock_irqrestore+0x5e/0xba [ 51.934800] RSP: 0018:ffff8801ce1ff790 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff6e [ 51.942479] RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 0000000000000006 [ 51.949716] RDX: 1ffffffff0b592fd RSI: 1ffff10039c5518f RDI: 0000000000000282 [ 51.956956] RBP: ffff8801ce1ff7a0 R08: ffff8801ce1ff0f8 R09: 0000000000000000 [ 51.964192] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff87069bc0 [ 51.971430] R13: ffff8801ce1ff7e8 R14: ffff8801ce328300 R15: 0000000000000000 [ 51.978691] kprobe_flush_task+0x1a3/0x5d0 [ 51.982898] ? __get_valid_kprobe+0x450/0x450 [ 51.987368] ? mark_held_locks+0xb2/0x100 [ 51.991488] ? _raw_spin_unlock_irq+0x27/0x70 [ 51.995963] finish_task_switch+0x4c1/0x740 [ 52.000258] ? preempt_notifier_dec+0x20/0x20 [ 52.004732] __schedule+0x8f0/0x2070 [ 52.008414] ? do_mprotect_pkey+0x57d/0x900 [ 52.012710] ? __sched_text_start+0x8/0x8 [ 52.016830] ? check_noncircular+0x20/0x20 [ 52.021037] ? __lock_is_held+0xbc/0x140 [ 52.025066] ? anon_vma_clone+0x139/0x700 [ 52.029197] ? check_same_owner+0x320/0x320 [ 52.033490] ? __lock_is_held+0xbc/0x140 [ 52.037526] preempt_schedule_common+0x35/0x60 [ 52.042076] _cond_resched+0x17/0x20 [ 52.045760] down_write+0x6c/0x120 [ 52.049270] ? down_read+0x150/0x150 [ 52.052967] anon_vma_clone+0x1a4/0x700 [ 52.056919] ? unlink_anon_vmas+0x9f0/0x9f0 [ 52.061212] ? lock_acquire+0x1d5/0x580 [ 52.065155] ? do_mprotect_pkey+0x17e/0x900 [ 52.069450] __split_vma+0x3a3/0x8c0 [ 52.073136] ? find_vma_prev+0x140/0x140 [ 52.077165] ? __vma_adjust+0x1790/0x1790 [ 52.081290] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 52.086192] split_vma+0x8f/0xc0 [ 52.089530] mprotect_fixup+0x3f5/0x640 [ 52.093472] ? vmacache_find+0x61/0x270 [ 52.097425] do_mprotect_pkey+0x57d/0x900 [ 52.101547] ? SyS_mmap_pgoff+0x243/0x5f0 [ 52.105664] ? mprotect_fixup+0x640/0x640 [ 52.109778] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 52.114590] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.119580] SyS_mprotect+0x2a/0x40 [ 52.123190] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.127913] RIP: 0033:0x445d47 [ 52.131072] RSP: 002b:00007ffd03d470b8 EFLAGS: 00000246 ORIG_RAX: 000000000000000a [ 52.138752] RAX: ffffffffffffffda RBX: 0000000000800000 RCX: 0000000000445d47 [ 52.146078] RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00007f565d953000 [ 52.153319] RBP: 0000000000000082 R08: 00000000006dba00 R09: 00000000006dba00 [ 52.160558] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006da898 [ 52.167795] R13: 00000000006da898 R14: 0000000000000000 R15: 0000000000002710 [ 52.175051] [ 52.176647] Allocated by task 3060: [ 52.180244] save_stack_trace+0x16/0x20 [ 52.184193] save_stack+0x43/0xd0 [ 52.187613] kasan_kmalloc+0xad/0xe0 [ 52.191296] kmem_cache_alloc_trace+0x136/0x750 [ 52.195936] fanout_add+0xa50/0x1190 [ 52.199618] packet_setsockopt+0xfdc/0x1e80 [ 52.203909] SyS_setsockopt+0x189/0x360 [ 52.207851] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.212572] [ 52.214169] Freed by task 3003: [ 52.217414] save_stack_trace+0x16/0x20 [ 52.221356] save_stack+0x43/0xd0 [ 52.224776] kasan_slab_free+0x71/0xc0 [ 52.228630] kfree+0xca/0x250 [ 52.231703] packet_release+0xa8f/0xd70 [ 52.235642] sock_release+0x8d/0x1e0 [ 52.239322] sock_close+0x16/0x20 [ 52.242744] __fput+0x333/0x7f0 [ 52.245990] ____fput+0x15/0x20 [ 52.249239] task_work_run+0x199/0x270 [ 52.253098] do_exit+0xa52/0x1b40 [ 52.256518] do_group_exit+0x149/0x400 [ 52.260375] SyS_exit_group+0x1d/0x20 [ 52.264144] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.268864] [ 52.270465] The buggy address belongs to the object at ffff8801ce2beec0 [ 52.270465] which belongs to the cache kmalloc-4096 of size 4096 [ 52.283263] The buggy address is located 2176 bytes inside of