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-5,10.128.0.16' (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 syzkaller login: [ 43.318240] dev_remove_pack: ffff8801cbaa71c0 not found [ 43.352704] ================================================================== [ 43.360106] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 43.367618] Read of size 2 at addr ffff8801ca97d480 by task syzkaller073920/2996 [ 43.375139] [ 43.376746] CPU: 0 PID: 2996 Comm: syzkaller073920 Not tainted 4.13.0-mm1+ #7 [ 43.383988] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.393324] Call Trace: [ 43.395883] [ 43.398025] dump_stack+0x194/0x257 [ 43.401631] ? arch_local_irq_restore+0x53/0x53 [ 43.406277] ? show_regs_print_info+0x65/0x65 [ 43.410755] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 43.415924] print_address_description+0x73/0x250 [ 43.420740] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 43.425903] kasan_report+0x24e/0x340 [ 43.429686] __asan_report_load2_noabort+0x14/0x20 [ 43.434590] __netif_receive_skb_core+0x2be3/0x33d0 [ 43.439581] ? __bpf_address_lookup+0x2b0/0x2b0 [ 43.444254] ? nf_ingress+0x9f0/0x9f0 [ 43.448040] ? unwind_dump+0x4c0/0x4c0 [ 43.451904] ? check_noncircular+0x20/0x20 [ 43.456136] ? check_noncircular+0x20/0x20 [ 43.460353] ? __kernel_text_address+0xae/0xe0 [ 43.464915] ? unwind_get_return_address+0x61/0xa0 [ 43.469819] ? __save_stack_trace+0x7e/0xd0 [ 43.474122] ? print_usage_bug+0x480/0x480 [ 43.478346] ? find_held_lock+0x39/0x1d0 [ 43.482408] ? lock_downgrade+0x990/0x990 [ 43.486526] ? get_timespec64+0x75/0x170 [ 43.490583] ? lock_acquire+0x1d5/0x580 [ 43.494536] ? netif_receive_skb_internal+0x1d7/0x670 [ 43.499702] ? find_held_lock+0x39/0x1d0 [ 43.503754] ? pvclock_read_flags+0x160/0x160 [ 43.508233] ? mark_held_locks+0xb2/0x100 [ 43.512361] ? lock_acquire+0x1d5/0x580 [ 43.516310] ? netif_receive_skb_internal+0xa2/0x670 [ 43.521388] ? ktime_get_with_offset+0x2c1/0x420 [ 43.526122] ? lock_release+0xd70/0xd70 [ 43.530070] ? ktime_get+0x3a0/0x3a0 [ 43.533771] __netif_receive_skb+0x2c/0x1b0 [ 43.538067] ? __netif_receive_skb+0x2c/0x1b0 [ 43.542544] netif_receive_skb_internal+0x10b/0x670 [ 43.547538] ? dev_cpu_dead+0xb00/0xb00 [ 43.551493] ? __alloc_pages_nodemask+0xd80/0xd80 [ 43.556320] ? net_rx_action+0x1910/0x1910 [ 43.560529] ? __lock_is_held+0xbc/0x140 [ 43.564578] ? skb_gro_reset_offset+0x17b/0x300 [ 43.569228] napi_gro_receive+0x3d0/0x500 [ 43.573347] ? dev_gro_receive+0x19b0/0x19b0 [ 43.577734] ? eth_type_trans+0x2a3/0x650 [ 43.581856] ? eth_gro_receive+0x810/0x810 [ 43.586074] receive_buf+0xcc5/0x51f0 [ 43.589860] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 43.594421] ? print_usage_bug+0x480/0x480 [ 43.598628] ? __lock_acquire+0x732/0x4620 [ 43.602837] ? __lock_acquire+0x732/0x4620 [ 43.607056] ? __lock_acquire+0x732/0x4620 [ 43.611267] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.616464] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.621643] ? __lock_acquire+0x732/0x4620 [ 43.625858] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.631031] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.636205] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 43.642062] ? hrtimer_interrupt+0x1d4/0x5f0 [ 43.646439] ? hrtimer_interrupt+0x1d4/0x5f0 [ 43.650827] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.655998] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.660991] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.665978] ? unwind_dump+0x4c0/0x4c0 [ 43.669844] ? unwind_dump+0x4c0/0x4c0 [ 43.673716] ? __unwind_start+0x169/0x330 [ 43.677837] ? unwind_get_return_address+0x61/0xa0 [ 43.682744] ? __save_stack_trace+0x61/0xd0 [ 43.687042] ? get_stack_info+0x37/0x150 [ 43.691079] ? update_stack_state+0x225/0x700 [ 43.695553] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 43.701411] ? security_file_permission+0x11/0x1f0 [ 43.706318] ? find_held_lock+0x39/0x1d0 [ 43.710354] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.715349] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.720338] ? unwind_dump+0x4c0/0x4c0 [ 43.724200] ? unwind_dump+0x4c0/0x4c0 [ 43.728064] ? pvclock_read_flags+0x160/0x160 [ 43.732536] ? __unwind_start+0x169/0x330 [ 43.736658] ? print_usage_bug+0x480/0x480 [ 43.740862] ? unwind_get_return_address+0x61/0xa0 [ 43.745763] ? __save_stack_trace+0x61/0xd0 [ 43.750062] ? security_file_permission+0x11/0x1f0 [ 43.754967] ? save_stack_trace+0x16/0x20 [ 43.759090] ? __lock_acquire+0x20fd/0x4620 [ 43.763384] ? apic_timer_interrupt+0x9d/0xb0 [ 43.767853] ? vring_use_dma_api+0x7f/0xa0 [ 43.772061] ? vring_unmap_one+0x49/0x3d0 [ 43.776184] ? detach_buf+0x463/0x6a0 [ 43.779957] ? print_usage_bug+0x480/0x480 [ 43.784176] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 43.788905] ? common_interrupt+0x9d/0x9d [ 43.793028] ? detach_buf+0x6a0/0x6a0 [ 43.796805] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.801800] virtnet_poll+0x304/0xad0 [ 43.805584] ? receive_buf+0x51f0/0x51f0 [ 43.809612] ? unwind_dump+0x4c0/0x4c0 [ 43.813475] ? mark_held_locks+0xb2/0x100 [ 43.817596] ? net_rx_action+0x49b/0x1910 [ 43.821726] net_rx_action+0x792/0x1910 [ 43.825685] ? napi_complete_done+0x6c0/0x6c0 [ 43.830153] ? save_stack_trace+0x16/0x20 [ 43.834284] ? __lock_acquire+0x20fd/0x4620 [ 43.838603] ? child_wait_callback+0x210/0x210 [ 43.843166] ? put_pid+0x184/0x1f0 [ 43.846695] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.851861] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.857026] ? lock_downgrade+0x990/0x990 [ 43.861147] ? check_noncircular+0x20/0x20 [ 43.865357] ? __lock_is_held+0xbc/0x140 [ 43.869403] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.874393] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 43.879207] ? raise_softirq+0x490/0x490 [ 43.883238] ? lock_downgrade+0x990/0x990 [ 43.887360] ? print_usage_bug+0x480/0x480 [ 43.891571] ? lock_acquire+0x1d5/0x580 [ 43.895520] ? clockevents_program_event+0x163/0x2e0 [ 43.900599] ? trace_hardirqs_off+0xd/0x10 [ 43.904807] ? __napi_schedule+0x25e/0x370 [ 43.909017] ? netdev_info+0x170/0x170 [ 43.912875] ? check_noncircular+0x20/0x20 [ 43.917090] ? check_noncircular+0x20/0x20 [ 43.921296] ? __lock_is_held+0xbc/0x140 [ 43.925343] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.930331] ? __handle_irq_event_percpu+0x308/0x9d0 [ 43.935413] ? __lock_is_held+0xbc/0x140 [ 43.939460] __do_softirq+0x2bb/0xbd0 [ 43.943243] ? __softirqentry_text_start+0x8/0x8 [ 43.947972] ? do_raw_spin_trylock+0x190/0x190 [ 43.952525] ? handle_irq_event_percpu+0x141/0x1b0 [ 43.957441] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 43.962536] ? _raw_spin_lock+0x32/0x40 [ 43.966487] ? _raw_spin_unlock+0x22/0x30 [ 43.970611] ? handle_edge_irq+0x2b4/0x7c0 [ 43.974829] irq_exit+0x1d3/0x210 [ 43.978254] do_IRQ+0xf6/0x190 [ 43.981426] common_interrupt+0x9d/0x9d [ 43.985372] [ 43.987582] RIP: 0010:lock_acquire+0x256/0x580 [ 43.992136] RSP: 0018:ffff8801ce00fcb0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff6e [ 43.999828] RAX: dffffc0000000000 RBX: ffff8801cf290600 RCX: 0000000000000000 [ 44.007071] RDX: 1ffffffff0b592fd RSI: 0000000000000001 RDI: 0000000000000282 [ 44.014319] RBP: ffff8801ce00fda8 R08: 0000000000000000 R09: 0000000000000000 [ 44.021570] R10: 1ffff10039c01eb7 R11: 1ffff10039e52353 R12: 1ffff10039c01f9c [ 44.028814] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 [ 44.036099] ? lock_release+0xd70/0xd70 [ 44.040049] ? check_same_owner+0x320/0x320 [ 44.044348] ? kernel_wait4+0x26e/0x370 [ 44.048298] ? SyS_waitid+0x50/0x50 [ 44.051902] ? __might_sleep+0x95/0x190 [ 44.055854] __might_fault+0x13a/0x1d0 [ 44.059721] ? __might_fault+0xe0/0x1d0 [ 44.063673] _copy_from_user+0x2c/0x110 [ 44.067625] get_timespec64+0x75/0x170 [ 44.071483] ? timespec_trunc+0xe0/0xe0 [ 44.075427] ? nsecs_to_jiffies+0x30/0x30 [ 44.079553] ? syscall_return_slowpath+0x2b3/0x500 [ 44.084459] SyS_nanosleep+0x7e/0x1f0 [ 44.088234] ? hrtimer_nanosleep+0x860/0x860 [ 44.092616] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.097608] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.102347] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.107074] RIP: 0033:0x444720 [ 44.110236] RSP: 002b:00007ffddd6a4208 EFLAGS: 00000246 ORIG_RAX: 0000000000000023 [ 44.117923] RAX: ffffffffffffffda RBX: 00000000000010b1 RCX: 0000000000444720 [ 44.125170] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffddd6a4210 [ 44.132411] RBP: 0000000000000082 R08: 0000000000000bb4 R09: 0000000001bd7880 [ 44.139654] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000010b1 [ 44.146894] R13: 0000000000407290 R14: 0000000000000000 R15: 0000000000000000 [ 44.154153] [ 44.155755] Allocated by task 4320: [ 44.159357] save_stack_trace+0x16/0x20 [ 44.163309] save_stack+0x43/0xd0 [ 44.166753] kasan_kmalloc+0xad/0xe0 [ 44.170462] kmem_cache_alloc_trace+0x136/0x750 [ 44.175120] fanout_add+0xa50/0x1190 [ 44.178808] packet_setsockopt+0xfdc/0x1e80 [ 44.183120] SyS_setsockopt+0x189/0x360 [ 44.187069] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.191792] [ 44.193392] Freed by task 4234: [ 44.196645] save_stack_trace+0x16/0x20 [ 44.200602] save_stack+0x43/0xd0 [ 44.204036] kasan_slab_free+0x71/0xc0 [ 44.207894] kfree+0xca/0x250 [ 44.210971] packet_release+0xa8f/0xd70 [ 44.214923] sock_release+0x8d/0x1e0 [ 44.218621] sock_close+0x16/0x20 [ 44.222064] __fput+0x333/0x7f0 [ 44.225349] ____fput+0x15/0x20 [ 44.228604] task_work_run+0x199/0x270 [ 44.232463] do_exit+0xa52/0x1b40 [ 44.235884] do_group_exit+0x149/0x400 [ 44.239742] SyS_exit_group+0x1d/0x20 [ 44.243512] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.248234] [ 44.249838] The buggy address belongs to the object at ffff8801ca97cc00 [ 44.249838] which belongs to the cache kmalloc-4096 of size 4096 [ 44.262650] The buggy address is located 2176 bytes inside of [ 44.262650] 4096-byte region [ffff8801ca97cc00, ffff8801ca97dc00) [ 44.274677] The buggy address belongs to the page: [ 44.279590] page:ffffea00072a5f00 count:1 mapcount:0 mapping:ffff8801ca97cc00 index:0x0 compound_mapcount: 0 [ 44.289556] flags: 0x200000000008100(slab|head) [ 44.294199] raw: 0200000000008100 ffff8801ca97cc00 0000000000000000 0000000100000001 [ 44.302061] raw: ffffea00072a5e20 ffffea00072a5fa0 ffff8801dac00dc0 0000000000000000 [ 44.309923] page dumped because: kasan: bad access detected [ 44.315606] [ 44.317211] Memory state around the buggy address: