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-7,10.128.0.59' (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 syzkaller login: [ 50.636143] dev_remove_pack: ffff8801cb9768c0 not found executing program executing program [ 50.676544] ================================================================== [ 50.683980] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 50.691486] Read of size 2 at addr ffff8801cb026c40 by task syzkaller926336/4120 [ 50.698988] [ 50.700592] CPU: 1 PID: 4120 Comm: syzkaller926336 Not tainted 4.13.0-mm1+ #7 [ 50.707834] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.717165] Call Trace: [ 50.719719] [ 50.721849] dump_stack+0x194/0x257 [ 50.725451] ? arch_local_irq_restore+0x53/0x53 [ 50.730091] ? show_regs_print_info+0x65/0x65 [ 50.734566] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 50.739728] print_address_description+0x73/0x250 [ 50.744550] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 50.749710] kasan_report+0x24e/0x340 [ 50.753487] __asan_report_load2_noabort+0x14/0x20 [ 50.758389] __netif_receive_skb_core+0x2be3/0x33d0 [ 50.763375] ? __bpf_address_lookup+0x2b0/0x2b0 [ 50.768025] ? nf_ingress+0x9f0/0x9f0 [ 50.771797] ? unwind_dump+0x4c0/0x4c0 [ 50.775659] ? check_noncircular+0x20/0x20 [ 50.779875] ? check_noncircular+0x20/0x20 [ 50.784088] ? __kernel_text_address+0xae/0xe0 [ 50.788641] ? unwind_get_return_address+0x61/0xa0 [ 50.793543] ? __save_stack_trace+0x7e/0xd0 [ 50.797842] ? print_usage_bug+0x480/0x480 [ 50.802057] ? find_held_lock+0x39/0x1d0 [ 50.806108] ? lock_downgrade+0x990/0x990 [ 50.810229] ? do_page_fault+0xee/0x720 [ 50.814179] ? lock_acquire+0x1d5/0x580 [ 50.818122] ? netif_receive_skb_internal+0x1d7/0x670 [ 50.823282] ? find_held_lock+0x39/0x1d0 [ 50.827323] ? pvclock_read_flags+0x160/0x160 [ 50.831788] ? mark_held_locks+0xb2/0x100 [ 50.835913] ? lock_acquire+0x1d5/0x580 [ 50.839867] ? netif_receive_skb_internal+0xa2/0x670 [ 50.844953] ? ktime_get_with_offset+0x2c1/0x420 [ 50.849685] ? lock_release+0xd70/0xd70 [ 50.853629] ? ktime_get+0x3a0/0x3a0 [ 50.857326] __netif_receive_skb+0x2c/0x1b0 [ 50.861616] ? __netif_receive_skb+0x2c/0x1b0 [ 50.866083] netif_receive_skb_internal+0x10b/0x670 [ 50.871069] ? dev_cpu_dead+0xb00/0xb00 [ 50.875013] ? __alloc_pages_nodemask+0xd80/0xd80 [ 50.879828] ? net_rx_action+0x1910/0x1910 [ 50.884035] ? __lock_is_held+0xbc/0x140 [ 50.888074] ? skb_gro_reset_offset+0x17b/0x300 [ 50.892718] napi_gro_receive+0x3d0/0x500 [ 50.896836] ? dev_gro_receive+0x19b0/0x19b0 [ 50.901222] ? eth_type_trans+0x2a3/0x650 [ 50.905344] ? eth_gro_receive+0x810/0x810 [ 50.909562] receive_buf+0xcc5/0x51f0 [ 50.913333] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 50.918320] ? unwind_dump+0x4c0/0x4c0 [ 50.922190] ? virtnet_set_rx_mode+0x9f0/0x9f0 [ 50.926748] ? __unwind_start+0x169/0x330 [ 50.930868] ? unwind_get_return_address+0x61/0xa0 [ 50.935769] ? __save_stack_trace+0x61/0xd0 [ 50.940069] ? rcu_report_qs_rnp+0x613/0x880 [ 50.944450] ? save_stack_trace+0x16/0x20 [ 50.948569] ? __lock_acquire+0x20fd/0x4620 [ 50.952859] ? __do_softirq+0x2bb/0xbd0 [ 50.956802] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.961968] ? find_held_lock+0x39/0x1d0 [ 50.966010] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 50.971175] ? lock_downgrade+0x990/0x990 [ 50.975301] ? check_noncircular+0x20/0x20 [ 50.979515] ? pvclock_read_flags+0x160/0x160 [ 50.983983] ? lock_release+0xd70/0xd70 [ 50.987929] ? _find_next_bit+0xee/0x120 [ 50.991959] ? _find_next_bit+0xee/0x120 [ 50.995996] ? __lock_is_held+0xbc/0x140 [ 51.000038] ? update_curr+0x2cf/0x800 [ 51.003918] ? nohz_balance_exit_idle.part.84+0x70/0x70 [ 51.009261] ? check_noncircular+0x20/0x20 [ 51.013465] ? check_noncircular+0x20/0x20 [ 51.017670] ? put_prev_task_fair+0x80/0x80 [ 51.021968] ? check_noncircular+0x20/0x20 [ 51.026188] ? find_held_lock+0x39/0x1d0 [ 51.030234] ? lock_downgrade+0x990/0x990 [ 51.034351] ? lock_downgrade+0x990/0x990 [ 51.038473] ? check_noncircular+0x20/0x20 [ 51.042678] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.047664] ? ttwu_do_wakeup+0x523/0x710 [ 51.051787] ? do_raw_spin_trylock+0x190/0x190 [ 51.056339] ? do_raw_spin_trylock+0x190/0x190 [ 51.060894] ? check_noncircular+0x20/0x20 [ 51.065110] ? trace_hardirqs_off+0xd/0x10 [ 51.069316] ? print_usage_bug+0x480/0x480 [ 51.073522] ? try_to_wake_up+0x115/0x1850 [ 51.077739] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.082906] ? find_held_lock+0x39/0x1d0 [ 51.086949] ? lock_downgrade+0x990/0x990 [ 51.091076] ? vring_use_dma_api+0x7f/0xa0 [ 51.095294] ? vring_unmap_one+0x49/0x3d0 [ 51.099415] ? detach_buf+0x463/0x6a0 [ 51.103188] ? print_usage_bug+0x480/0x480 [ 51.107405] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 51.112132] ? common_interrupt+0x9d/0x9d [ 51.116257] ? detach_buf+0x6a0/0x6a0 [ 51.120031] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 51.125023] virtnet_poll+0x304/0xad0 [ 51.128802] ? receive_buf+0x51f0/0x51f0 [ 51.132833] ? unwind_dump+0x4c0/0x4c0 [ 51.136695] ? mark_held_locks+0xb2/0x100 [ 51.140814] ? net_rx_action+0x49b/0x1910 [ 51.144939] net_rx_action+0x792/0x1910 [ 51.148898] ? napi_complete_done+0x6c0/0x6c0 [ 51.153363] ? save_stack_trace+0x16/0x20 [ 51.157487] ? __lock_acquire+0x20fd/0x4620 [ 51.161783] ? __lock_is_held+0xbc/0x140 [ 51.165840] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.171004] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.176178] ? __lock_is_held+0xbc/0x140 [ 51.180225] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.185217] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 51.190042] ? raise_softirq+0x490/0x490 [ 51.194076] ? lock_downgrade+0x990/0x990 [ 51.198214] ? print_usage_bug+0x480/0x480 [ 51.202422] ? lock_acquire+0x1d5/0x580 [ 51.206370] ? clockevents_program_event+0x163/0x2e0 [ 51.211447] ? trace_hardirqs_off+0xd/0x10 [ 51.215653] ? __napi_schedule+0x25e/0x370 [ 51.219861] ? netdev_info+0x170/0x170 [ 51.223716] ? check_noncircular+0x20/0x20 [ 51.227921] ? __lock_is_held+0xbc/0x140 [ 51.231957] ? check_noncircular+0x20/0x20 [ 51.236165] ? __lock_is_held+0xbc/0x140 [ 51.240211] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.245216] ? __handle_irq_event_percpu+0x308/0x9d0 [ 51.250308] ? __lock_is_held+0xbc/0x140 [ 51.254353] __do_softirq+0x2bb/0xbd0 [ 51.258135] ? __softirqentry_text_start+0x8/0x8 [ 51.262871] ? do_raw_spin_trylock+0x190/0x190 [ 51.267422] ? handle_irq_event_percpu+0x141/0x1b0 [ 51.272324] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 51.277406] ? _raw_spin_lock+0x32/0x40 [ 51.281355] ? _raw_spin_unlock+0x22/0x30 [ 51.285472] ? handle_edge_irq+0x2b4/0x7c0 [ 51.289688] irq_exit+0x1d3/0x210 [ 51.293114] do_IRQ+0xf6/0x190 [ 51.296282] common_interrupt+0x9d/0x9d [ 51.300243] [ 51.302451] RIP: 0010:lock_acquire+0x256/0x580 [ 51.307002] RSP: 0000:ffff8801cb057bc0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff1e [ 51.314681] RAX: dffffc0000000000 RBX: ffff8801cb9da3c0 RCX: 0000000000000000 [ 51.321929] RDX: 1ffffffff0b592fd RSI: 000000007e487804 RDI: 0000000000000282 [ 51.329192] RBP: ffff8801cb057cb8 R08: 0000000000000000 R09: 0000000000000001 [ 51.336435] R10: 0000000000000000 R11: ffffffff87060ce0 R12: 1ffff1003960af7e [ 51.343687] R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000 [ 51.350960] ? lock_release+0xd70/0xd70 [ 51.354909] ? __lock_is_held+0xbc/0x140 [ 51.358954] handle_mm_fault+0x132/0x8d0 [ 51.362984] ? handle_mm_fault+0xfe/0x8d0 [ 51.367104] ? down_read_trylock+0xdb/0x170 [ 51.371395] ? __do_page_fault+0x2b8/0xb60 [ 51.375610] ? __handle_mm_fault+0x39c0/0x39c0 [ 51.380163] ? vmacache_find+0x61/0x270 [ 51.384116] ? find_vma+0x30/0x150 [ 51.387629] __do_page_fault+0x4f6/0xb60 [ 51.391670] do_page_fault+0xee/0x720 [ 51.395441] ? lockdep_sys_exit+0x47/0xf0 [ 51.399569] ? __do_page_fault+0xb60/0xb60 [ 51.403781] ? syscall_return_slowpath+0x500/0x500 [ 51.408683] ? SyS_mmap_pgoff+0x243/0x5f0 [ 51.412802] ? lockdep_sys_exit+0x47/0xf0 [ 51.416921] ? retint_user+0x18/0x20 [ 51.420612] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.425433] page_fault+0x22/0x30 [ 51.428854] RIP: 0033:0x458a80 [ 51.432014] RSP: 002b:00007ffd16383588 EFLAGS: 00010206 [ 51.437349] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000800000 [ 51.444590] RDX: 0000000000000000 RSI: 00007fd1187ece70 RDI: 00000000003d0f00 [ 51.451829] RBP: 00007ffd163835b0 R08: 0000000000000000 R09: 00007fd1187ed700 [ 51.459070] R10: 00007fd1187ed9d0 R11: 0000000000000202 R12: 0000000068db8bad [ 51.466309] R13: 0000000000407120 R14: 0000000000000000 R15: 0000000000000000 [ 51.473567] [ 51.475165] Allocated by task 4106: [ 51.479302] save_stack_trace+0x16/0x20 [ 51.483251] save_stack+0x43/0xd0 [ 51.486674] kasan_kmalloc+0xad/0xe0 [ 51.490357] kmem_cache_alloc_trace+0x136/0x750 [ 51.494996] fanout_add+0xa50/0x1190 [ 51.498679] packet_setsockopt+0xfdc/0x1e80 [ 51.502973] SyS_setsockopt+0x189/0x360 [ 51.506919] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 51.511641] [ 51.513240] Freed by task 4012: [ 51.516489] save_stack_trace+0x16/0x20 [ 51.520435] save_stack+0x43/0xd0 [ 51.523857] kasan_slab_free+0x71/0xc0 [ 51.527712] kfree+0xca/0x250 [ 51.530789] packet_release+0xa8f/0xd70 [ 51.534732] sock_release+0x8d/0x1e0 [ 51.538413] sock_close+0x16/0x20 [ 51.541836] __fput+0x333/0x7f0 [ 51.545083] ____fput+0x15/0x20 [ 51.548335] task_work_run+0x199/0x270 [ 51.552191] do_exit+0xa52/0x1b40 [ 51.555611] do_group_exit+0x149/0x400 [ 51.559466] SyS_exit_group+0x1d/0x20 [ 51.563236] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 51.567955] [ 51.569553] The buggy address belongs to the object at ffff8801cb0263c0 [ 51.569553] which belongs to the cache kmalloc-4096 of size 4096 [ 51.582350] The buggy address is located 2176 bytes inside of [ 51.582350] 4096-byte region [ffff8801cb0263c0, ffff8801cb0273c0) [ 51.594364] The buggy address belongs to the page: [ 51.599264] page:ffffea00072c0980 count:1 mapcount:0 mapping:ffff8801cb0263c0 index:0x0 compound_mapcount: 0 [ 51.609209] flags: 0x200000000008100(slab|head) [ 51.613848] raw: 0200000000008100 ffff8801cb0263c0 0000000000000000 0000000100000001 [ 51.621707] raw: ffffea00072c05a0 ffffea00072c0a20 ffff8801dac00dc0 0000000000000000 [ 51.629553] page dumped because: kasan: bad access detected [ 51.635315] [ 51.636911] Memory state around the buggy address: [ 51.641808] ffff8801cb026b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.649137] ffff8801cb026b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.656469] >ffff8801cb026c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.663796] ^ [ 51.669214] ffff8801cb026c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program