================================================================== 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:255 [inline] BUG: KASAN: slab-out-of-bounds in macvlan_broadcast+0x57c/0x660 drivers/net/macvlan.c:281 Read of size 4 at addr ffff888095006a81 by task syz-executor.0/23180 CPU: 1 PID: 23180 Comm: syz-executor.0 Not tainted 4.19.94-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.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:443 __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] mc_hash drivers/net/macvlan.c:255 [inline] macvlan_broadcast+0x57c/0x660 drivers/net/macvlan.c:281 macvlan_queue_xmit drivers/net/macvlan.c:524 [inline] macvlan_start_xmit+0x408/0x785 drivers/net/macvlan.c:563 __netdev_start_xmit include/linux/netdevice.h:4312 [inline] netdev_start_xmit include/linux/netdevice.h:4321 [inline] dev_direct_xmit+0x34d/0x650 net/core/dev.c:3910 packet_direct_xmit+0xf9/0x170 net/packet/af_packet.c:246 packet_snd net/packet/af_packet.c:2958 [inline] packet_sendmsg+0x3bb2/0x6440 net/packet/af_packet.c:2983 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 sock_write_iter+0x2cb/0x400 net/socket.c:901 call_write_iter include/linux/fs.h:1820 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x587/0x810 fs/read_write.c:487 kobject: 'queues' (00000000a6d9dc56): kobject_uevent_env: filter function caused the event to drop! vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0x14f/0x2d0 fs/read_write.c:599 kobject: 'rx-0' (00000000773e414b): kobject_add_internal: parent: 'queues', set: 'queues' __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:608 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45af49 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f24b86e9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 000000000000000e RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f24b86ea6d4 R13: 00000000004cce79 R14: 00000000004e82b8 R15: 00000000ffffffff Allocated by task 8097: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kobject: 'rx-0' (00000000773e414b): kobject_uevent_env kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x700 mm/slab.c:3559 getname_flags fs/namei.c:140 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:129 user_path_at_empty+0x2f/0x50 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x129/0x200 fs/stat.c:185 vfs_lstat include/linux/fs.h:3133 [inline] __do_sys_newlstat+0xa4/0x130 fs/stat.c:350 __se_sys_newlstat fs/stat.c:344 [inline] __x64_sys_newlstat+0x54/0x80 fs/stat.c:344 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8097: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3765 putname+0xef/0x130 fs/namei.c:261 filename_lookup+0x28f/0x410 fs/namei.c:2357 user_path_at_empty+0x43/0x50 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x129/0x200 fs/stat.c:185 vfs_lstat include/linux/fs.h:3133 [inline] __do_sys_newlstat+0xa4/0x130 fs/stat.c:350 kobject: 'rx-0' (00000000773e414b): fill_kobj_path: path = '/devices/virtual/net/ip6gre0/queues/rx-0' __se_sys_newlstat fs/stat.c:344 [inline] __x64_sys_newlstat+0x54/0x80 fs/stat.c:344 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888095006ac0 which belongs to the cache names_cache of size 4096 The buggy address is located 63 bytes to the left of 4096-byte region [ffff888095006ac0, ffff888095007ac0) The buggy address belongs to the page: page:ffffea0002540180 count:1 mapcount:0 mapping:ffff88821bc47980 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea00023b2c08 ffffea000262bb88 ffff88821bc47980 raw: 0000000000000000 ffff888095006ac0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095006980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095006a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888095006a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb kobject: 'tx-0' (0000000077c1de83): kobject_add_internal: parent: 'queues', set: 'queues' ^ ffff888095006b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888095006b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================