executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 27.588932] dev_remove_pack: ffff88006a377e00 not found executing program executing program executing program executing program [ 27.668963] ================================================================== [ 27.670633] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2be3/0x33d0 [ 27.671665] Read of size 2 at addr ffff88006cf4ea80 by task ksoftirqd/0/8 [ 27.672514] [ 27.672817] CPU: 0 PID: 8 Comm: ksoftirqd/0 Not tainted 4.13.0-rc7-next-20170901+ #13 [ 27.674496] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 27.676527] Call Trace: [ 27.676818] dump_stack+0x194/0x257 [ 27.678746] ? arch_local_irq_restore+0x53/0x53 [ 27.679689] ? show_regs_print_info+0x65/0x65 [ 27.680504] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 27.680966] print_address_description+0x73/0x250 [ 27.681581] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 27.682222] kasan_report+0x24e/0x340 [ 27.682674] __asan_report_load2_noabort+0x14/0x20 [ 27.683272] __netif_receive_skb_core+0x2be3/0x33d0 [ 27.683959] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 27.684930] ? nf_ingress+0x9f0/0x9f0 [ 27.686062] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 27.687608] ? ret_from_fork+0x2a/0x40 [ 27.689162] ? __unwind_start+0x169/0x330 [ 27.690667] ? check_noncircular+0x20/0x20 [ 27.691831] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 27.694449] ? unwind_dump+0x4c0/0x4c0 [ 27.695471] ? unwind_dump+0x4c0/0x4c0 [ 27.697062] ? complete+0x5f/0x80 [ 27.697916] ? find_held_lock+0x39/0x1d0 [ 27.699077] ? lock_downgrade+0x990/0x990 [ 27.700199] ? lock_acquire+0x1d5/0x580 [ 27.701237] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 27.702552] ? find_held_lock+0x39/0x1d0 [ 27.703660] ? pvclock_read_flags+0x160/0x160 [ 27.704781] ? lock_downgrade+0x990/0x990 [ 27.705781] ? lock_acquire+0x1d5/0x580 [ 27.708039] ? netif_receive_skb_internal+0x93/0x5e0 [ 27.709807] ? ktime_get_with_offset+0x2c1/0x420 [ 27.711534] ? lock_release+0xd70/0xd70 executing program executing program [ 27.712241] ? ktime_get+0x3a0/0x3a0 [ 27.713389] __netif_receive_skb+0x2c/0x1b0 [ 27.713809] ? __netif_receive_skb+0x2c/0x1b0 [ 27.714282] netif_receive_skb_internal+0x10b/0x5e0 [ 27.714831] ? __build_skb+0x9d/0x450 [ 27.715428] ? dev_cpu_dead+0xb00/0xb00 [ 27.716094] ? net_rx_action+0x1910/0x1910 [ 27.716836] ? kmem_cache_alloc+0x469/0x760 [ 27.717526] ? rcu_pm_notify+0xc0/0xc0 [ 27.718174] ? refcount_sub_and_test+0x115/0x1b0 [ 27.718991] ? skb_gro_reset_offset+0x17b/0x300 [ 27.719944] napi_gro_receive+0x3d0/0x500 [ 27.720491] ? dev_gro_receive+0x19b0/0x19b0 [ 27.721182] ? __alloc_pages_nodemask+0xd80/0xd80 [ 27.721775] ? eth_type_trans+0x2a3/0x650 [ 27.722388] ? rcu_pm_notify+0xc0/0xc0 [ 27.722800] ? eth_gro_receive+0x810/0x810 [ 27.723311] e1000_clean_rx_irq+0x58d/0x1330 [ 27.724085] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 27.725072] ? dql_init+0x2e0/0x2e0 [ 27.725745] ? __dev_kfree_skb_any+0x8a/0xa0 [ 27.726574] ? e1000_unmap_and_free_tx_resource.isra.46+0x1eb/0x390 [ 27.727771] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 27.729656] e1000_clean+0xb39/0x2610 [ 27.730492] ? e1000_unmap_and_free_tx_resource.isra.46+0x390/0x390 [ 27.731703] ? find_held_lock+0x39/0x1d0 [ 27.732491] ? lock_downgrade+0x990/0x990 [ 27.733305] ? check_noncircular+0x20/0x20 [ 27.734101] ? __lock_is_held+0xbc/0x140 [ 27.734874] ? net_rx_action+0x49b/0x1910 [ 27.735666] net_rx_action+0x792/0x1910 [ 27.736533] ? napi_complete_done+0x6c0/0x6c0 [ 27.737364] ? check_noncircular+0x20/0x20 [ 27.738204] ? __perf_event_task_sched_out+0x268/0x1400 [ 27.739455] ? synchronize_rcu_expedited+0x10/0x10 [ 27.740408] ? find_held_lock+0x39/0x1d0 [ 27.741212] ? lock_downgrade+0x990/0x990 [ 27.741946] ? lock_acquire+0x1d5/0x580 [ 27.742597] ? finish_task_switch+0x1aa/0x740 [ 27.743293] ? do_raw_spin_trylock+0x190/0x190 [ 27.743980] ? lock_release+0xd70/0xd70 [ 27.744795] ? compat_start_thread+0x80/0x80 [ 27.745349] ? check_noncircular+0x20/0x20 [ 27.746032] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.746799] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.747466] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.747877] ? finish_task_switch+0x1d3/0x740 [ 27.748271] ? finish_task_switch+0x1aa/0x740 [ 27.748689] ? preempt_notifier_dec+0x20/0x20 [ 27.750109] ? __schedule+0x8f0/0x2070 [ 27.750701] ? rcu_pm_notify+0xc0/0xc0 [ 27.751400] __do_softirq+0x2bb/0xbd0 [ 27.751910] ? __softirqentry_text_start+0x8/0x8 [ 27.752482] ? schedule+0x108/0x440 [ 27.752821] ? __schedule+0x2070/0x2070 [ 27.753219] ? rcu_note_context_switch+0x710/0x710 [ 27.753833] ? run_ksoftirqd+0x55/0x100 [ 27.754285] ? takeover_tasklets+0xa40/0xa40 [ 27.754952] run_ksoftirqd+0x50/0x100 [ 27.755633] smpboot_thread_fn+0x489/0x850 [ 27.756530] ? sort_range+0x30/0x30 [ 27.757193] ? __kthread_parkme+0xdf/0x240 [ 27.757882] ? __kthread_parkme+0x173/0x240 [ 27.758664] kthread+0x39c/0x470 [ 27.759613] ? sort_range+0x30/0x30 [ 27.761003] ? kthread_create_on_node+0x100/0x100 [ 27.761994] ret_from_fork+0x2a/0x40 [ 27.762680] [ 27.762863] Allocated by task 4148: [ 27.763610] save_stack_trace+0x16/0x20 [ 27.764440] save_stack+0x43/0xd0 [ 27.764914] kasan_kmalloc+0xad/0xe0 [ 27.765245] kmem_cache_alloc_trace+0x136/0x750 [ 27.765640] fanout_add+0xa50/0x1190 [ 27.765970] packet_setsockopt+0xfdc/0x1e80 [ 27.766368] SyS_setsockopt+0x189/0x360 [ 27.766774] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.767444] [ 27.767736] Freed by task 4107: [ 27.768330] save_stack_trace+0x16/0x20 [ 27.769037] save_stack+0x43/0xd0 [ 27.769690] kasan_slab_free+0x71/0xc0 [ 27.770747] kfree+0xca/0x250 [ 27.771305] packet_release+0xa8f/0xd70 [ 27.772006] sock_release+0x8d/0x1e0 [ 27.772667] sock_close+0x16/0x20 [ 27.773274] __fput+0x333/0x7f0 [ 27.773869] ____fput+0x15/0x20 [ 27.774447] task_work_run+0x199/0x270 [ 27.775159] do_exit+0xa52/0x1b40 [ 27.775778] do_group_exit+0x149/0x400 [ 27.776465] SyS_exit_group+0x1d/0x20 [ 27.777122] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.777944] [ 27.778234] The buggy address belongs to the object at ffff88006cf4e200 [ 27.778234] which belongs to the cache kmalloc-4096 of size 4096 [ 27.780478] The buggy address is located 2176 bytes inside of [ 27.780478] 4096-byte region [ffff88006cf4e200, ffff88006cf4f200) [ 27.782621] The buggy address belongs to the page: [ 27.783757] page:ffffea0001b3d380 count:1 mapcount:0 mapping:ffff88006cf4e200 index:0x0 compound_mapcount: 0 [ 27.785820] flags: 0x500000000008100(slab|head) [ 27.786964] raw: 0500000000008100 ffff88006cf4e200 0000000000000000 0000000100000001 [ 27.788626] raw: ffffea0001b3a920 ffffea0001a7d0a0 ffff88003e800dc0 0000000000000000 [ 27.790235] page dumped because: kasan: bad access detected [ 27.791889] [ 27.792542] Memory state around the buggy address: [ 27.793358] ffff88006cf4e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.794699] ffff88006cf4ea00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.796094] >ffff88006cf4ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.797411] ^ [ 27.798025] ffff88006cf4eb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.799365] ffff88006cf4eb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.800693] ================================================================== [ 27.802035] Disabling lock debugging due to kernel taint [ 27.811226] Kernel panic - not syncing: panic_on_warn set ... [ 27.811226] [ 27.816609] CPU: 0 PID: 8 Comm: ksoftirqd/0 Tainted: G B 4.13.0-rc7-next-20170901+ #13 [ 27.817616] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 27.818521] Call Trace: [ 27.818774] dump_stack+0x194/0x257 [ 27.819164] ? arch_local_irq_restore+0x53/0x53 [ 27.819637] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.820095] ? __netif_receive_skb_core+0x2bc0/0x33d0 [ 27.820543] panic+0x1e4/0x417 [ 27.820820] ? __warn+0x1d9/0x1d9 [ 27.821158] ? __netif_receive_skb_core+0x2be3/0x33d0 [ 27.821621] kasan_end_report+0x50/0x50 [ 27.821986] kasan_report+0x137/0x340 [ 27.822313] __asan_report_load2_noabort+0x14/0x20 [ 27.822734] __netif_receive_skb_core+0x2be3/0x33d0 [ 27.823247] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 27.823684] ? nf_ingress+0x9f0/0x9f0 [ 27.824042] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 27.824641] ? ret_from_fork+0x2a/0x40 [ 27.825090] ? __unwind_start+0x169/0x330 [ 27.825535] ? check_noncircular+0x20/0x20 [ 27.826027] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 27.826572] ? unwind_dump+0x4c0/0x4c0 [ 27.827103] ? unwind_dump+0x4c0/0x4c0 [ 27.827530] ? complete+0x5f/0x80 [ 27.827898] ? find_held_lock+0x39/0x1d0 [ 27.828369] ? lock_downgrade+0x990/0x990 [ 27.828808] ? lock_acquire+0x1d5/0x580 [ 27.829282] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 27.829951] ? find_held_lock+0x39/0x1d0 [ 27.830618] ? pvclock_read_flags+0x160/0x160 [ 27.831552] ? lock_downgrade+0x990/0x990 [ 27.832077] ? lock_acquire+0x1d5/0x580 [ 27.832587] ? netif_receive_skb_internal+0x93/0x5e0 [ 27.833273] ? ktime_get_with_offset+0x2c1/0x420 [ 27.835526] ? lock_release+0xd70/0xd70 [ 27.835978] ? ktime_get+0x3a0/0x3a0 [ 27.836482] __netif_receive_skb+0x2c/0x1b0 [ 27.836994] ? __netif_receive_skb+0x2c/0x1b0 [ 27.837556] netif_receive_skb_internal+0x10b/0x5e0 [ 27.838170] ? __build_skb+0x9d/0x450 [ 27.838726] ? dev_cpu_dead+0xb00/0xb00 [ 27.839210] ? net_rx_action+0x1910/0x1910 [ 27.839785] ? kmem_cache_alloc+0x469/0x760 [ 27.840386] ? rcu_pm_notify+0xc0/0xc0 [ 27.840896] ? refcount_sub_and_test+0x115/0x1b0 [ 27.841422] ? skb_gro_reset_offset+0x17b/0x300 [ 27.842052] napi_gro_receive+0x3d0/0x500 [ 27.842384] ? dev_gro_receive+0x19b0/0x19b0 [ 27.842891] ? __alloc_pages_nodemask+0xd80/0xd80 [ 27.843399] ? eth_type_trans+0x2a3/0x650 [ 27.843857] ? rcu_pm_notify+0xc0/0xc0 [ 27.844246] ? eth_gro_receive+0x810/0x810 [ 27.844793] e1000_clean_rx_irq+0x58d/0x1330 [ 27.845276] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 27.845831] ? dql_init+0x2e0/0x2e0 [ 27.846168] ? __dev_kfree_skb_any+0x8a/0xa0 [ 27.846604] ? e1000_unmap_and_free_tx_resource.isra.46+0x1eb/0x390 [ 27.847185] ? e1000_clean_jumbo_rx_irq+0x27d0/0x27d0 [ 27.847677] e1000_clean+0xb39/0x2610 [ 27.848024] ? e1000_unmap_and_free_tx_resource.isra.46+0x390/0x390 [ 27.848646] ? find_held_lock+0x39/0x1d0 [ 27.849025] ? lock_downgrade+0x990/0x990 [ 27.849407] ? check_noncircular+0x20/0x20 [ 27.849844] ? __lock_is_held+0xbc/0x140 [ 27.850224] ? net_rx_action+0x49b/0x1910 [ 27.850600] net_rx_action+0x792/0x1910 [ 27.851020] ? napi_complete_done+0x6c0/0x6c0 [ 27.851445] ? check_noncircular+0x20/0x20 [ 27.851882] ? __perf_event_task_sched_out+0x268/0x1400 [ 27.852378] ? synchronize_rcu_expedited+0x10/0x10 [ 27.852883] ? find_held_lock+0x39/0x1d0 [ 27.853334] ? lock_downgrade+0x990/0x990 [ 27.853795] ? lock_acquire+0x1d5/0x580 [ 27.854158] ? finish_task_switch+0x1aa/0x740 [ 27.854576] ? do_raw_spin_trylock+0x190/0x190 [ 27.856161] ? lock_release+0xd70/0xd70 [ 27.856671] ? compat_start_thread+0x80/0x80 [ 27.857281] ? check_noncircular+0x20/0x20 [ 27.857778] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.858319] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.859030] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.859496] ? finish_task_switch+0x1d3/0x740 [ 27.860129] ? finish_task_switch+0x1aa/0x740 [ 27.861268] ? preempt_notifier_dec+0x20/0x20 [ 27.862063] ? __schedule+0x8f0/0x2070 [ 27.862576] ? rcu_pm_notify+0xc0/0xc0 [ 27.863062] __do_softirq+0x2bb/0xbd0 [ 27.863674] ? __softirqentry_text_start+0x8/0x8 [ 27.864641] ? schedule+0x108/0x440 [ 27.865337] ? __schedule+0x2070/0x2070 [ 27.866126] ? rcu_note_context_switch+0x710/0x710 [ 27.867052] ? run_ksoftirqd+0x55/0x100 [ 27.867771] ? takeover_tasklets+0xa40/0xa40 [ 27.868756] run_ksoftirqd+0x50/0x100 [ 27.869606] smpboot_thread_fn+0x489/0x850 [ 27.870372] ? sort_range+0x30/0x30 [ 27.870965] ? __kthread_parkme+0xdf/0x240 [ 27.871503] ? __kthread_parkme+0x173/0x240 [ 27.871933] kthread+0x39c/0x470 [ 27.873006] ? sort_range+0x30/0x30 [ 27.873443] ? kthread_create_on_node+0x100/0x100 [ 27.874290] ret_from_fork+0x2a/0x40 [ 27.874872] Dumping ftrace buffer: [ 27.875392] (ftrace buffer empty) [ 27.875777] Kernel Offset: disabled [ 27.876708] Rebooting in 86400 seconds..