netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 ================================================================== BUG: KASAN: use-after-free in ether_addr_equal include/linux/etherdevice.h:329 [inline] BUG: KASAN: use-after-free in ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:599 [inline] BUG: KASAN: use-after-free in ipvlan_queue_xmit+0x158f/0x18a0 drivers/net/ipvlan/ipvlan_core.c:645 Read of size 4 at addr ffff88814738a7ff by task syz-executor793/8381 CPU: 1 PID: 8381 Comm: syz-executor793 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416 ether_addr_equal include/linux/etherdevice.h:329 [inline] ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:599 [inline] ipvlan_queue_xmit+0x158f/0x18a0 drivers/net/ipvlan/ipvlan_core.c:645 ipvlan_start_xmit+0x45/0x190 drivers/net/ipvlan/ipvlan_main.c:222 __netdev_start_xmit include/linux/netdevice.h:4825 [inline] netdev_start_xmit include/linux/netdevice.h:4839 [inline] __dev_direct_xmit+0x527/0x730 net/core/dev.c:4262 dev_direct_xmit include/linux/netdevice.h:2873 [inline] packet_direct_xmit+0x1a5/0x280 net/packet/af_packet.c:244 packet_snd net/packet/af_packet.c:3006 [inline] packet_sendmsg+0x2405/0x52b0 net/packet/af_packet.c:3031 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 __sys_sendto+0x21c/0x320 net/socket.c:1977 __do_sys_sendto net/socket.c:1989 [inline] __se_sys_sendto net/socket.c:1985 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1985 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x443a19 Code: 28 c3 e8 4a 15 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffdd83cc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fffdd83cc98 RCX: 0000000000443a19 RDX: 000000000000000e RSI: 0000000020000000 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffffffffff09 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffdd83cca0 R13: 00007fffdd83cc94 R14: 0000000000000003 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea00051ce280 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14738a flags: 0x57ff00000000000() raw: 057ff00000000000 0000000000000000 ffffea0000000000 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88814738a680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88814738a700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88814738a780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88814738a800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88814738a880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================