================================================================== BUG: KASAN: slab-out-of-bounds in add_del_if+0x13a/0x140 net/bridge/br_ioctl.c:85 Read of size 8 at addr ffff88806dc86c88 by task syz-executor.4/16343 CPU: 1 PID: 16343 Comm: syz-executor.4 Not tainted 5.14.0-rc3-syzkaller #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:105 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 add_del_if+0x13a/0x140 net/bridge/br_ioctl.c:85 br_ioctl_stub+0x1c6/0x7f0 net/bridge/br_ioctl.c:397 br_ioctl_call+0x5e/0xa0 net/socket.c:1092 dev_ifsioc+0xc1f/0xf60 net/core/dev_ioctl.c:382 dev_ioctl+0x1b9/0xee0 net/core/dev_ioctl.c:580 sock_do_ioctl+0x18b/0x210 net/socket.c:1129 sock_ioctl+0x2f1/0x640 net/socket.c:1232 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl fs/ioctl.c:1055 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055 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:0x4665e9 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:00007f7d4960d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000020000040 RSI: 00000000000089a3 RDI: 0000000000000005 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd8419815f R14: 00007f7d4960d300 R15: 0000000000022000 Allocated by task 8581: 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_kmalloc mm/kasan/common.c:513 [inline] ____kasan_kmalloc mm/kasan/common.c:472 [inline] __kasan_kmalloc+0x9b/0xd0 mm/kasan/common.c:522 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:587 kvmalloc include/linux/mm.h:806 [inline] kvzalloc include/linux/mm.h:814 [inline] alloc_netdev_mqs+0x98/0xe80 net/core/dev.c:10737 rtnl_create_link+0x95a/0xb80 net/core/rtnetlink.c:3174 __rtnl_newlink+0xf7e/0x1760 net/core/rtnetlink.c:3439 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3497 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5563 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 __sys_sendto+0x21c/0x320 net/socket.c:2030 __do_sys_sendto net/socket.c:2042 [inline] __se_sys_sendto net/socket.c:2038 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2038 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 ffff88806dc86000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 3208 bytes inside of 4096-byte region [ffff88806dc86000, ffff88806dc87000) The buggy address belongs to the page: page:ffffea0001b72000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6dc80 head:ffffea0001b72000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801084c280 raw: 0000000000000000 0000000000040004 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 0xd60c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 8795, ts 251669393270, free_ts 0 prep_new_page mm/page_alloc.c:2436 [inline] get_page_from_freelist+0xa72/0x2f80 mm/page_alloc.c:4169 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5391 alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2244 alloc_slab_page mm/slub.c:1688 [inline] allocate_slab+0x32e/0x4b0 mm/slub.c:1828 new_slab mm/slub.c:1891 [inline] new_slab_objects mm/slub.c:2637 [inline] ___slab_alloc+0x4ba/0x820 mm/slub.c:2800 __slab_alloc.constprop.0+0xa7/0xf0 mm/slub.c:2840 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node+0x2df/0x380 mm/slub.c:4156 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:587 kvmalloc include/linux/mm.h:806 [inline] kvzalloc include/linux/mm.h:814 [inline] alloc_netdev_mqs+0x98/0xe80 net/core/dev.c:10737 rtnl_create_link+0x95a/0xb80 net/core/rtnetlink.c:3174 __rtnl_newlink+0xf7e/0x1760 net/core/rtnetlink.c:3439 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3497 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5563 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 page_owner free stack trace missing Memory state around the buggy address: ffff88806dc86b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806dc86c00: 00 00 00 00 00 00 00 00 07 fc fc fc fc fc fc fc >ffff88806dc86c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806dc86d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806dc86d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================