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-1,10.128.0.16' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz7.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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 42.657692] dev_remove_pack: ffff8801c5304a80 not found executing program executing program executing program executing program executing program executing program executing program [ 42.759158] ================================================================== [ 42.766607] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 42.774135] Read of size 2 at addr ffff8801c5296c00 by task syzkaller175801/4919 [ 42.781654] [ 42.783282] CPU: 0 PID: 4919 Comm: syzkaller175801 Not tainted 4.13.0+ #43 [ 42.790289] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.799634] Call Trace: [ 42.802193] [ 42.804337] dump_stack+0x194/0x257 [ 42.807959] ? arch_local_irq_restore+0x53/0x53 [ 42.812613] ? show_regs_print_info+0x65/0x65 [ 42.817121] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 42.822298] print_address_description+0x73/0x250 [ 42.827114] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 42.832283] kasan_report+0x24e/0x340 [ 42.836062] __asan_report_load2_noabort+0x14/0x20 [ 42.840976] __netif_receive_skb_core+0x2be3/0x33d0 [ 42.845975] ? __bpf_address_lookup+0x2b0/0x2b0 [ 42.850628] ? nf_ingress+0x9f0/0x9f0 [ 42.854403] ? unwind_dump+0x4c0/0x4c0 [ 42.858281] ? check_noncircular+0x20/0x20 [ 42.862487] ? __kernel_text_address+0xae/0xe0 [ 42.867050] ? unwind_get_return_address+0x61/0xa0 [ 42.871967] ? __save_stack_trace+0x7e/0xd0 [ 42.876283] ? depot_save_stack+0x12c/0x490 [ 42.880601] ? find_held_lock+0x39/0x1d0 [ 42.884655] ? lock_downgrade+0x990/0x990 [ 42.888775] ? __vfs_write+0x68a/0x970 [ 42.892643] ? lock_acquire+0x1d5/0x580 [ 42.896589] ? netif_receive_skb_internal+0x1d7/0x670 [ 42.901754] ? find_held_lock+0x39/0x1d0 [ 42.905798] ? pvclock_read_flags+0x160/0x160 [ 42.910281] ? lock_downgrade+0x990/0x990 [ 42.914446] ? lock_acquire+0x1d5/0x580 [ 42.918396] ? netif_receive_skb_internal+0xa2/0x670 [ 42.923474] ? ktime_get_with_offset+0x2c1/0x420 [ 42.928227] ? lock_release+0xd70/0xd70 [ 42.932180] ? ktime_get+0x3a0/0x3a0 [ 42.935897] __netif_receive_skb+0x2c/0x1b0 [ 42.940197] ? __netif_receive_skb+0x2c/0x1b0 [ 42.945093] netif_receive_skb_internal+0x10b/0x670 [ 42.950088] ? dev_cpu_dead+0xb00/0xb00 [ 42.954040] ? __alloc_pages_nodemask+0xd80/0xd80 [ 42.958866] ? net_rx_action+0x1910/0x1910 [ 42.963077] ? rcu_pm_notify+0xc0/0xc0 [ 42.966943] ? skb_gro_reset_offset+0x17b/0x300 [ 42.971589] napi_gro_receive+0x3d0/0x500 [ 42.975713] ? dev_gro_receive+0x19b0/0x19b0 [ 42.980096] ? eth_type_trans+0x2a3/0x650 [ 42.984219] ? eth_gro_receive+0x810/0x810 [ 42.988454] receive_buf+0xcc5/0x51f0 [ 42.992245] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 42.996805] ? print_usage_bug+0x480/0x480 [ 43.001017] ? __lock_acquire+0x732/0x4620 [ 43.005239] ? __lock_acquire+0x732/0x4620 [ 43.009475] ? __lock_acquire+0x732/0x4620 [ 43.013685] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.018865] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.024045] ? __lock_acquire+0x732/0x4620 [ 43.028270] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.033446] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.038634] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 43.044498] ? hrtimer_interrupt+0x1d4/0x5f0 [ 43.048876] ? hrtimer_interrupt+0x1d4/0x5f0 [ 43.053261] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.058448] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.063447] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.068444] ? unwind_dump+0x4c0/0x4c0 [ 43.072309] ? unwind_dump+0x4c0/0x4c0 [ 43.076181] ? __unwind_start+0x169/0x330 [ 43.080305] ? unwind_get_return_address+0x61/0xa0 [ 43.085208] ? __save_stack_trace+0x61/0xd0 [ 43.089507] ? get_stack_info+0x37/0x150 [ 43.093543] ? update_stack_state+0x225/0x700 [ 43.098030] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 43.103895] ? lock_is_held_type+0x99/0x210 [ 43.108193] ? find_held_lock+0x39/0x1d0 [ 43.112240] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.117236] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.122231] ? unwind_dump+0x4c0/0x4c0 [ 43.126105] ? unwind_dump+0x4c0/0x4c0 [ 43.129970] ? check_noncircular+0x20/0x20 [ 43.134176] ? pvclock_read_flags+0x160/0x160 [ 43.138649] ? __unwind_start+0x169/0x330 [ 43.142770] ? print_usage_bug+0x480/0x480 [ 43.146978] ? unwind_get_return_address+0x61/0xa0 [ 43.151882] ? __save_stack_trace+0x61/0xd0 [ 43.156184] ? lock_is_held_type+0x99/0x210 [ 43.160480] ? save_stack_trace+0x16/0x20 [ 43.164601] ? __lock_acquire+0x20fd/0x4620 [ 43.168900] ? vring_use_dma_api+0x7f/0xa0 [ 43.173119] ? vring_unmap_one+0x49/0x3d0 [ 43.177259] ? detach_buf+0x463/0x6a0 [ 43.181067] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 43.185807] ? common_interrupt+0x9d/0x9d [ 43.189934] ? detach_buf+0x6a0/0x6a0 [ 43.193716] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.198713] virtnet_poll+0x304/0xad0 [ 43.202497] ? receive_buf+0x51f0/0x51f0 [ 43.206529] ? unwind_dump+0x4c0/0x4c0 [ 43.210400] ? net_rx_action+0x49b/0x1910 [ 43.214533] net_rx_action+0x792/0x1910 [ 43.218497] ? napi_complete_done+0x6c0/0x6c0 [ 43.222963] ? save_stack_trace+0x16/0x20 [ 43.227085] ? __lock_acquire+0x20fd/0x4620 [ 43.231409] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.236574] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.241742] ? check_noncircular+0x20/0x20 [ 43.245949] ? check_noncircular+0x20/0x20 [ 43.250163] ? rcu_pm_notify+0xc0/0xc0 [ 43.254048] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.259050] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 43.263869] ? raise_softirq+0x490/0x490 [ 43.267904] ? lock_downgrade+0x990/0x990 [ 43.272051] ? lock_acquire+0x1d5/0x580 [ 43.276000] ? clockevents_program_event+0x163/0x2e0 [ 43.281088] ? trace_hardirqs_off+0xd/0x10 [ 43.285298] ? __napi_schedule+0x25e/0x370 [ 43.289506] ? netdev_info+0x170/0x170 [ 43.293363] ? check_noncircular+0x20/0x20 [ 43.297571] ? check_noncircular+0x20/0x20 [ 43.301780] ? rcu_pm_notify+0xc0/0xc0 [ 43.305668] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.310664] ? __handle_irq_event_percpu+0x308/0x9d0 [ 43.315747] ? rcu_pm_notify+0xc0/0xc0 [ 43.319622] __do_softirq+0x2bb/0xbd0 [ 43.323407] ? __softirqentry_text_start+0x8/0x8 [ 43.328144] ? do_raw_spin_trylock+0x190/0x190 [ 43.332697] ? handle_irq_event_percpu+0x141/0x1b0 [ 43.337608] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 43.342700] ? _raw_spin_lock+0x32/0x40 [ 43.346649] ? _raw_spin_unlock+0x22/0x30 [ 43.350773] ? handle_edge_irq+0x2b4/0x7c0 [ 43.354992] irq_exit+0x1d3/0x210 [ 43.358422] do_IRQ+0xf6/0x190 [ 43.361592] common_interrupt+0x9d/0x9d [ 43.365539] [ 43.367749] RIP: 0010:_raw_spin_unlock_irqrestore+0x5e/0xba [ 43.373427] RSP: 0018:ffff8801c5397bf0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff6e [ 43.381110] RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 0000000000000000 [ 43.388358] RDX: 1ffffffff0b592fd RSI: 0000000000000001 RDI: 0000000000000282 [ 43.395606] RBP: ffff8801c5397c00 R08: ffff8801c5397638 R09: 0000000000000000 [ 43.402847] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801ce4b7d90 [ 43.410090] R13: 0000000000000041 R14: 0000000000000001 R15: 0000000000000282 [ 43.417354] __wake_up_sync_key+0x4b/0x60 [ 43.421480] pipe_write+0x64e/0xd70 [ 43.425104] __vfs_write+0x68a/0x970 [ 43.428795] ? default_llseek+0x2a0/0x2a0 [ 43.432914] ? selinux_capset+0x100/0x100 [ 43.437044] ? fsnotify+0x1af0/0x1af0 [ 43.440832] ? selinux_file_permission+0x82/0x460 [ 43.445672] ? rw_verify_area+0xe5/0x2b0 [ 43.449713] ? __fdget_raw+0x20/0x20 [ 43.453413] vfs_write+0x18f/0x510 [ 43.456939] SyS_write+0xef/0x220 [ 43.460369] ? SyS_read+0x220/0x220 [ 43.463968] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.468968] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.473712] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.478438] RIP: 0033:0x44a769 [ 43.481606] RSP: 002b:00007ffc7831de78 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 43.489294] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a769 [ 43.496536] RDX: 0000000000000012 RSI: 00000000004afc68 RDI: 0000000000000001 [ 43.503778] RBP: 0000000000000082 R08: 00000000012eb940 R09: 00000000006db018 [ 43.511027] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 43.518277] R13: 0000000000407990 R14: 0000000000000000 R15: 0000000000000000 [ 43.525538] [ 43.527137] Allocated by task 4885: [ 43.530743] save_stack_trace+0x16/0x20 [ 43.534693] save_stack+0x43/0xd0 [ 43.538117] kasan_kmalloc+0xad/0xe0 [ 43.541805] kmem_cache_alloc_trace+0x136/0x750 [ 43.546443] fanout_add+0xa50/0x1190 [ 43.550127] packet_setsockopt+0xfdc/0x1e80 [ 43.554420] SyS_setsockopt+0x189/0x360 [ 43.558365] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.563088] [ 43.564689] Freed by task 4830: [ 43.567946] save_stack_trace+0x16/0x20 [ 43.571899] save_stack+0x43/0xd0 [ 43.575324] kasan_slab_free+0x71/0xc0 [ 43.579182] kfree+0xca/0x250 [ 43.582269] packet_release+0xa8f/0xd70 [ 43.586227] sock_release+0x8d/0x1e0 [ 43.589914] sock_close+0x16/0x20 [ 43.593347] __fput+0x333/0x7f0 [ 43.596598] ____fput+0x15/0x20 [ 43.599857] task_work_run+0x199/0x270 [ 43.603720] do_exit+0xa52/0x1b40 [ 43.607144] do_group_exit+0x149/0x400 [ 43.611001] SyS_exit_group+0x1d/0x20 [ 43.614781] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.619511] [ 43.621110] The buggy address belongs to the object at ffff8801c5296380 [ 43.621110] which belongs to the cache kmalloc-4096 of size 4096 [ 43.633914] The buggy address is located 2176 bytes inside of [ 43.633914] 4096-byte region [ffff8801c5296380, ffff8801c5297380) [ 43.645939] The buggy address belongs to the page: [ 43.650845] page:ffffea000714a580 count:1 mapcount:0 mapping:ffff8801c5296380 index:0x0 compound_mapcount: 0 [ 43.660814] flags: 0x200000000008100(slab|head) [ 43.665454] raw: 0200000000008100 ffff8801c5296380 0000000000000000 0000000100000001 [ 43.673307] raw: ffffea00071492a0 ffffea000714ce20 ffff8801dac00dc0 0000000000000000 [ 43.681155] page dumped because: kasan: bad access detected [ 43.686834] [ 43.688432] Memory state around the buggy address: [ 43.693331] ffff8801c5296b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.700660] ffff8801c5296b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.707989] >ffff8801c5296c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.715320] ^ [ 43.718657] ffff8801c5296c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.725989] ffff8801c5296d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.733327] ================================================================== [ 43.740660] Disabling lock debugging due to kernel taint [ 43.746133] Kernel panic - not syncing: panic_on_warn set ... [ 43.746133] [ 43.753480] CPU: 0 PID: 4919 Comm: syzkaller175801 Tainted: G B 4.13.0+ #43