executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 36.010425] dev_remove_pack: ffff88003ebb7240 not found executing program executing program executing program [ 36.115427] ================================================================== executing program executing program [ 36.119620] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 36.121131] Read of size 2 at addr ffff88003aa16d80 by task swapper/0/0 [ 36.122016] [ 36.122204] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.13.0-next-20170908+ #18 [ 36.123607] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 36.124404] Call Trace: [ 36.124611] [ 36.124758] dump_stack+0x194/0x257 [ 36.125046] ? arch_local_irq_restore+0x53/0x53 [ 36.125540] ? show_regs_print_info+0x65/0x65 [ 36.126025] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 36.126576] print_address_description+0x73/0x250 [ 36.127094] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 36.127643] kasan_report+0x24e/0x340 [ 36.128131] __asan_report_load2_noabort+0x14/0x20 [ 36.129620] __netif_receive_skb_core+0x2be3/0x33d0 [ 36.130112] ? nf_ingress+0x9f0/0x9f0 [ 36.130521] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 36.131074] ? secondary_startup_64+0xa5/0xa5 [ 36.131621] ? x86_64_start_kernel+0x87/0x8a [ 36.132393] ? bpf_prog_alloc+0x310/0x310 [ 36.132844] ? check_noncircular+0x20/0x20 [ 36.133300] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 36.134194] ? lock_release+0xd70/0xd70 [ 36.134952] ? unwind_dump+0x4c0/0x4c0 [ 36.135558] ? check_noncircular+0x20/0x20 [ 36.136067] ? find_held_lock+0x39/0x1d0 [ 36.136096] ? lock_downgrade+0x990/0x990 [ 36.136112] ? lock_acquire+0x1d5/0x580 [ 36.136119] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 36.136218] ? find_held_lock+0x39/0x1d0 [ 36.136336] ? pvclock_read_flags+0x160/0x160 [ 36.136509] ? lock_downgrade+0x990/0x990 [ 36.136559] ? lock_acquire+0x1d5/0x580 [ 36.136567] ? netif_receive_skb_internal+0x93/0x5e0 [ 36.136576] ? ktime_get_with_offset+0x2c1/0x420 [ 36.136591] ? lock_release+0xd70/0xd70 [ 36.136597] ? ktime_get+0x3a0/0x3a0 [ 36.136965] __netif_receive_skb+0x2c/0x1b0 [ 36.137011] ? __netif_receive_skb+0x2c/0x1b0 [ 36.137125] netif_receive_skb_internal+0x10b/0x5e0 [ 36.137157] ? __build_skb+0x9d/0x450 [ 36.137165] ? dev_cpu_dead+0xb00/0xb00 [ 36.137177] ? net_rx_action+0x1910/0x1910 [ 36.137183] ? kmem_cache_alloc+0x469/0x760 [ 36.137192] ? rcu_pm_notify+0xc0/0xc0 [ 36.137250] ? refcount_sub_and_test+0x115/0x1b0 [ 36.137561] ? skb_gro_reset_offset+0x17b/0x300 [ 36.137672] napi_gro_receive+0x3d0/0x500 [ 36.137682] ? dev_gro_receive+0x19b0/0x19b0 [ 36.137688] ? __alloc_pages_nodemask+0xd80/0xd80 [ 36.137697] ? eth_type_trans+0x2a3/0x650 [ 36.137704] ? rcu_pm_notify+0xc0/0xc0 [ 36.137713] ? eth_gro_receive+0x810/0x810 [ 36.137738] e1000_clean_rx_irq+0x58d/0x1330 [ 36.137765] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 36.137780] ? dql_init+0x2e0/0x2e0 [ 36.137789] ? __dev_kfree_skb_any+0x8a/0xa0 [ 36.137800] ? e1000_unmap_and_free_tx_resource.isra.46+0x1eb/0x390 [ 36.137813] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 36.137820] e1000_clean+0xb39/0x2610 [ 36.137857] ? e1000_unmap_and_free_tx_resource.isra.46+0x390/0x390 [ 36.137867] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 36.137883] ? unwind_dump+0x4c0/0x4c0 [ 36.137895] ? unwind_dump+0x4c0/0x4c0 [ 36.137906] ? unwind_dump+0x4c0/0x4c0 [ 36.137921] ? net_rx_action+0x49b/0x1910 [ 36.137937] net_rx_action+0x792/0x1910 [ 36.137970] ? napi_complete_done+0x6c0/0x6c0 [ 36.137981] ? save_stack_trace+0x16/0x20 [ 36.137988] ? __lock_acquire+0x20fd/0x4620 [ 36.138001] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.138028] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.138051] ? lock_downgrade+0x990/0x990 [ 36.138059] ? timerqueue_add+0x1e9/0x280 [ 36.138074] ? rcu_pm_notify+0xc0/0xc0 [ 36.138098] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.138107] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 36.138116] ? raise_softirq+0x490/0x490 [ 36.138131] ? check_noncircular+0x20/0x20 [ 36.138144] ? pvclock_read_flags+0x160/0x160 [ 36.138151] ? ktime_get+0x26f/0x3a0 [ 36.138163] ? trace_hardirqs_off+0xd/0x10 [ 36.138171] ? __napi_schedule+0x25e/0x370 [ 36.138181] ? check_noncircular+0x20/0x20 [ 36.138189] ? rcu_pm_notify+0xc0/0xc0 [ 36.138210] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.138218] ? __handle_irq_event_percpu+0x308/0x9d0 [ 36.138232] ? rcu_pm_notify+0xc0/0xc0 [ 36.138257] __do_softirq+0x2bb/0xbd0 [ 36.138279] ? __softirqentry_text_start+0x8/0x8 [ 36.138291] ? do_raw_spin_trylock+0x190/0x190 [ 36.138297] ? handle_irq_event_percpu+0x141/0x1b0 [ 36.138306] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 36.138321] ? kvm_guest_apic_eoi_write+0x6a/0x80 [ 36.138330] ? ioapic_ack_level+0x165/0x450 [ 36.138336] ? _raw_spin_lock+0x32/0x40 [ 36.138347] ? ioapic_ir_ack_level+0xd0/0xd0 [ 36.138355] ? _raw_spin_unlock+0x22/0x30 [ 36.138363] ? handle_fasteoi_irq+0x2db/0x510 [ 36.138385] irq_exit+0x1d3/0x210 [ 36.138393] do_IRQ+0xf6/0x190 [ 36.138407] common_interrupt+0x9d/0x9d [ 36.138411] [ 36.138418] RIP: 0010:native_safe_halt+0x6/0x10 [ 36.138423] RSP: 0018:ffffffff85a07d10 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffc5 [ 36.138432] RAX: dffffc0000000000 RBX: 1ffffffff0b40fa5 RCX: 0000000000000000 [ 36.138437] RDX: 1ffffffff0b59308 RSI: 0000000000000001 RDI: ffffffff85ac9840 [ 36.138442] RBP: ffffffff85a07d10 R08: ffffffff8161b599 R09: 0000000000000000 [ 36.138447] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac9830 [ 36.138452] R13: ffffffff85a07dc8 R14: 0000000000000000 R15: ffffffff85a2f380 [ 36.138469] ? tick_nohz_idle_enter+0xd9/0x160 [ 36.138488] default_idle+0xbf/0x460 [ 36.138497] ? __sched_text_end+0x4/0x4 [ 36.138536] arch_cpu_idle+0xa/0x10 [ 36.138543] default_idle_call+0x36/0x90 [ 36.138551] do_idle+0x256/0x3b0 [ 36.138565] cpu_startup_entry+0x18/0x20 [ 36.138573] rest_init+0xed/0xf0 [ 36.138583] start_kernel+0x72e/0x754 [ 36.138592] ? mem_encrypt_init+0xb/0xb [ 36.138607] ? memcpy_orig+0x54/0x110 [ 36.138620] x86_64_start_reservations+0x2a/0x2c [ 36.138629] x86_64_start_kernel+0x87/0x8a [ 36.138638] secondary_startup_64+0xa5/0xa5 [ 36.138664] [ 36.138669] Allocated by task 4322: [ 36.138676] save_stack_trace+0x16/0x20 [ 36.138683] save_stack+0x43/0xd0 [ 36.138689] kasan_kmalloc+0xad/0xe0 [ 36.138695] kmem_cache_alloc_trace+0x136/0x750 [ 36.138702] fanout_add+0xa50/0x1190 [ 36.138708] packet_setsockopt+0xfdc/0x1e80 [ 36.138714] SyS_setsockopt+0x189/0x360 [ 36.138721] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 36.138724] [ 36.138727] Freed by task 4247: [ 36.138733] save_stack_trace+0x16/0x20 [ 36.138739] save_stack+0x43/0xd0 [ 36.138744] kasan_slab_free+0x71/0xc0 [ 36.138750] kfree+0xca/0x250 [ 36.138756] packet_release+0xa8f/0xd70 [ 36.138762] sock_release+0x8d/0x1e0 [ 36.138768] sock_close+0x16/0x20 [ 36.138774] __fput+0x333/0x7f0 [ 36.138779] ____fput+0x15/0x20 [ 36.138785] task_work_run+0x199/0x270 [ 36.138790] do_exit+0xa52/0x1b40 [ 36.138795] do_group_exit+0x149/0x400 [ 36.138800] SyS_exit_group+0x1d/0x20 [ 36.138807] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 36.138810] [ 36.138816] The buggy address belongs to the object at ffff88003aa16500 [ 36.138816] which belongs to the cache kmalloc-4096 of size 4096 [ 36.138822] The buggy address is located 2176 bytes inside of [ 36.138822] 4096-byte region [ffff88003aa16500, ffff88003aa17500) [ 36.138825] The buggy address belongs to the page: [ 36.138831] page:ffffea0000ea8580 count:1 mapcount:0 mapping:ffff88003aa16500 index:0x0 compound_mapcount: 0 [ 36.138842] flags: 0x100000000008100(slab|head) [ 36.138850] raw: 0100000000008100 ffff88003aa16500 0000000000000000 0000000100000001 [ 36.138858] raw: ffffea0000f8b6a0 ffffea0000f4ce20 ffff88003e800dc0 0000000000000000 [ 36.138862] page dumped because: kasan: bad access detected [ 36.138865] [ 36.138868] Memory state around the buggy address: [ 36.138874] ffff88003aa16c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.138879] ffff88003aa16d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.138885] >ffff88003aa16d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.138888] ^ [ 36.138894] ffff88003aa16e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.138899] ffff88003aa16e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.138903] ================================================================== [ 36.138906] Disabling lock debugging due to kernel taint [ 36.138926] Kernel panic - not syncing: panic_on_warn set ... [ 36.138926] [ 36.138932] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G B 4.13.0-next-20170908+ #18 [ 36.138934] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 36.138936] Call Trace: [ 36.138938] [ 36.138943] dump_stack+0x194/0x257 [ 36.138958] ? arch_local_irq_restore+0x53/0x53 [ 36.138964] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.138973] ? __netif_receive_skb_core+0x2b90/0x33d0 [ 36.138979] panic+0x1e4/0x417 [ 36.138984] ? __warn+0x1d9/0x1d9 [ 36.138998] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 36.139004] kasan_end_report+0x50/0x50 [ 36.139009] kasan_report+0x137/0x340 [ 36.139017] __asan_report_load2_noabort+0x14/0x20 [ 36.139022] __netif_receive_skb_core+0x2be3/0x33d0 [ 36.139035] ? nf_ingress+0x9f0/0x9f0 [ 36.139040] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 36.139044] ? secondary_startup_64+0xa5/0xa5 [ 36.139053] ? x86_64_start_kernel+0x87/0x8a [ 36.139059] ? bpf_prog_alloc+0x310/0x310 [ 36.139065] ? check_noncircular+0x20/0x20 [ 36.139072] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 36.139079] ? lock_release+0xd70/0xd70 [ 36.139087] ? unwind_dump+0x4c0/0x4c0 [ 36.139096] ? check_noncircular+0x20/0x20 [ 36.139105] ? find_held_lock+0x39/0x1d0 [ 36.139117] ? lock_downgrade+0x990/0x990 [ 36.139127] ? lock_acquire+0x1d5/0x580 [ 36.139132] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 36.139138] ? find_held_lock+0x39/0x1d0 [ 36.139150] ? pvclock_read_flags+0x160/0x160 [ 36.139157] ? lock_downgrade+0x990/0x990 [ 36.139168] ? lock_acquire+0x1d5/0x580 [ 36.139174] ? netif_receive_skb_internal+0x93/0x5e0 [ 36.139180] ? ktime_get_with_offset+0x2c1/0x420 [ 36.139189] ? lock_release+0xd70/0xd70 [ 36.139195] ? ktime_get+0x3a0/0x3a0 [ 36.139206] __netif_receive_skb+0x2c/0x1b0 [ 36.139212] ? __netif_receive_skb+0x2c/0x1b0 [ 36.139220] netif_receive_skb_internal+0x10b/0x5e0 [ 36.139226] ? __build_skb+0x9d/0x450 [ 36.139231] ? dev_cpu_dead+0xb00/0xb00 [ 36.139270] ? net_rx_action+0x1910/0x1910 [ 36.139277] ? kmem_cache_alloc+0x469/0x760 [ 36.139283] ? rcu_pm_notify+0xc0/0xc0 [ 36.139289] ? refcount_sub_and_test+0x115/0x1b0 [ 36.139298] ? skb_gro_reset_offset+0x17b/0x300 [ 36.139306] napi_gro_receive+0x3d0/0x500 [ 36.139343] ? dev_gro_receive+0x19b0/0x19b0 [ 36.139351] ? __alloc_pages_nodemask+0xd80/0xd80 [ 36.139356] ? eth_type_trans+0x2a3/0x650 [ 36.139360] ? rcu_pm_notify+0xc0/0xc0 [ 36.139367] ? eth_gro_receive+0x810/0x810 [ 36.139378] e1000_clean_rx_irq+0x58d/0x1330 [ 36.139395] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 36.139404] ? dql_init+0x2e0/0x2e0 [ 36.139410] ? __dev_kfree_skb_any+0x8a/0xa0 [ 36.139417] ? e1000_unmap_and_free_tx_resource.isra.46+0x1eb/0x390 [ 36.139426] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 36.139432] e1000_clean+0xb39/0x2610 [ 36.139452] ? e1000_unmap_and_free_tx_resource.isra.46+0x390/0x390 [ 36.139458] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 36.139468] ? unwind_dump+0x4c0/0x4c0 [ 36.139476] ? unwind_dump+0x4c0/0x4c0 [ 36.139484] ? unwind_dump+0x4c0/0x4c0 [ 36.139493] ? net_rx_action+0x49b/0x1910 [ 36.139503] net_rx_action+0x792/0x1910 [ 36.139516] ? napi_complete_done+0x6c0/0x6c0 [ 36.139521] ? save_stack_trace+0x16/0x20 [ 36.139526] ? __lock_acquire+0x20fd/0x4620 [ 36.139534] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.139548] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.139560] ? lock_downgrade+0x990/0x990 [ 36.139564] ? timerqueue_add+0x1e9/0x280 [ 36.139572] ? rcu_pm_notify+0xc0/0xc0 [ 36.139584] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.139589] ? __raise_softirq_irqoff+0x21c/0x2c0 [ 36.139594] ? raise_softirq+0x490/0x490 [ 36.139602] ? check_noncircular+0x20/0x20 [ 36.139609] ? pvclock_read_flags+0x160/0x160 [ 36.139613] ? ktime_get+0x26f/0x3a0 [ 36.139619] ? trace_hardirqs_off+0xd/0x10 [ 36.139623] ? __napi_schedule+0x25e/0x370 [ 36.139630] ? check_noncircular+0x20/0x20 [ 36.139635] ? rcu_pm_notify+0xc0/0xc0 [ 36.139646] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.139651] ? __handle_irq_event_percpu+0x308/0x9d0 [ 36.139659] ? rcu_pm_notify+0xc0/0xc0 [ 36.139673] __do_softirq+0x2bb/0xbd0 [ 36.139686] ? __softirqentry_text_start+0x8/0x8 [ 36.139695] ? do_raw_spin_trylock+0x190/0x190 [ 36.139700] ? handle_irq_event_percpu+0x141/0x1b0 [ 36.139706] ? __handle_irq_event_percpu+0x9d0/0x9d0 [ 36.139715] ? kvm_guest_apic_eoi_write+0x6a/0x80 [ 36.139721] ? ioapic_ack_level+0x165/0x450 [ 36.139727] ? _raw_spin_lock+0x32/0x40 [ 36.139734] ? ioapic_ir_ack_level+0xd0/0xd0 [ 36.139739] ? _raw_spin_unlock+0x22/0x30 [ 36.139746] ? handle_fasteoi_irq+0x2db/0x510 [ 36.139757] irq_exit+0x1d3/0x210 [ 36.139762] do_IRQ+0xf6/0x190 [ 36.139770] common_interrupt+0x9d/0x9d [ 36.139774] [ 36.139780] RIP: 0010:native_safe_halt+0x6/0x10 [ 36.139784] RSP: 0018:ffffffff85a07d10 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffc5 [ 36.139793] RAX: dffffc0000000000 RBX: 1ffffffff0b40fa5 RCX: 0000000000000000 [ 36.139798] RDX: 1ffffffff0b59308 RSI: 0000000000000001 RDI: ffffffff85ac9840 [ 36.139802] RBP: ffffffff85a07d10 R08: ffffffff8161b599 R09: 0000000000000000 [ 36.139807] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac9830 [ 36.139812] R13: ffffffff85a07dc8 R14: 0000000000000000 R15: ffffffff85a2f380 [ 36.139820] ? tick_nohz_idle_enter+0xd9/0x160 [ 36.139832] default_idle+0xbf/0x460 [ 36.139837] ? __sched_text_end+0x4/0x4 [ 36.139854] arch_cpu_idle+0xa/0x10 [ 36.139859] default_idle_call+0x36/0x90 [ 36.139865] do_idle+0x256/0x3b0 [ 36.139872] cpu_startup_entry+0x18/0x20 [ 36.139877] rest_init+0xed/0xf0 [ 36.139882] start_kernel+0x72e/0x754 [ 36.139888] ? mem_encrypt_init+0xb/0xb [ 36.139896] ? memcpy_orig+0x54/0x110 [ 36.139905] x86_64_start_reservations+0x2a/0x2c [ 36.139910] x86_64_start_kernel+0x87/0x8a [ 36.139916] secondary_startup_64+0xa5/0xa5 [ 36.140258] Dumping ftrace buffer: [ 36.140260] (ftrace buffer empty) [ 36.140262] Kernel Offset: disabled [ 36.242659] Rebooting in 86400 seconds..