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.33' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 54.184747] dev_remove_pack: ffff8801cc3e3640 not found executing program [ 54.258025] ================================================================== [ 54.265431] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 54.272947] Read of size 2 at addr ffff8801c9c5eb80 by task syzkaller169921/4178 [ 54.280448] [ 54.282050] CPU: 0 PID: 4178 Comm: syzkaller169921 Not tainted 4.13.0-mm1+ #7 [ 54.289291] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.298624] Call Trace: [ 54.301176] [ 54.303310] dump_stack+0x194/0x257 [ 54.306913] ? arch_local_irq_restore+0x53/0x53 [ 54.311562] ? show_regs_print_info+0x65/0x65 [ 54.316034] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 54.321201] print_address_description+0x73/0x250 [ 54.326017] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 54.331180] kasan_report+0x24e/0x340 [ 54.334956] __asan_report_load2_noabort+0x14/0x20 [ 54.339868] __netif_receive_skb_core+0x2be3/0x33d0 [ 54.344857] ? __bpf_address_lookup+0x2b0/0x2b0 [ 54.349509] ? nf_ingress+0x9f0/0x9f0 [ 54.353282] ? unwind_dump+0x4c0/0x4c0 [ 54.357145] ? check_noncircular+0x20/0x20 [ 54.361370] ? check_noncircular+0x20/0x20 [ 54.365578] ? __kernel_text_address+0xae/0xe0 [ 54.370130] ? unwind_get_return_address+0x61/0xa0 [ 54.375044] ? __save_stack_trace+0x7e/0xd0 [ 54.379359] ? print_usage_bug+0x480/0x480 [ 54.383576] ? find_held_lock+0x39/0x1d0 [ 54.387632] ? lock_downgrade+0x990/0x990 [ 54.391756] ? entry_SYSCALL_64_fastpath+0x1f/0xbe [ 54.396662] ? lock_acquire+0x1d5/0x580 [ 54.400610] ? netif_receive_skb_internal+0x1d7/0x670 [ 54.405774] ? find_held_lock+0x39/0x1d0 [ 54.409822] ? pvclock_read_flags+0x160/0x160 [ 54.414288] ? mark_held_locks+0xb2/0x100 [ 54.418414] ? lock_acquire+0x1d5/0x580 [ 54.422358] ? netif_receive_skb_internal+0xa2/0x670 [ 54.427434] ? ktime_get_with_offset+0x2c1/0x420 [ 54.432183] ? lock_release+0xd70/0xd70 [ 54.436126] ? ktime_get+0x3a0/0x3a0 [ 54.439825] __netif_receive_skb+0x2c/0x1b0 [ 54.444128] ? __netif_receive_skb+0x2c/0x1b0 [ 54.448600] netif_receive_skb_internal+0x10b/0x670 [ 54.453590] ? dev_cpu_dead+0xb00/0xb00 [ 54.457537] ? __alloc_pages_nodemask+0xd80/0xd80 [ 54.462354] ? net_rx_action+0x1910/0x1910 [ 54.466563] ? __lock_is_held+0xbc/0x140 [ 54.470605] ? skb_gro_reset_offset+0x17b/0x300 [ 54.475249] napi_gro_receive+0x3d0/0x500 [ 54.479370] ? dev_gro_receive+0x19b0/0x19b0 [ 54.483752] ? eth_type_trans+0x2a3/0x650 [ 54.487889] ? eth_gro_receive+0x810/0x810 [ 54.492111] receive_buf+0xcc5/0x51f0 [ 54.495909] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 54.500473] ? print_usage_bug+0x480/0x480 [ 54.504707] ? __lock_acquire+0x732/0x4620 [ 54.508914] ? unwind_get_return_address+0x61/0xa0 [ 54.513818] ? __save_stack_trace+0x61/0xd0 [ 54.518209] ? check_noncircular+0x20/0x20 [ 54.522417] ? rcu_report_qs_rnp+0x613/0x880 [ 54.526806] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 54.531978] ? print_usage_bug+0x480/0x480 [ 54.536191] ? find_held_lock+0x39/0x1d0 [ 54.540228] ? find_held_lock+0x39/0x1d0 [ 54.544271] ? lock_downgrade+0x990/0x990 [ 54.548392] ? check_noncircular+0x20/0x20 [ 54.552598] ? check_noncircular+0x20/0x20 [ 54.556810] ? pvclock_read_flags+0x160/0x160 [ 54.561281] ? print_usage_bug+0x480/0x480 [ 54.565501] ? print_usage_bug+0x480/0x480 [ 54.569709] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 54.574798] ? check_noncircular+0x20/0x20 [ 54.579003] ? trace_hardirqs_on+0xd/0x10 [ 54.583129] ? print_usage_bug+0x480/0x480 [ 54.587339] ? apic_timer_interrupt+0x9d/0xb0 [ 54.591812] ? find_held_lock+0x39/0x1d0 [ 54.595855] ? __lock_acquire+0x732/0x4620 [ 54.600069] ? __lock_acquire+0x732/0x4620 [ 54.604280] ? get_stack_info+0x37/0x150 [ 54.608325] ? update_stack_state+0x225/0x700 [ 54.612800] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 54.617981] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 54.622970] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 54.627957] ? unwind_dump+0x4c0/0x4c0 [ 54.631820] ? unwind_dump+0x4c0/0x4c0 [ 54.635686] ? hrtimer_active+0x2fb/0x410 [ 54.639813] ? check_noncircular+0x20/0x20 [ 54.644023] ? check_noncircular+0x20/0x20 [ 54.648226] ? __unwind_start+0x169/0x330 [ 54.652345] ? print_usage_bug+0x480/0x480 [ 54.656551] ? unwind_get_return_address+0x61/0xa0 [ 54.661453] ? __save_stack_trace+0x61/0xd0 [ 54.665763] ? check_noncircular+0x20/0x20 [ 54.669972] ? vring_use_dma_api+0x7f/0xa0 [ 54.674179] ? vring_unmap_one+0x49/0x3d0 [ 54.678301] ? detach_buf+0x463/0x6a0 [ 54.682073] ? print_usage_bug+0x480/0x480 [ 54.686290] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 54.691017] ? common_interrupt+0x9d/0x9d [ 54.695139] ? detach_buf+0x6a0/0x6a0 [ 54.698914] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 54.703907] virtnet_poll+0x304/0xad0 [ 54.707688] ? receive_buf+0x51f0/0x51f0 [ 54.711718] ? unwind_dump+0x4c0/0x4c0 [ 54.715588] ? mark_held_locks+0xb2/0x100 [ 54.719715] ? net_rx_action+0x49b/0x1910 [ 54.723840] net_rx_action+0x792/0x1910 [ 54.727801] ? napi_complete_done+0x6c0/0x6c0 [ 54.732265] ? save_stack_trace+0x16/0x20 [ 54.736384] ? __lock_acquire+0x20fd/0x4620 [ 54.740680] ? __lock_is_held+0xbc/0x140 [ 54.744721] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 54.749886] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 54.755047] ? kvm_sched_clock_read+0x25/0x40 [ 54.759536] ? __lock_is_held+0xbc/0x140 [ 54.763580] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.768570] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 54.773385] ? raise_softirq+0x490/0x490 [ 54.777416] ? lock_downgrade+0x990/0x990 [ 54.781537] ? print_usage_bug+0x480/0x480 [ 54.785743] ? lock_acquire+0x1d5/0x580 [ 54.789694] ? clockevents_program_event+0x163/0x2e0 [ 54.794773] ? trace_hardirqs_off+0xd/0x10 [ 54.798979] ? __napi_schedule+0x25e/0x370 [ 54.803186] ? netdev_info+0x170/0x170 [ 54.807052] ? check_noncircular+0x20/0x20 [ 54.811257] ? __lock_is_held+0xbc/0x140 [ 54.815290] ? check_noncircular+0x20/0x20 [ 54.819497] ? __lock_is_held+0xbc/0x140 [ 54.823552] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.828540] ? __handle_irq_event_percpu+0x308/0x9d0 [ 54.833621] ? __lock_is_held+0xbc/0x140 [ 54.837671] __do_softirq+0x2bb/0xbd0 [ 54.841454] ? __softirqentry_text_start+0x8/0x8 [ 54.846182] ? do_raw_spin_trylock+0x190/0x190 [ 54.850735] ? handle_irq_event_percpu+0x141/0x1b0 [ 54.855646] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 54.860732] ? _raw_spin_lock+0x32/0x40 [ 54.864685] ? _raw_spin_unlock+0x22/0x30 [ 54.868807] ? handle_edge_irq+0x2b4/0x7c0 [ 54.873026] irq_exit+0x1d3/0x210 [ 54.876449] do_IRQ+0xf6/0x190 [ 54.879620] common_interrupt+0x9d/0x9d [ 54.884719] [ 54.886927] RIP: 0010:do_mmap+0x0/0xd50 [ 54.890870] RSP: 0018:ffff8801ca1afd50 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff6e [ 54.898552] RAX: ffff8801ca32a2c0 RBX: 1ffff10039435fb6 RCX: 0000000000000003 [ 54.905795] RDX: 0000000000fff000 RSI: 0000000020000000 RDI: 0000000000000000 [ 54.913037] RBP: ffff8801ca1afe78 R08: 0000000000000032 R09: 0000000000000000 [ 54.920289] R10: 1ffff10039435e9b R11: ffff8801ca1afdd0 R12: ffff8801ca1afe50 [ 54.927529] R13: fffffffffffffffc R14: ffff8801ca1afe10 R15: 0000000000000032 [ 54.934800] ? vm_mmap_pgoff+0x1de/0x280 [ 54.938854] ? vma_is_stack_for_current+0xa0/0xa0 [ 54.943674] ? do_page_fault+0xee/0x720 [ 54.947630] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.952108] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 54.957106] SyS_mmap_pgoff+0x23b/0x5f0 [ 54.961055] ? find_mergeable_anon_vma+0xd0/0xd0 [ 54.965784] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 54.970783] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.975518] SyS_mmap+0x16/0x20 [ 54.978771] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 54.983498] RIP: 0033:0x44b4f9 [ 54.986658] RSP: 002b:00007f33a35facf8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 54.994341] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044b4f9 [ 55.001581] RDX: 0000000000000003 RSI: 0000000000fff000 RDI: 0000000020000000 [ 55.008830] RBP: 0000000000000082 R08: ffffffffffffffff R09: 0000000000000000 [ 55.016176] R10: 0000000000000032 R11: 0000000000000212 R12: 0000000000000000 [ 55.023432] R13: 00007ffc9e2c867f R14: 00007f33a35fb9c0 R15: 0000000000000000 [ 55.030778] [ 55.032378] Allocated by task 4175: [ 55.035977] save_stack_trace+0x16/0x20 [ 55.039921] save_stack+0x43/0xd0 [ 55.043343] kasan_kmalloc+0xad/0xe0 [ 55.047026] kmem_cache_alloc_trace+0x136/0x750 [ 55.051665] fanout_add+0xa50/0x1190 [ 55.055713] packet_setsockopt+0xfdc/0x1e80 [ 55.060009] SyS_setsockopt+0x189/0x360 [ 55.063954] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 55.068678] [ 55.070275] Freed by task 4167: [ 55.073526] save_stack_trace+0x16/0x20 [ 55.077468] save_stack+0x43/0xd0 [ 55.080889] kasan_slab_free+0x71/0xc0 [ 55.084746] kfree+0xca/0x250 [ 55.087820] packet_release+0xa8f/0xd70 [ 55.091764] sock_release+0x8d/0x1e0 [ 55.095447] sock_close+0x16/0x20 [ 55.098871] __fput+0x333/0x7f0 [ 55.102120] ____fput+0x15/0x20 [ 55.105369] task_work_run+0x199/0x270 [ 55.109226] do_exit+0xa52/0x1b40 [ 55.112649] do_group_exit+0x149/0x400 [ 55.116505] SyS_exit_group+0x1d/0x20 [ 55.120277] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 55.125001] [ 55.126606] The buggy address belongs to the object at ffff8801c9c5e300 [ 55.126606] which belongs to the cache kmalloc-4096 of size 4096 [ 55.139404] The buggy address is located 2176 bytes inside of [ 55.139404] 4096-byte region [ffff8801c9c5e300, ffff8801c9c5f300) [ 55.151421] The buggy address belongs to the page: [ 55.156318] page:ffffea0007271780 count:1 mapcount:0 mapping:ffff8801c9c5e300 index:0x0 compound_mapcount: 0 [ 55.166261] flags: 0x200000000008100(slab|head) [ 55.170900] raw: 0200000000008100 ffff8801c9c5e300 0000000000000000 0000000100000001 [ 55.178752] raw: ffffea00072716a0 ffffea00072719a0 ffff8801dac00dc0 0000000000000000 [ 55.186600] page dumped because: kasan: bad access detected [ 55.192290] [ 55.193889] Memory state around the buggy address: [ 55.198805] ffff8801c9c5ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.206134] ffff8801c9c5eb00: fb fb fb fb fb fb fb fb fb fb fb fb f