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 vxlan_vnifilter_dump_dev+0x9a0/0xb40 drivers/net/vxlan/vxlan_vnifilter.c:349 Read of size 4 at addr ffff88801e950e70 by task syz-executor262/3597 CPU: 0 PID: 3597 Comm: syz-executor262 Tainted: G W 5.17.0-syzkaller-10107-gd717e4cae0fe #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+0xeb/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 vxlan_vnifilter_dump_dev+0x9a0/0xb40 drivers/net/vxlan/vxlan_vnifilter.c:349 vxlan_vnifilter_dump+0x3ff/0x650 drivers/net/vxlan/vxlan_vnifilter.c:428 netlink_dump+0x4b5/0xb70 net/netlink/af_netlink.c:2270 __netlink_dump_start+0x647/0x900 net/netlink/af_netlink.c:2375 netlink_dump_start include/linux/netlink.h:245 [inline] rtnetlink_rcv_msg+0x70c/0xb80 net/core/rtnetlink.c:5953 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2496 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 ____sys_sendmsg+0x6e2/0x800 net/socket.c:2413 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff73ad7fbe9 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:00007ffee02a27e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff73ad7fbe9 RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000004 RBP: 0000000000000003 R08: 000000000000000a R09: 000000000000000a R10: 000000000000000a R11: 0000000000000246 R12: 00007ffee02a2820 R13: 00007ffee02a2840 R14: 00007ffee02a2818 R15: 0000000000000000 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88801e950000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1648 bytes to the right of 2048-byte region [ffff88801e950000, ffff88801e950800) The buggy address belongs to the physical page: page:ffffea00007a5400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e950 head:ffffea00007a5400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888010c42000 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3597, tgid 3597 (syz-executor262), ts 37180776908, free_ts 33516642825 prep_new_page mm/page_alloc.c:2438 [inline] get_page_from_freelist+0xba2/0x3df0 mm/page_alloc.c:4179 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5405 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2262 alloc_slab_page mm/slub.c:1799 [inline] allocate_slab+0x26c/0x3c0 mm/slub.c:1944 new_slab mm/slub.c:2004 [inline] ___slab_alloc+0x8df/0xf20 mm/slub.c:3005 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3092 slab_alloc_node mm/slub.c:3183 [inline] slab_alloc mm/slub.c:3225 [inline] __kmalloc_track_caller+0x2e7/0x320 mm/slub.c:4916 kmemdup+0x23/0x50 mm/util.c:128 kmemdup include/linux/fortify-string.h:440 [inline] neigh_sysctl_register+0x9a/0x5e0 net/core/neighbour.c:3731 addrconf_sysctl_register+0xb6/0x1d0 net/ipv6/addrconf.c:7095 ipv6_add_dev+0xa16/0x12a0 net/ipv6/addrconf.c:450 addrconf_notify+0x614/0x1ba0 net/ipv6/addrconf.c:3521 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1938 call_netdevice_notifiers_extack net/core/dev.c:1976 [inline] call_netdevice_notifiers net/core/dev.c:1990 [inline] register_netdevice+0x109e/0x15b0 net/core/dev.c:9994 __ip_tunnel_create+0x398/0x5c0 net/ipv4/ip_tunnel.c:267 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1353 [inline] free_pcp_prepare+0x549/0xd20 mm/page_alloc.c:1403 free_unref_page_prepare mm/page_alloc.c:3325 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3420 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2523 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:749 [inline] slab_alloc_node mm/slub.c:3217 [inline] slab_alloc mm/slub.c:3225 [inline] __kmalloc+0x200/0x350 mm/slub.c:4410 kmalloc include/linux/slab.h:586 [inline] load_elf_phdrs+0x103/0x210 fs/binfmt_elf.c:481 load_elf_binary+0x1dc/0x4df0 fs/binfmt_elf.c:861 search_binary_handler fs/exec.c:1727 [inline] exec_binprm fs/exec.c:1768 [inline] bprm_execve fs/exec.c:1837 [inline] bprm_execve+0x7ef/0x19b0 fs/exec.c:1799 do_execveat_common+0x727/0x890 fs/exec.c:1942 do_execve fs/exec.c:2012 [inline] __do_sys_execve fs/exec.c:2088 [inline] __se_sys_execve fs/exec.c:2083 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:2083 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff88801e950d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801e950d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801e950e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801e950e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801e950f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================