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: slab-out-of-bounds in ether_addr_equal include/linux/etherdevice.h:349 [inline] BUG: KASAN: slab-out-of-bounds in ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:598 [inline] BUG: KASAN: slab-out-of-bounds in ipvlan_queue_xmit+0x173f/0x19e0 drivers/net/ipvlan/ipvlan_core.c:644 Read of size 4 at addr ffff88806dfbabff by task syz-executor116/3591 CPU: 0 PID: 3591 Comm: syz-executor116 Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #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/0x303 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 ether_addr_equal include/linux/etherdevice.h:349 [inline] ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:598 [inline] ipvlan_queue_xmit+0x173f/0x19e0 drivers/net/ipvlan/ipvlan_core.c:644 ipvlan_start_xmit+0x45/0x190 drivers/net/ipvlan/ipvlan_main.c:221 __netdev_start_xmit include/linux/netdevice.h:4683 [inline] netdev_start_xmit include/linux/netdevice.h:4697 [inline] __dev_direct_xmit+0x52f/0x740 net/core/dev.c:4184 dev_direct_xmit include/linux/netdevice.h:2891 [inline] packet_direct_xmit+0x1b8/0x2c0 net/packet/af_packet.c:282 packet_snd net/packet/af_packet.c:3057 [inline] packet_sendmsg+0x2226/0x5270 net/packet/af_packet.c:3084 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 __sys_sendto+0x21c/0x320 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2048 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:0x7f68b39ff799 Code: 5c 01 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff588e8ce8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f68b3a82e90 RCX: 00007f68b39ff799 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000020000040 R09: 0000000000000014 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff588e8d40 R13: 00007fff588e8d30 R14: 00007fff588e8d60 R15: 00007fff588e8d24 Allocated by task 3591: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] __kasan_slab_alloc+0x85/0xb0 mm/kasan/common.c:469 kasan_slab_alloc include/linux/kasan.h:260 [inline] slab_post_alloc_hook mm/slab.h:732 [inline] slab_alloc mm/slab.c:3315 [inline] kmem_cache_alloc+0x265/0x560 mm/slab.c:3499 fib_table_insert+0x38e/0x1bd0 net/ipv4/fib_trie.c:1353 fib_magic+0x455/0x540 net/ipv4/fib_frontend.c:1090 fib_add_ifaddr+0x395/0x500 net/ipv4/fib_frontend.c:1125 fib_netdev_event+0x462/0x680 net/ipv4/fib_frontend.c:1469 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1919 call_netdevice_notifiers_extack net/core/dev.c:1931 [inline] call_netdevice_notifiers net/core/dev.c:1945 [inline] __dev_notify_flags+0x110/0x2b0 net/core/dev.c:8177 dev_change_flags+0x112/0x170 net/core/dev.c:8215 do_setlink+0x96d/0x3a10 net/core/rtnetlink.c:2731 __rtnl_newlink+0xdf5/0x1760 net/core/rtnetlink.c:3416 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3531 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5596 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 __sys_sendto+0x21c/0x320 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2048 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 The buggy address belongs to the object at ffff88806dfbabb0 which belongs to the cache ip_fib_alias of size 56 The buggy address is located 23 bytes to the right of 56-byte region [ffff88806dfbabb0, ffff88806dfbabe8) The buggy address belongs to the page: page:ffffea0001b7ee80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6dfba flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001b7de08 ffff8880175a6f50 ffff8881460ea100 raw: 0000000000000000 ffff88806dfba000 000000010000002e 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2420c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 3591, ts 54401485435, free_ts 12904851914 prep_new_page mm/page_alloc.c:2434 [inline] get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4165 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5389 __alloc_pages_node include/linux/gfp.h:572 [inline] kmem_getpages mm/slab.c:1378 [inline] cache_grow_begin+0x75/0x390 mm/slab.c:2584 cache_alloc_refill+0x27f/0x380 mm/slab.c:2957 ____cache_alloc mm/slab.c:3040 [inline] ____cache_alloc mm/slab.c:3023 [inline] __do_cache_alloc mm/slab.c:3267 [inline] slab_alloc mm/slab.c:3308 [inline] kmem_cache_alloc+0x450/0x560 mm/slab.c:3499 fib_table_insert+0x38e/0x1bd0 net/ipv4/fib_trie.c:1353 fib_magic+0x455/0x540 net/ipv4/fib_frontend.c:1090 fib_add_ifaddr+0x16c/0x500 net/ipv4/fib_frontend.c:1112 fib_inetaddr_event+0x162/0x2a0 net/ipv4/fib_frontend.c:1423 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 blocking_notifier_call_chain kernel/notifier.c:319 [inline] blocking_notifier_call_chain+0x67/0x90 kernel/notifier.c:307 __inet_insert_ifa+0x919/0xc20 net/ipv4/devinet.c:555 inet_rtm_newaddr+0xcb9/0x13c0 net/ipv4/devinet.c:958 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5596 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1352 [inline] free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1404 free_unref_page_prepare mm/page_alloc.c:3325 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3404 free_contig_range+0xa8/0xf0 mm/page_alloc.c:9335 destroy_args+0xa8/0x646 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x298e/0x2a20 mm/debug_vm_pgtable.c:1332 do_one_initcall+0x103/0x650 init/main.c:1300 do_initcall_level init/main.c:1373 [inline] do_initcalls init/main.c:1389 [inline] do_basic_setup init/main.c:1408 [inline] kernel_init_freeable+0x6b1/0x73a init/main.c:1613 kernel_init+0x1a/0x1d0 init/main.c:1502 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88806dfbaa80: 00 fc fc fc fc 00 00 00 00 00 00 00 fc fc fc fc ffff88806dfbab00: 00 00 00 00 00 00 00 fc fc fc fc 00 00 00 00 00 >ffff88806dfbab80: 00 00 fc fc fc fc 00 00 00 00 00 00 00 fc fc fc ^ ffff88806dfbac00: fc 00 00 00 00 00 00 00 fc fc fc fc 00 00 00 00 ffff88806dfbac80: 00 00 00 fc fc fc fc 00 00 00 00 00 00 00 fc fc ==================================================================