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-kasan-gce-8,10.128.15.211' (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 executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 34.654283] dev_remove_pack: ffff8801c9f1cd00 not found executing program executing program [ 34.763792] ================================================================== [ 34.771216] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 34.778723] Read of size 2 at addr ffff8801c9dfb040 by task syzkaller278977/2989 [ 34.786227] [ 34.787830] CPU: 1 PID: 2989 Comm: syzkaller278977 Not tainted 4.13.0+ #75 [ 34.794823] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.804162] Call Trace: [ 34.806722] [ 34.808855] dump_stack+0x194/0x257 executing program executing program [ 34.812477] ? arch_local_irq_restore+0x53/0x53 [ 34.817122] ? show_regs_print_info+0x65/0x65 [ 34.821603] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 34.826779] print_address_description+0x73/0x250 [ 34.831644] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 34.836816] kasan_report+0x24e/0x340 [ 34.840598] __asan_report_load2_noabort+0x14/0x20 [ 34.845499] __netif_receive_skb_core+0x2be3/0x33d0 [ 34.850489] ? __bpf_address_lookup+0x2b0/0x2b0 [ 34.855140] ? nf_ingress+0x9f0/0x9f0 [ 34.858929] ? unwind_dump+0x4c0/0x4c0 [ 34.862806] ? check_noncircular+0x20/0x20 [ 34.867100] ? __kernel_text_address+0xae/0xe0 [ 34.871659] ? unwind_get_return_address+0x61/0xa0 [ 34.876573] ? __save_stack_trace+0x7e/0xd0 [ 34.880875] ? print_usage_bug+0x480/0x480 [ 34.885094] ? find_held_lock+0x39/0x1d0 [ 34.889141] ? lock_downgrade+0x990/0x990 [ 34.893269] ? get_timespec64+0x75/0x170 [ 34.897314] ? lock_acquire+0x1d5/0x580 [ 34.901262] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 34.906431] ? find_held_lock+0x39/0x1d0 [ 34.910476] ? pvclock_read_flags+0x160/0x160 [ 34.914943] ? mark_held_locks+0xb2/0x100 [ 34.919073] ? lock_acquire+0x1d5/0x580 [ 34.923023] ? netif_receive_skb_internal+0x93/0x5e0 [ 34.928102] ? ktime_get_with_offset+0x2c1/0x420 [ 34.932834] ? lock_release+0xd70/0xd70 [ 34.936780] ? ktime_get+0x3a0/0x3a0 [ 34.940487] __netif_receive_skb+0x2c/0x1b0 [ 34.944781] ? __netif_receive_skb+0x2c/0x1b0 [ 34.949264] netif_receive_skb_internal+0x10b/0x5e0 [ 34.954266] ? dev_cpu_dead+0xb00/0xb00 [ 34.958212] ? __alloc_pages_nodemask+0xd80/0xd80 [ 34.963031] ? net_rx_action+0x1910/0x1910 [ 34.967258] ? __lock_is_held+0xbc/0x140 [ 34.971300] ? skb_gro_reset_offset+0x17b/0x300 [ 34.975962] napi_gro_receive+0x3d0/0x500 [ 34.980085] ? dev_gro_receive+0x19b0/0x19b0 [ 34.984469] ? eth_type_trans+0x2a3/0x650 [ 34.988599] ? eth_gro_receive+0x810/0x810 [ 34.992816] receive_buf+0xcc5/0x51f0 [ 34.996615] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 35.001210] ? __lock_acquire+0x732/0x4620 [ 35.005432] ? print_usage_bug+0x480/0x480 [ 35.009654] ? enqueue_task_fair+0x26ff/0x88e0 [ 35.014232] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.019414] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 35.025279] ? tick_do_update_jiffies64.part.16+0x17e/0x270 [ 35.030982] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.035979] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.040979] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.045974] ? unwind_dump+0x4c0/0x4c0 [ 35.049846] ? print_usage_bug+0x480/0x480 [ 35.054069] ? __unwind_start+0x169/0x330 [ 35.058202] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 35.064075] ? print_usage_bug+0x480/0x480 [ 35.068302] ? smp_apic_timer_interrupt+0x177/0x710 [ 35.073304] ? tick_do_update_jiffies64.part.16+0x17e/0x270 [ 35.079009] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.084011] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.089003] ? unwind_dump+0x4c0/0x4c0 [ 35.092867] ? unwind_dump+0x4c0/0x4c0 [ 35.096737] ? __unwind_start+0x169/0x330 [ 35.100859] ? unwind_get_return_address+0x61/0xa0 [ 35.105762] ? __save_stack_trace+0x61/0xd0 [ 35.110066] ? smp_apic_timer_interrupt+0x177/0x710 [ 35.115063] ? save_stack_trace+0x16/0x20 [ 35.119191] ? __lock_acquire+0x20fd/0x4620 [ 35.123498] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.128495] ? unwind_dump+0x4c0/0x4c0 [ 35.132370] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.137550] ? __unwind_start+0x169/0x330 [ 35.141689] ? print_usage_bug+0x480/0x480 [ 35.145907] ? unwind_get_return_address+0x61/0xa0 [ 35.150826] ? __save_stack_trace+0x61/0xd0 [ 35.155133] ? kasan_kmalloc+0x16/0xe0 [ 35.159001] ? save_stack_trace+0x16/0x20 [ 35.163125] ? __lock_acquire+0x20fd/0x4620 [ 35.167427] ? vring_use_dma_api+0x7f/0xa0 [ 35.171639] ? vring_unmap_one+0x49/0x3d0 [ 35.175763] ? detach_buf+0x463/0x6a0 [ 35.179535] ? print_usage_bug+0x480/0x480 [ 35.183752] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 35.188481] ? common_interrupt+0x9d/0x9d [ 35.192608] ? detach_buf+0x6a0/0x6a0 [ 35.196384] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 35.201377] virtnet_poll+0x304/0xad0 [ 35.205161] ? receive_buf+0x51f0/0x51f0 [ 35.209206] ? unwind_dump+0x4c0/0x4c0 [ 35.213069] ? mark_held_locks+0xb2/0x100 [ 35.217191] ? net_rx_action+0x49b/0x1910 [ 35.221319] net_rx_action+0x792/0x1910 [ 35.225277] ? napi_complete_done+0x6c0/0x6c0 [ 35.229760] ? save_stack_trace+0x16/0x20 [ 35.233882] ? __lock_acquire+0x20fd/0x4620 [ 35.238186] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.242664] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.247832] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.253011] ? del_timer_sync+0x240/0x240 [ 35.257130] ? __lock_is_held+0xbc/0x140 [ 35.261801] ? __lock_is_held+0xbc/0x140 [ 35.265852] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.271451] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 35.276269] ? raise_softirq+0x490/0x490 [ 35.280302] ? lock_downgrade+0x990/0x990 [ 35.284438] ? print_usage_bug+0x480/0x480 [ 35.288662] ? lock_acquire+0x1d5/0x580 [ 35.292608] ? clockevents_program_event+0x163/0x2e0 [ 35.297686] ? trace_hardirqs_off+0xd/0x10 [ 35.301897] ? __napi_schedule+0x25e/0x370 [ 35.306106] ? netdev_info+0x170/0x170 [ 35.309978] ? check_noncircular+0x20/0x20 [ 35.314192] ? rcu_pm_notify+0xc0/0xc0 [ 35.318055] ? check_noncircular+0x20/0x20 [ 35.322265] ? __lock_is_held+0xbc/0x140 [ 35.326311] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.331301] ? __handle_irq_event_percpu+0x308/0x9d0 [ 35.336383] ? __lock_is_held+0xbc/0x140 [ 35.340435] __do_softirq+0x2bb/0xbd0 [ 35.344222] ? __softirqentry_text_start+0x8/0x8 [ 35.348950] ? do_raw_spin_trylock+0x190/0x190 [ 35.353511] ? handle_irq_event_percpu+0x141/0x1b0 [ 35.358413] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 35.363514] ? _raw_spin_lock+0x32/0x40 [ 35.367464] ? _raw_spin_unlock+0x22/0x30 [ 35.371585] ? handle_edge_irq+0x2b4/0x7c0 [ 35.375808] irq_exit+0x1d3/0x210 [ 35.379237] do_IRQ+0xf6/0x190 [ 35.382406] common_interrupt+0x9d/0x9d [ 35.386350] [ 35.388565] RIP: 0010:lock_acquire+0x256/0x580 [ 35.393117] RSP: 0018:ffff8801ce657cb0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff1e [ 35.400804] RAX: dffffc0000000000 RBX: ffff8801cebf61c0 RCX: 0000000000000000 [ 35.408046] RDX: 1ffffffff0b592fd RSI: 0000000000000001 RDI: 0000000000000282 [ 35.415290] RBP: ffff8801ce657da8 R08: 0000000000000000 R09: 0000000000000000 [ 35.422542] R10: 1ffff10039ccaeb7 R11: 1ffff10039d7eecb R12: 1ffff10039ccaf9c [ 35.429783] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 [ 35.437060] ? lock_release+0xd70/0xd70 [ 35.441009] ? check_same_owner+0x320/0x320 [ 35.445302] ? kernel_wait4+0x26e/0x370 [ 35.449252] ? SyS_waitid+0x50/0x50 [ 35.452861] ? __might_sleep+0x95/0x190 [ 35.456824] __might_fault+0x13a/0x1d0 [ 35.460682] ? __might_fault+0xe0/0x1d0 [ 35.464631] _copy_from_user+0x2c/0x110 [ 35.468582] get_timespec64+0x75/0x170 [ 35.472442] ? timespec_trunc+0xe0/0xe0 [ 35.476385] ? nsecs_to_jiffies+0x30/0x30 [ 35.480520] SyS_nanosleep+0x7e/0x1f0 [ 35.484295] ? hrtimer_nanosleep+0x860/0x860 [ 35.488676] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.493667] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.498400] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.503129] RIP: 0033:0x444580 [ 35.506305] RSP: 002b:00007ffda49b5cf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000023 [ 35.513993] RAX: ffffffffffffffda RBX: 00000000000012d6 RCX: 0000000000444580 [ 35.521235] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffda49b5d00 [ 35.528476] RBP: 0000000000000082 R08: 0000000000000bad R09: 000000000255e880 [ 35.535729] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000012d6 [ 35.542971] R13: 00000000004070f0 R14: 0000000000000000 R15: 0000000000000000 [ 35.550232] [ 35.551834] Allocated by task 4807: [ 35.555435] save_stack_trace+0x16/0x20 [ 35.559381] save_stack+0x43/0xd0 [ 35.562802] kasan_kmalloc+0xad/0xe0 [ 35.566484] kmem_cache_alloc_trace+0x136/0x750 [ 35.571128] fanout_add+0xa50/0x1190 [ 35.574815] packet_setsockopt+0xfdc/0x1e80 [ 35.579108] SyS_setsockopt+0x189/0x360 [ 35.583055] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.587779] [ 35.589379] Freed by task 4728: [ 35.592628] save_stack_trace+0x16/0x20 [ 35.596570] save_stack+0x43/0xd0 [ 35.599994] kasan_slab_free+0x71/0xc0 [ 35.603861] kfree+0xca/0x250 [ 35.606940] packet_release+0xa8f/0xd70 [ 35.610883] sock_release+0x8d/0x1e0 [ 35.614565] sock_close+0x16/0x20 [ 35.617987] __fput+0x333/0x7f0 [ 35.621237] ____fput+0x15/0x20 [ 35.624486] task_work_run+0x199/0x270 [ 35.628349] do_exit+0xa52/0x1b40 [ 35.631772] do_group_exit+0x149/0x400 [ 35.635637] SyS_exit_group+0x1d/0x20 [ 35.639408] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.644132] [ 35.645733] The buggy address belongs to the object at ffff8801c9dfa7c0 [ 35.645733] which belongs to the cache kmalloc-4096 of size 4096 [ 35.658533] The buggy address is located 2176 bytes inside of [ 35.658533] 4096-byte region [ffff8801c9dfa7c0, ffff8801c9dfb7c0) [ 35.670556] The buggy address belongs to the page: [ 35.675460] page:ffffea0007277e80 count:1 mapcount:0 mapping:ffff8801c9dfa7c0 index:0x0 compound_mapcount: 0 [ 35.685419] flags: 0x200000000008100(slab|head) [ 35.690063] raw: 0200000000008100 ffff8801c9dfa7c0 0000000000000000 0000000100000001 [ 35.697913] raw: ffffea0007270920 ffffea0007277ca0 ffff8801dac00dc0 0000000000000000 [ 35.705761] page dumped because: kasan: bad access detected [ 35.711439] [ 35.713034] Memory state around the buggy address: [ 35.717943] ffff8801c9dfaf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.725286] ffff8801c9dfaf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.732632] >ffff8801c9dfb000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.739960] ^ [ 35.745386] ffff8801c9dfb080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.752714] ffff8801c9dfb100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.760044] ================================================================== executing program executing program