bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 ================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_add_virtual_monitor+0xa42/0xce0 net/mac80211/iface.c:1255 Read of size 1 at addr ffff8880413dbd50 by task syz.0.0/5333 CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 ieee80211_add_virtual_monitor+0xa42/0xce0 net/mac80211/iface.c:1255 ieee80211_do_stop+0x1786/0x1f70 net/mac80211/iface.c:746 ieee80211_stop+0x1b1/0x240 net/mac80211/iface.c:828 __dev_close_many+0x344/0x6b0 net/core/dev.c:1756 __dev_close net/core/dev.c:1768 [inline] __dev_change_flags+0x2be/0x680 net/core/dev.c:9732 netif_change_flags+0x88/0x1a0 net/core/dev.c:9797 do_setlink+0xc55/0x41c0 net/core/rtnetlink.c:3158 rtnl_group_changelink net/core/rtnetlink.c:3790 [inline] __rtnl_newlink net/core/rtnetlink.c:3944 [inline] rtnl_newlink+0x14b0/0x1c90 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:742 ____sys_sendmsg+0x505/0x820 net/socket.c:2592 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2681 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f25a858f7c9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f25a943c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f25a87e6090 RCX: 00007f25a858f7c9 RDX: 0000000000000000 RSI: 0000200000000040 RDI: 0000000000000006 RBP: 00007f25a8613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f25a87e6128 R14: 00007f25a87e6090 R15: 00007ffc6498da88 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880413d8000 pfn:0x413d8 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880327fc002 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f8(unknown) raw: 04fff00000000040 0000000000000000 dead000000000122 0000000000000000 raw: ffff8880413d8000 0000000000000000 00000000f8000000 ffff8880327fc002 head: 04fff00000000040 0000000000000000 dead000000000122 0000000000000000 head: ffff8880413d8000 0000000000000000 00000000f8000000 ffff8880327fc002 head: 04fff00000000002 ffffea000104f601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP), pid 5332, tgid 5331 (syz.0.0), ts 74320852849, free_ts 72618948194 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0x24e0/0x2580 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486 ___kmalloc_large_node+0x4e/0x150 mm/slub.c:5598 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5629 __do_kmalloc_node mm/slub.c:5645 [inline] __kvmalloc_node_noprof+0x6e/0x920 mm/slub.c:7136 alloc_netdev_mqs+0xa6/0x11b0 net/core/dev.c:11997 ieee80211_if_add+0x45c/0x1370 net/mac80211/iface.c:2227 ieee80211_add_iface+0xb5/0x5a0 net/mac80211/cfg.c:217 rdev_add_virtual_intf net/wireless/rdev-ops.h:50 [inline] _nl80211_new_interface net/wireless/nl80211.c:4706 [inline] nl80211_new_interface+0x883/0x1130 net/wireless/nl80211.c:4764 genl_family_rcv_msg_doit+0x215/0x300 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x60e/0x790 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344 page last free pid 5310 tgid 5310 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc8/0xd30 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x146/0x170 mm/slub.c:3886 ___slab_alloc+0x6f7/0x1820 mm/slub.c:4603 __slab_alloc+0x65/0x100 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] __kmalloc_cache_node_noprof+0x4b3/0x700 mm/slub.c:5784 kmalloc_node_noprof include/linux/slab.h:983 [inline] alloc_mem_cgroup_per_node_info mm/memcontrol.c:3687 [inline] mem_cgroup_alloc mm/memcontrol.c:3769 [inline] mem_cgroup_css_alloc+0x505/0x2000 mm/memcontrol.c:3814 css_create kernel/cgroup/cgroup.c:5797 [inline] cgroup_apply_control_enable+0x3d4/0xa80 kernel/cgroup/cgroup.c:3391 cgroup_mkdir+0xd06/0xf60 kernel/cgroup/cgroup.c:6023 kernfs_iop_mkdir+0x211/0x350 fs/kernfs/dir.c:1273 vfs_mkdir+0x512/0x5b0 fs/namei.c:5130 do_mkdirat+0x276/0x4b0 fs/namei.c:5164 __do_sys_mkdirat fs/namei.c:5186 [inline] __se_sys_mkdirat fs/namei.c:5184 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:5184 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880413dbc00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8880413dbc80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff8880413dbd00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff8880413dbd80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8880413dbe00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================