================================================================== BUG: KASAN: slab-out-of-bounds in ether_addr_equal include/linux/etherdevice.h:329 [inline] BUG: KASAN: slab-out-of-bounds in ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:599 [inline] BUG: KASAN: slab-out-of-bounds in ipvlan_queue_xmit+0x1681/0x18a0 drivers/net/ipvlan/ipvlan_core.c:645 Read of size 4 at addr ffff88801db9f7ff by task syz-executor.0/16768 CPU: 1 PID: 16768 Comm: syz-executor.0 Tainted: G W 5.13.0-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_lvl+0xcd/0x134 lib/dump_stack.c:96 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:436 ether_addr_equal include/linux/etherdevice.h:329 [inline] ipvlan_xmit_mode_l2 drivers/net/ipvlan/ipvlan_core.c:599 [inline] ipvlan_queue_xmit+0x1681/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:4944 [inline] netdev_start_xmit include/linux/netdevice.h:4958 [inline] __dev_direct_xmit+0x527/0x730 net/core/dev.c:4341 dev_direct_xmit include/linux/netdevice.h:2958 [inline] packet_direct_xmit+0x1a5/0x280 net/packet/af_packet.c:244 packet_snd net/packet/af_packet.c:3016 [inline] packet_sendmsg+0x22f2/0x5290 net/packet/af_packet.c:3044 sock_sendmsg_nosec net/socket.c:703 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:723 __sys_sendto+0x21c/0x320 net/socket.c:2019 __do_sys_sendto net/socket.c:2031 [inline] __se_sys_sendto net/socket.c:2027 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2027 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:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa2f813a188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000020000040 R09: 0000000000000014 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd4da7e77f R14: 00007fa2f813a300 R15: 0000000000022000 Allocated by task 16531: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x84/0xa0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc_node mm/slub.c:2970 [inline] slab_alloc mm/slub.c:2978 [inline] kmem_cache_alloc+0x29b/0x4a0 mm/slub.c:2983 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags fs/namei.c:2734 [inline] user_path_at_empty+0xa1/0x100 fs/namei.c:2734 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x142/0x390 fs/stat.c:203 vfs_fstatat fs/stat.c:225 [inline] vfs_lstat include/linux/fs.h:3384 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:380 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 Freed by task 16531: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:360 ____kasan_slab_free mm/kasan/common.c:366 [inline] ____kasan_slab_free mm/kasan/common.c:328 [inline] __kasan_slab_free+0xfb/0x130 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:229 [inline] slab_free_hook mm/slub.c:1639 [inline] slab_free_freelist_hook+0xdf/0x240 mm/slub.c:1664 slab_free mm/slub.c:3224 [inline] kmem_cache_free+0x8e/0x5a0 mm/slub.c:3240 putname+0xe1/0x120 fs/namei.c:259 filename_lookup+0x3c3/0x570 fs/namei.c:2464 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x142/0x390 fs/stat.c:203 vfs_fstatat fs/stat.c:225 [inline] vfs_lstat include/linux/fs.h:3384 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:380 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 ffff88801db9e600 which belongs to the cache names_cache of size 4096 The buggy address is located 511 bytes to the right of 4096-byte region [ffff88801db9e600, ffff88801db9f600) The buggy address belongs to the page: page:ffffea000076e600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1db98 head:ffffea000076e600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff8880109ca3c0 raw: 0000000000000000 0000000000070007 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 4875, ts 806370807250, free_ts 806225936025 prep_new_page mm/page_alloc.c:2445 [inline] get_page_from_freelist+0xa72/0x2f80 mm/page_alloc.c:4178 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5386 alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2272 alloc_slab_page mm/slub.c:1702 [inline] allocate_slab+0x32b/0x4c0 mm/slub.c:1842 new_slab mm/slub.c:1905 [inline] new_slab_objects mm/slub.c:2651 [inline] ___slab_alloc+0x4ba/0x820 mm/slub.c:2814 __slab_alloc.constprop.0+0xa7/0xf0 mm/slub.c:2854 slab_alloc_node mm/slub.c:2936 [inline] slab_alloc mm/slub.c:2978 [inline] kmem_cache_alloc+0x3cd/0x4a0 mm/slub.c:2983 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags fs/namei.c:2734 [inline] user_path_at_empty+0xa1/0x100 fs/namei.c:2734 do_readlinkat+0xcd/0x2f0 fs/stat.c:425 __do_sys_readlinkat fs/stat.c:452 [inline] __se_sys_readlinkat fs/stat.c:449 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:449 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1355 [inline] free_pcp_prepare+0x2c5/0x780 mm/page_alloc.c:1406 free_unref_page_prepare mm/page_alloc.c:3341 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3420 unfreeze_partials+0x17c/0x1d0 mm/slub.c:2432 put_cpu_partial+0x13d/0x230 mm/slub.c:2468 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0x8e/0xa0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc_node mm/slub.c:2970 [inline] slab_alloc mm/slub.c:2978 [inline] kmem_cache_alloc+0x29b/0x4a0 mm/slub.c:2983 vm_area_alloc+0x1c/0x110 kernel/fork.c:349 mmap_region+0x9a4/0x1760 mm/mmap.c:1779 do_mmap+0x86e/0x11d0 mm/mmap.c:1585 vm_mmap_pgoff+0x1b7/0x290 mm/util.c:519 ksys_mmap_pgoff+0xe4/0x620 mm/mmap.c:1636 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 Memory state around the buggy address: ffff88801db9f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801db9f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801db9f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801db9f800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801db9f880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================