================================================================== BUG: KASAN: use-after-free in ether_addr_equal_64bits include/linux/etherdevice.h:348 [inline] BUG: KASAN: use-after-free in eth_type_trans+0x601/0x740 net/ethernet/eth.c:167 Read of size 8 at addr ffff88807cbf0040 by task syz-executor.2/7991 CPU: 1 PID: 7991 Comm: syz-executor.2 Not tainted 5.5.0-rc7-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:374 __kasan_report.cold.11+0x1b/0x3a mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 ether_addr_equal_64bits include/linux/etherdevice.h:348 [inline] eth_type_trans+0x601/0x740 net/ethernet/eth.c:167 napi_frags_finish net/core/dev.c:5925 [inline] napi_gro_frags+0x6da/0xb00 net/core/dev.c:6000 tun_get_user+0x2412/0x37b0 drivers/net/tun.c:1980 tun_chr_write_iter+0xaf/0x150 drivers/net/tun.c:2026 call_write_iter include/linux/fs.h:1902 [inline] do_iter_readv_writev+0x526/0xa70 fs/read_write.c:693 do_iter_write+0x12a/0x510 fs/read_write.c:970 vfs_writev+0x16d/0x2d0 fs/read_write.c:1015 do_writev+0x112/0x2e0 fs/read_write.c:1058 __do_sys_writev fs/read_write.c:1131 [inline] __se_sys_writev fs/read_write.c:1128 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1128 do_syscall_64+0xca/0x5f0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe 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:00007ff4ee8edba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000207843 RCX: 000000000045a7d1 RDX: 0000000000000001 RSI: 00007ff4ee8edc00 RDI: 00000000000000f0 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ff4ee8ee9d0 R11: 0000000000000293 R12: 00007ff4ee8ee6d4 R13: 00000000004cab1f R14: 00000000004e4040 R15: 00000000ffffffff The buggy address belongs to the object at ffff88807c800000 which belongs to the cache kmalloc-4M of size 4194304 The buggy address is located 4128832 bytes inside of 4194304-byte region [ffff88807c800000, ffff88807cc00000) The buggy address belongs to the page: page:ffffea0001f20000 refcount:1 mapcount:0 mapping:ffff8880aa40c1c0 index:0x0 compound_mapcount: 0 raw: 00fffe0000010200 ffffea0001f30008 ffffea0001f10008 ffff8880aa40c1c0 raw: 0000000000000000 ffff88807c800000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88807cbeff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807cbeff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807cbf0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807cbf0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807cbf0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================