device veth0_vlan entered promiscuous mode device veth1_vlan entered promiscuous mode ================================================================== BUG: KASAN: slab-out-of-bounds in __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] BUG: KASAN: slab-out-of-bounds in mc_hash drivers/net/macvlan.c:251 [inline] BUG: KASAN: slab-out-of-bounds in macvlan_broadcast+0x547/0x620 drivers/net/macvlan.c:277 Read of size 4 at addr ffff8880956c7401 by task syz-executor265/9262 CPU: 1 PID: 9262 Comm: syz-executor265 Not tainted 5.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:145 __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] mc_hash drivers/net/macvlan.c:251 [inline] macvlan_broadcast+0x547/0x620 drivers/net/macvlan.c:277 macvlan_queue_xmit drivers/net/macvlan.c:520 [inline] macvlan_start_xmit+0x402/0x77f drivers/net/macvlan.c:559 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] dev_direct_xmit+0x419/0x630 net/core/dev.c:4079 packet_direct_xmit+0x1a9/0x250 net/packet/af_packet.c:240 packet_snd net/packet/af_packet.c:2966 [inline] packet_sendmsg+0x260d/0x6220 net/packet/af_packet.c:2991 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:659 __sys_sendto+0x262/0x380 net/socket.c:1985 __do_sys_sendto net/socket.c:1997 [inline] __se_sys_sendto net/socket.c:1993 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1993 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x442529 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 5b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffeb4bb45a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442529 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000003 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000403aa0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 9110: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:486 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:521 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 user_path_at_empty+0x2f/0x50 fs/namei.c:2615 user_path_at include/linux/namei.h:49 [inline] do_faccessat+0x262/0x7f0 fs/open.c:398 __do_sys_access fs/open.c:450 [inline] __se_sys_access fs/open.c:448 [inline] __x64_sys_access+0x59/0x80 fs/open.c:448 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9110: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:335 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:474 kasan_slab_free+0xe/0x10 mm/kasan/common.c:483 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3694 putname+0xef/0x130 fs/namei.c:259 filename_lookup+0x28f/0x3f0 fs/namei.c:2344 user_path_at_empty+0x43/0x50 fs/namei.c:2615 user_path_at include/linux/namei.h:49 [inline] do_faccessat+0x262/0x7f0 fs/open.c:398 __do_sys_access fs/open.c:450 [inline] __se_sys_access fs/open.c:448 [inline] __x64_sys_access+0x59/0x80 fs/open.c:448 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880956c6180 which belongs to the cache names_cache of size 4096 The buggy address is located 641 bytes to the right of 4096-byte region [ffff8880956c6180, ffff8880956c7180) The buggy address belongs to the page: page:ffffea000255b180 refcount:1 mapcount:0 mapping:ffff8880aa5fda80 index:0x0 compound_mapcount: 0 raw: 00fffe0000010200 ffffea000248e208 ffffea000248e288 ffff8880aa5fda80 raw: 0000000000000000 ffff8880956c6180 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880956c7300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880956c7380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880956c7400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880956c7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880956c7500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================