==================================================================
BUG: KASAN: use-after-free in macvlan_forward_source+0x512/0x630
Read of size 2 at addr ffff88801fdacdfc by task syz.2.8233/24549

CPU: 1 UID: 0 PID: 24549 Comm: syz.2.8233 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+0xe8/0x150
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 macvlan_forward_source+0x512/0x630
 macvlan_handle_frame+0x2e2/0x12e0
 __netif_receive_skb_core+0x95f/0x2f90
 __netif_receive_skb+0x72/0x380
 netif_receive_skb+0x1bb/0x750
 tun_rx_batched+0x1b9/0x730
 tun_get_user+0x2aa3/0x3dc0
 tun_chr_write_iter+0x113/0x200
 vfs_write+0x5c9/0xb30
 ksys_write+0x145/0x250
 do_syscall_64+0xec/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f725b98e27f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f725c77b000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f725bbe5fa0 RCX: 00007f725b98e27f
RDX: 0000000000000056 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f725b9f297f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000056 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f725bbe6038 R14: 00007f725bbe5fa0 R15: 00007ffe9e851408
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fdac
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 5, migratetype Unmovable, gfp_mask 0xc2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_COMP|__GFP_NOMEMALLOC), pid 23864, tgid 23860 (syz.2.7917), ts 360180613925, free_ts 360187557573
 post_alloc_hook+0x234/0x290
 get_page_from_freelist+0x24e0/0x2580
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 ___kmalloc_large_node+0x4e/0x150
 __kmalloc_large_node_noprof+0x18/0x90
 __kmalloc_node_track_caller_noprof+0x14e/0x820
 kmalloc_reserve+0x136/0x290
 __alloc_skb+0x204/0x3a0
 tipc_msg_build+0x13b/0xcf0
 __tipc_sendstream+0x8ac/0x1270
 tipc_sendstream+0x55/0x70
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x820
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
page last free pid 23861 tgid 23860 stack trace:
 __free_pages_ok+0xa83/0xbe0
 skb_release_data+0x62d/0x7c0
 sk_skb_reason_drop+0x127/0x170
 tipc_recvstream+0x792/0xe70
 sock_recvmsg+0x22c/0x270
 ____sys_recvmsg+0x1c9/0x460
 ___sys_recvmsg+0x1b5/0x510
 __x64_sys_recvmsg+0x198/0x260
 do_syscall_64+0xec/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801fdacc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88801fdacd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88801fdacd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                                                ^
 ffff88801fdace00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88801fdace80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
