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-net-kasan-gce-7,10.128.15.219' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz7.router_solicitations = 0 executing program net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz6.router_solicitations = 0 executing program net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz2.router_solicitations = 0 executing program executing program net.ipv6.conf.syz1.accept_dad = 0 executing program net.ipv6.conf.syz1.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 syzkaller login: [ 31.439358] dev_remove_pack: ffff8801cc36d8c0 not found executing program executing program [ 31.530503] ================================================================== [ 31.537922] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 31.545427] Read of size 2 at addr ffff8801cbb84f80 by task syzkaller891394/3057 [ 31.552927] [ 31.554531] CPU: 0 PID: 3057 Comm: syzkaller891394 Not tainted 4.13.0+ #42 [ 31.561510] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.570839] Call Trace: [ 31.573392] [ 31.575520] dump_stack+0x194/0x257 [ 31.579121] ? arch_local_irq_restore+0x53/0x53 [ 31.583762] ? show_regs_print_info+0x65/0x65 [ 31.588234] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 31.593402] print_address_description+0x73/0x250 [ 31.598217] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 31.603379] kasan_report+0x24e/0x340 [ 31.607160] __asan_report_load2_noabort+0x14/0x20 [ 31.612061] __netif_receive_skb_core+0x2be3/0x33d0 [ 31.617051] ? __bpf_address_lookup+0x2b0/0x2b0 [ 31.621702] ? nf_ingress+0x9f0/0x9f0 [ 31.625492] ? unwind_dump+0x4c0/0x4c0 [ 31.629368] ? check_noncircular+0x20/0x20 [ 31.634077] ? __kernel_text_address+0xae/0xe0 [ 31.638633] ? unwind_get_return_address+0x61/0xa0 [ 31.643536] ? __save_stack_trace+0x7e/0xd0 [ 31.647834] ? depot_save_stack+0x12c/0x490 [ 31.652140] ? find_held_lock+0x39/0x1d0 [ 31.656187] ? lock_downgrade+0x990/0x990 [ 31.660304] ? kernel_wait4+0x1f5/0x370 [ 31.664264] ? lock_acquire+0x1d5/0x580 [ 31.668214] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 31.673375] ? find_held_lock+0x39/0x1d0 [ 31.677416] ? pvclock_read_flags+0x160/0x160 [ 31.681885] ? lock_downgrade+0x990/0x990 [ 31.686010] ? lock_acquire+0x1d5/0x580 [ 31.689954] ? netif_receive_skb_internal+0x93/0x5e0 [ 31.695035] ? ktime_get_with_offset+0x2c1/0x420 [ 31.699768] ? lock_release+0xd70/0xd70 [ 31.703713] ? ktime_get+0x3a0/0x3a0 [ 31.707417] __netif_receive_skb+0x2c/0x1b0 [ 31.711713] ? __netif_receive_skb+0x2c/0x1b0 [ 31.716184] netif_receive_skb_internal+0x10b/0x5e0 [ 31.721180] ? dev_cpu_dead+0xb00/0xb00 [ 31.725138] ? __alloc_pages_nodemask+0xd80/0xd80 [ 31.729957] ? net_rx_action+0x1910/0x1910 [ 31.734171] ? rcu_pm_notify+0xc0/0xc0 [ 31.738043] ? skb_gro_reset_offset+0x17b/0x300 [ 31.742691] napi_gro_receive+0x3d0/0x500 [ 31.746812] ? dev_gro_receive+0x19b0/0x19b0 [ 31.751199] ? eth_type_trans+0x2a3/0x650 [ 31.755337] ? eth_gro_receive+0x810/0x810 [ 31.759558] receive_buf+0xcc5/0x51f0 [ 31.763348] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 31.767932] ? switched_to_fair+0xb0/0xb0 [ 31.772061] ? __lock_acquire+0x732/0x4620 [ 31.776272] ? print_usage_bug+0x480/0x480 [ 31.780490] ? __lock_acquire+0x732/0x4620 [ 31.784700] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.789879] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.795052] ? find_held_lock+0x39/0x1d0 [ 31.799098] ? __lock_acquire+0x732/0x4620 [ 31.803315] ? print_usage_bug+0x480/0x480 [ 31.807539] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.812721] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 31.818588] ? hrtimer_interrupt+0x1d4/0x5f0 [ 31.822971] ? hrtimer_interrupt+0x1d4/0x5f0 [ 31.827359] ? check_noncircular+0x20/0x20 [ 31.831576] ? print_usage_bug+0x480/0x480 [ 31.835799] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.840804] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.845801] ? unwind_dump+0x4c0/0x4c0 [ 31.849665] ? unwind_dump+0x4c0/0x4c0 [ 31.853546] ? get_stack_info+0x37/0x150 [ 31.857587] ? update_stack_state+0x225/0x700 [ 31.862067] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 31.867933] ? lock_acquire+0x256/0x580 [ 31.871892] ? hrtimer_interrupt+0x1d4/0x5f0 [ 31.876286] ? save_stack_trace+0x16/0x20 [ 31.880415] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.885413] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.890410] ? unwind_dump+0x4c0/0x4c0 [ 31.894280] ? unwind_dump+0x4c0/0x4c0 [ 31.898151] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.903322] ? lock_downgrade+0x990/0x990 [ 31.907464] ? __kernel_text_address+0xae/0xe0 [ 31.912030] ? __unwind_start+0x169/0x330 [ 31.916156] ? print_usage_bug+0x480/0x480 [ 31.920368] ? unwind_get_return_address+0x61/0xa0 [ 31.925281] ? __save_stack_trace+0x61/0xd0 [ 31.929593] ? lock_acquire+0x256/0x580 [ 31.933551] ? save_stack_trace+0x16/0x20 [ 31.937683] ? __lock_acquire+0x20fd/0x4620 [ 31.941989] ? check_noncircular+0x20/0x20 [ 31.946206] ? vring_use_dma_api+0x7f/0xa0 [ 31.950417] ? vring_unmap_one+0x49/0x3d0 [ 31.954547] ? detach_buf+0x463/0x6a0 [ 31.958341] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 31.963088] ? common_interrupt+0x9d/0x9d [ 31.967219] ? detach_buf+0x6a0/0x6a0 [ 31.971005] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.976006] virtnet_poll+0x304/0xad0 [ 31.979798] ? receive_buf+0x51f0/0x51f0 [ 31.983842] ? unwind_dump+0x4c0/0x4c0 [ 31.987714] ? net_rx_action+0x49b/0x1910 [ 31.991846] net_rx_action+0x792/0x1910 [ 31.995816] ? napi_complete_done+0x6c0/0x6c0 [ 32.000296] ? save_stack_trace+0x16/0x20 [ 32.004427] ? __lock_acquire+0x20fd/0x4620 [ 32.008755] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.013955] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.019141] ? check_noncircular+0x20/0x20 [ 32.023362] ? check_noncircular+0x20/0x20 [ 32.027593] ? rcu_pm_notify+0xc0/0xc0 [ 32.031563] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.036573] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 32.041409] ? raise_softirq+0x490/0x490 [ 32.045461] ? lock_downgrade+0x990/0x990 [ 32.049731] ? lock_acquire+0x1d5/0x580 [ 32.053692] ? clockevents_program_event+0x163/0x2e0 [ 32.058783] ? trace_hardirqs_off+0xd/0x10 [ 32.062999] ? __napi_schedule+0x25e/0x370 [ 32.067218] ? netdev_info+0x170/0x170 [ 32.071088] ? check_noncircular+0x20/0x20 [ 32.075308] ? check_noncircular+0x20/0x20 [ 32.079539] ? rcu_pm_notify+0xc0/0xc0 [ 32.083416] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.088415] ? __handle_irq_event_percpu+0x308/0x9d0 [ 32.093511] ? rcu_pm_notify+0xc0/0xc0 [ 32.097391] __do_softirq+0x2bb/0xbd0 [ 32.101181] ? __softirqentry_text_start+0x8/0x8 [ 32.105922] ? do_raw_spin_trylock+0x190/0x190 [ 32.110483] ? handle_irq_event_percpu+0x141/0x1b0 [ 32.115397] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 32.120494] ? _raw_spin_lock+0x32/0x40 [ 32.124450] ? _raw_spin_unlock+0x22/0x30 [ 32.128580] ? handle_edge_irq+0x2b4/0x7c0 [ 32.132809] irq_exit+0x1d3/0x210 [ 32.136245] do_IRQ+0xf6/0x190 [ 32.139417] common_interrupt+0x9d/0x9d [ 32.143364] [ 32.145583] RIP: 0010:_raw_spin_unlock_irqrestore+0x5e/0xba [ 32.151267] RSP: 0018:ffff8801c0587a68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff6e [ 32.158961] RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 0000000000000000 [ 32.166213] RDX: 1ffffffff0b59435 RSI: 0000000000000001 RDI: 0000000000000282 [ 32.173480] RBP: ffff8801c0587a78 R08: 1ffff10039f6605c R09: 0000000000000000 [ 32.180740] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801cfb302a0 [ 32.187996] R13: ffff8801c0587d88 R14: ffff8801c0587d90 R15: ffff8801cfb302a0 [ 32.195284] remove_wait_queue+0x1b4/0x350 [ 32.199498] ? add_wait_queue+0x1bb/0x2d0 [ 32.203630] ? prepare_to_wait+0x4d0/0x4d0 [ 32.207856] do_wait+0x50a/0xa90 [ 32.211212] ? wait_consider_task+0x33c0/0x33c0 [ 32.215863] ? find_held_lock+0x39/0x1d0 [ 32.219917] ? lock_downgrade+0x990/0x990 [ 32.224051] ? __might_fault+0xe0/0x1d0 [ 32.228015] kernel_wait4+0x1f5/0x370 [ 32.231794] ? SyS_waitid+0x50/0x50 [ 32.235403] ? task_stopped_code+0x140/0x140 [ 32.239796] SYSC_wait4+0x134/0x140 [ 32.243400] ? kernel_wait4+0x370/0x370 [ 32.247351] ? put_timespec64+0xfc/0x180 [ 32.251386] ? nsecs_to_jiffies+0x30/0x30 [ 32.255512] ? done_path_create+0xcc/0x110 [ 32.259736] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 32.264561] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.269559] SyS_wait4+0x2c/0x40 [ 32.272902] ? SyS_wait4+0x2c/0x40 [ 32.276426] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.281156] RIP: 0033:0x407b9a [ 32.284321] RSP: 002b:00000000007ef898 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 32.292020] RAX: ffffffffffffffda RBX: 0000000000000020 RCX: 0000000000407b9a [ 32.299278] RDX: 0000000040000001 RSI: 00000000007ef8ac RDI: ffffffffffffffff [ 32.306529] RBP: 0000000000000082 R08: 0000000000000001 R09: 0000000000c5c940 [ 32.313783] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000020 [ 32.321030] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 [ 32.328297] [ 32.329900] Allocated by task 3283: [ 32.333505] save_stack_trace+0x16/0x20 [ 32.337454] save_stack+0x43/0xd0 [ 32.340889] kasan_kmalloc+0xad/0xe0 [ 32.344585] kmem_cache_alloc_trace+0x136/0x750 [ 32.349241] fanout_add+0xa50/0x1190 [ 32.352934] packet_setsockopt+0xfdc/0x1e80 [ 32.357241] SyS_setsockopt+0x189/0x360 [ 32.361198] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.365924] [ 32.367527] Freed by task 3219: [ 32.370788] save_stack_trace+0x16/0x20 [ 32.374736] save_stack+0x43/0xd0 [ 32.378179] kasan_slab_free+0x71/0xc0 [ 32.382039] kfree+0xca/0x250 [ 32.385121] packet_release+0xa8f/0xd70 [ 32.389072] sock_release+0x8d/0x1e0 [ 32.392760] sock_close+0x16/0x20 [ 32.396202] __fput+0x333/0x7f0 [ 32.399457] ____fput+0x15/0x20 [ 32.402710] task_work_run+0x199/0x270 [ 32.406572] do_exit+0xa52/0x1b40 [ 32.410001] do_group_exit+0x149/0x400 [ 32.413862] SyS_exit_group+0x1d/0x20 [ 32.417637] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.422363] [ 32.423966] The buggy address belongs to the object at ffff8801cbb84700 [ 32.423966] which belongs to the cache kmalloc-4096 of size 4096 [ 32.436779] The buggy address is located 2176 bytes inside of [ 32.436779] 4096-byte region [ffff8801cbb84700, ffff8801cbb85700) [ 32.448808] The buggy address belongs to the page: [ 32.453720] page:ffffea00072ee100 count:1 mapcount:0 mapping:ffff8801cbb84700 index:0x0 compound_mapcount: 0 [ 32.463681] flags: 0x200000000008100(slab|head) [ 32.468328] raw: 0200000000008100 ffff8801cbb84700 0000000000000000 0000000100000001 [ 32.476188] raw: ffffea00072e5120 ffffea00072ef4a0 ffff8801dac00dc0 0000000000000000 [ 32.484045] page dumped because: kasan: bad access detected [ 32.489728] [ 32.491327] Memory state around the buggy address: [ 32.496232] ffff8801cbb84e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.503574] ffff8801cbb84f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.510920] >ffff8801cbb84f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.518258] ^ [ 32.521598] ffff8801cbb85000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb