syz.1.18 uses obsolete (PF_INET,SOCK_PACKET)
==================================================================
BUG: KASAN: slab-use-after-free in skb_reset_mac_header include/linux/skbuff.h:3109 [inline]
BUG: KASAN: slab-use-after-free in napi_frags_skb net/core/gro.c:723 [inline]
BUG: KASAN: slab-use-after-free in napi_gro_frags+0x6e/0x1030 net/core/gro.c:758
Read of size 8 at addr ffff88810f91c9d8 by task syz.1.18/5999

CPU: 1 UID: 0 PID: 5999 Comm: syz.1.18 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 skb_reset_mac_header include/linux/skbuff.h:3109 [inline]
 napi_frags_skb net/core/gro.c:723 [inline]
 napi_gro_frags+0x6e/0x1030 net/core/gro.c:758
 tun_get_user+0x28cb/0x3e20 drivers/net/tun.c:1920
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1996
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5c9/0xb30 fs/read_write.c:686
 ksys_write+0x145/0x250 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4659b8ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f465aa4f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f4659dc5fa0 RCX: 00007f4659b8ebe9
RDX: 000000000000004b RSI: 0000200000000340 RDI: 0000000000000003
RBP: 00007f4659c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4659dc6038 R14: 00007f4659dc5fa0 R15: 00007ffcb8be5068
 </TASK>

Allocated by task 5999:
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
 unpoison_slab_object mm/kasan/common.c:330 [inline]
 __kasan_mempool_unpoison_object+0xa0/0x170 mm/kasan/common.c:558
 kasan_mempool_unpoison_object include/linux/kasan.h:388 [inline]
 napi_skb_cache_get+0x37b/0x6d0 net/core/skbuff.c:295
 __alloc_skb+0x11e/0x2d0 net/core/skbuff.c:657
 napi_alloc_skb+0x84/0x7d0 net/core/skbuff.c:811
 napi_get_frags+0x69/0x140 net/core/gro.c:673
 tun_napi_alloc_frags drivers/net/tun.c:1404 [inline]
 tun_get_user+0x77c/0x3e20 drivers/net/tun.c:1784
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1996
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5c9/0xb30 fs/read_write.c:686
 ksys_write+0x145/0x250 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5999:
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576
 poison_slab_object mm/kasan/common.c:243 [inline]
 __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275
 kasan_slab_free include/linux/kasan.h:233 [inline]
 slab_free_hook mm/slub.c:2417 [inline]
 slab_free mm/slub.c:4680 [inline]
 kmem_cache_free+0x18f/0x400 mm/slub.c:4782
 skb_pp_cow_data+0xdd8/0x13e0 net/core/skbuff.c:969
 netif_skb_check_for_xdp net/core/dev.c:5341 [inline]
 netif_receive_generic_xdp net/core/dev.c:5382 [inline]
 do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450
 tun_get_user+0x2523/0x3e20 drivers/net/tun.c:1872
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1996
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5c9/0xb30 fs/read_write.c:686
 ksys_write+0x145/0x250 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88810f91c900
 which belongs to the cache skbuff_head_cache of size 240
The buggy address is located 216 bytes inside of
 freed 240-byte region [ffff88810f91c900, ffff88810f91c9f0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f91c
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff88801ceca8c0 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff88801ceca8c0 dead000000000122 0000000000000000
head: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000
head: 057ff00000000001 ffffea00043e4701 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5957, tgid 5957 (syz-executor), ts 61335273967, free_ts 46392140874
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851
 prep_new_page mm/page_alloc.c:1859 [inline]
 get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
 alloc_slab_page mm/slub.c:2487 [inline]
 allocate_slab+0x8a/0x370 mm/slub.c:2655
 new_slab mm/slub.c:2709 [inline]
 ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891
 __kmem_cache_alloc_bulk mm/slub.c:5331 [inline]
 kmem_cache_alloc_bulk_noprof+0x20e/0x790 mm/slub.c:5403
 napi_skb_cache_get+0x3cb/0x6d0 net/core/skbuff.c:283
 __alloc_skb+0x11e/0x2d0 net/core/skbuff.c:657
 napi_alloc_skb+0x84/0x7d0 net/core/skbuff.c:811
 napi_get_frags+0x69/0x140 net/core/gro.c:673
 napi_get_frags_check net/core/dev.c:7327 [inline]
 netif_napi_add_weight_locked+0x57a/0x970 net/core/dev.c:7367
 netif_napi_add_weight include/linux/netdevice.h:2794 [inline]
 netif_napi_add include/linux/netdevice.h:2811 [inline]
 gro_cells_init+0x1af/0x220 net/core/gro_cells.c:85
 geneve_init+0x2c/0x450 drivers/net/geneve.c:343
 register_netdevice+0x6bf/0x1ae0 net/core/dev.c:11133
 geneve_configure+0x645/0xa80 drivers/net/geneve.c:1406
page last free pid 15 tgid 15 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1395 [inline]
 __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895
 rcu_do_batch kernel/rcu/tree.c:2605 [inline]
 rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861
 handle_softirqs+0x286/0x870 kernel/softirq.c:579
 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff88810f91c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810f91c900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88810f91c980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
                                                    ^
 ffff88810f91ca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810f91ca80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
