IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 ================================================================== 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 ffff88809b7530c1 by task syz-executor445/8105 CPU: 0 PID: 8105 Comm: syz-executor445 Not tainted 4.19.93-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:4308 [inline] netdev_start_xmit include/linux/netdevice.h:4317 [inline] dev_direct_xmit+0x34d/0x650 net/core/dev.c:3909 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 __sys_sendto+0x262/0x380 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1795 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x442da9 Code: e8 ac 07 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 1b 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff5084b348 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442da9 RDX: 000000000000000e RSI: 0000000020000080 RDI: 0000000000000003 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000403ce0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 1: 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 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x700 mm/slab.c:3559 kmem_cache_zalloc include/linux/slab.h:699 [inline] __kernfs_new_node+0xef/0x6f0 fs/kernfs/dir.c:633 kernfs_new_node+0x99/0x130 fs/kernfs/dir.c:693 __kernfs_create_file+0x51/0x33b fs/kernfs/file.c:992 sysfs_add_file_mode_ns+0x222/0x560 fs/sysfs/file.c:306 create_files fs/sysfs/group.c:63 [inline] internal_create_group+0x383/0xc30 fs/sysfs/group.c:147 sysfs_create_group fs/sysfs/group.c:173 [inline] sysfs_create_groups fs/sysfs/group.c:200 [inline] sysfs_create_groups+0x9b/0x141 fs/sysfs/group.c:190 device_add_groups drivers/base/core.c:1117 [inline] device_add_attrs drivers/base/core.c:1276 [inline] device_add+0x12de/0x1760 drivers/base/core.c:1954 netdev_register_kobject+0x183/0x3b0 net/core/net-sysfs.c:1756 register_netdevice+0x875/0xff0 net/core/dev.c:8547 __ip_tunnel_create+0x36b/0x530 net/ipv4/ip_tunnel.c:282 ip_tunnel_init_net+0x375/0x9e0 net/ipv4/ip_tunnel.c:1026 ipgre_init_net+0x25/0x30 net/ipv4/ip_gre.c:1065 ops_init+0xb3/0x410 net/core/net_namespace.c:129 __register_pernet_operations net/core/net_namespace.c:943 [inline] register_pernet_operations+0x382/0x7f0 net/core/net_namespace.c:1014 register_pernet_device+0x2a/0x80 net/core/net_namespace.c:1101 ipgre_init+0x23/0x1a4 net/ipv4/ip_gre.c:1695 do_one_initcall+0x107/0x78c init/main.c:883 do_initcall_level init/main.c:951 [inline] do_initcalls init/main.c:959 [inline] do_basic_setup init/main.c:977 [inline] kernel_init_freeable+0x4d4/0x5c8 init/main.c:1144 kernel_init+0x12/0x1c3 init/main.c:1061 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88809b753000 which belongs to the cache kernfs_node_cache of size 160 The buggy address is located 33 bytes to the right of 160-byte region [ffff88809b753000, ffff88809b7530a0) The buggy address belongs to the page: page:ffffea00026dd4c0 count:1 mapcount:0 mapping:ffff88821bc47e00 index:0xffff88809b753fee flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00026dd408 ffffea00026dd508 ffff88821bc47e00 raw: ffff88809b753fee ffff88809b753000 0000000100000012 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809b752f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809b753000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809b753080: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 ^ ffff88809b753100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809b753180: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================