================================================================== BUG: KASAN: use-after-free in ether_addr_equal include/linux/etherdevice.h:349 [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+0x1731/0x19d0 drivers/net/ipvlan/ipvlan_core.c:645 Read of size 4 at addr ffff88806f05a7ff by task syz-executor133/3607 CPU: 0 PID: 3607 Comm: syz-executor133 Not tainted 5.16.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:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x320 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:450 ether_addr_equal include/linux/etherdevice.h:349 [inline] ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:599 [inline] ipvlan_queue_xmit+0x1731/0x19d0 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:4994 [inline] netdev_start_xmit include/linux/netdevice.h:5008 [inline] __dev_direct_xmit+0x530/0x740 net/core/dev.c:4297 dev_direct_xmit include/linux/netdevice.h:2978 [inline] packet_direct_xmit+0x1b8/0x2c0 net/packet/af_packet.c:281 packet_snd net/packet/af_packet.c:3052 [inline] packet_sendmsg+0x2223/0x5280 net/packet/af_packet.c:3079 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 __sys_sendto+0x21c/0x320 net/socket.c:2036 __do_sys_sendto net/socket.c:2048 [inline] __se_sys_sendto net/socket.c:2044 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7efd9ae4dcd9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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:00007ffdbd78db18 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007efd9ae4dcd9 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000020000040 R09: 0000000000000014 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdbd78db40 R13: 00000000000f4240 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0001bc1680 refcount:0 mapcount:0 mapping:0000000000000000 index:0x100 pfn:0x6f05a flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000100 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x2a20(GFP_ATOMIC|__GFP_NOWARN), pid 3602, ts 40545051440, free_ts 40545056049 prep_new_page mm/page_alloc.c:2418 [inline] get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4149 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5369 alloc_pages+0x1a7/0x300 mm/mempolicy.c:2191 __stack_depot_save+0x3b5/0x4f0 lib/stackdepot.c:359 kasan_save_stack+0x38/0x50 mm/kasan/common.c:40 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3234 [inline] slab_alloc mm/slub.c:3242 [inline] kmem_cache_alloc+0x202/0x3a0 mm/slub.c:3247 skb_clone+0x170/0x3c0 net/core/skbuff.c:1521 packet_rcv+0xe26/0x13e0 net/packet/af_packet.c:2155 deliver_skb net/core/dev.c:2218 [inline] __netif_receive_skb_core+0x9ce/0x3770 net/core/dev.c:5356 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5463 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5579 process_backlog+0x2a5/0x6c0 net/core/dev.c:6455 __napi_poll+0xaf/0x440 net/core/dev.c:7023 napi_poll net/core/dev.c:7090 [inline] net_rx_action+0x801/0xb40 net/core/dev.c:7177 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1338 [inline] free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3388 __stack_depot_save+0x16d/0x4f0 lib/stackdepot.c:391 kasan_save_stack+0x38/0x50 mm/kasan/common.c:40 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3234 [inline] slab_alloc mm/slub.c:3242 [inline] kmem_cache_alloc+0x202/0x3a0 mm/slub.c:3247 skb_clone+0x170/0x3c0 net/core/skbuff.c:1521 packet_rcv+0xe26/0x13e0 net/packet/af_packet.c:2155 deliver_skb net/core/dev.c:2218 [inline] __netif_receive_skb_core+0x9ce/0x3770 net/core/dev.c:5356 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5463 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5579 process_backlog+0x2a5/0x6c0 net/core/dev.c:6455 __napi_poll+0xaf/0x440 net/core/dev.c:7023 napi_poll net/core/dev.c:7090 [inline] net_rx_action+0x801/0xb40 net/core/dev.c:7177 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 do_softirq.part.0+0xde/0x130 kernel/softirq.c:459 Memory state around the buggy address: ffff88806f05a680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f05a700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806f05a780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806f05a800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f05a880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================