================================================================== BUG: KASAN: use-after-free in ether_addr_equal_64bits include/linux/etherdevice.h:347 [inline] BUG: KASAN: use-after-free in eth_type_trans+0x601/0x740 net/ethernet/eth.c:167 Read of size 8 at addr ffff888078ff0040 by task syz-executor.1/7999 CPU: 0 PID: 7999 Comm: syz-executor.1 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x12d/0x187 lib/dump_stack.c:118 print_address_description.constprop.8.cold.10+0x9/0x31d mm/kasan/report.c:382 __kasan_report.cold.11+0x37/0x4e mm/kasan/report.c:511 kasan_report+0x38/0x50 mm/kasan/common.c:625 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:146 ether_addr_equal_64bits include/linux/etherdevice.h:347 [inline] eth_type_trans+0x601/0x740 net/ethernet/eth.c:167 napi_frags_finish net/core/dev.c:5962 [inline] napi_gro_frags+0x6da/0xb00 net/core/dev.c:6037 tun_get_user+0x2412/0x37b0 drivers/net/tun.c:1945 tun_chr_write_iter+0xb5/0x156 drivers/net/tun.c:1991 call_write_iter include/linux/fs.h:1907 [inline] do_iter_readv_writev+0x532/0xa70 fs/read_write.c:694 do_iter_write+0x130/0x510 fs/read_write.c:999 vfs_writev+0x16d/0x2d0 fs/read_write.c:1072 do_writev+0x118/0x2e0 fs/read_write.c:1115 __do_sys_writev fs/read_write.c:1188 [inline] __se_sys_writev fs/read_write.c:1185 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1185 do_syscall_64+0xca/0x630 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45a7d1 Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 e4 b7 fb ff c3 48 83 ec 08 e8 fa 2c 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 43 2d 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fd75f192ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000207843 RCX: 000000000045a7d1 RDX: 0000000000000001 RSI: 00007fd75f192c00 RDI: 00000000000000f0 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 00007fd75f1939d0 R11: 0000000000000293 R12: 00007fd75f1936d4 R13: 00000000004cab1f R14: 00000000004e4040 R15: 00000000ffffffff The buggy address belongs to the page: page:ffffea0001e3fc00 refcount:0 mapcount:0 mapping:00000000a4db98fb index:0x0 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea0001e3fc08 ffffea0001e3fc08 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888078feff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888078feff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888078ff0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888078ff0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888078ff0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================