================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:772 Read of size 2 at addr ffff888062894542 by task syz.2.1683/10177 CPU: 0 PID: 10177 Comm: syz.2.1683 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:772 netdev_core_pick_tx+0x12c/0x300 net/core/dev.c:4185 __dev_queue_xmit+0x797/0x2e50 net/core/dev.c:4262 packet_snd net/packet/af_packet.c:3126 [inline] packet_sendmsg+0x3bbd/0x4e70 net/packet/af_packet.c:3157 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg+0x1b7/0x2a0 net/socket.c:2536 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f0870285b19 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f086e4dc028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f087050bfa0 RCX: 00007f0870285b19 RDX: 0000000000004005 RSI: 0000200000000480 RDI: 0000000000000007 RBP: 00007f087031daf8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f087050c038 R14: 00007f087050bfa0 R15: 00007ffe918db7e8 Allocated by task 4190: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x92/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xe3/0x6b0 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d2/0x390 fs/sysfs/file.c:321 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2491 [inline] device_add_attrs+0x82/0x690 drivers/base/core.c:2639 device_add+0x677/0x1050 drivers/base/core.c:3363 netdev_register_kobject+0x184/0x320 net/core/net-sysfs.c:2014 register_netdevice+0x10e8/0x1720 net/core/dev.c:10424 register_netdev+0x37/0x50 net/core/dev.c:10548 vti6_init_net+0x234/0x2e0 net/ipv6/ip6_vti.c:1179 ops_init+0x360/0x5f0 net/core/net_namespace.c:138 setup_net+0x39e/0xa10 net/core/net_namespace.c:333 copy_net_ns+0x33e/0x5b0 net/core/net_namespace.c:503 create_new_namespaces+0x3ce/0x700 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x116/0x160 kernel/nsproxy.c:226 ksys_unshare+0x4f6/0x8e0 kernel/fork.c:3196 __do_sys_unshare kernel/fork.c:3273 [inline] __se_sys_unshare kernel/fork.c:3271 [inline] __x64_sys_unshare+0x34/0x40 kernel/fork.c:3271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888062894488 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 18 bytes to the right of 168-byte region [ffff888062894488, ffff888062894530) The buggy address belongs to the page: page:ffffea00018a2500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62894 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff8880179dfb40 raw: 0000000000000000 0000000000110011 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 4190, ts 62125170586, free_ts 21357744502 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0xf0/0x280 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xe3/0x6b0 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d2/0x390 fs/sysfs/file.c:321 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2491 [inline] device_add_attrs+0x82/0x690 drivers/base/core.c:2639 device_add+0x677/0x1050 drivers/base/core.c:3363 netdev_register_kobject+0x184/0x320 net/core/net-sysfs.c:2014 register_netdevice+0x10e8/0x1720 net/core/dev.c:10424 register_netdev+0x37/0x50 net/core/dev.c:10548 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 free_contig_range+0x96/0xf0 mm/page_alloc.c:9428 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x272/0x730 init/main.c:1276 do_initcall_level+0x13d/0x1f0 init/main.c:1349 do_initcalls+0x4b/0x90 init/main.c:1365 kernel_init_freeable+0x3d5/0x560 init/main.c:1589 kernel_init+0x19/0x1b0 init/main.c:1480 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888062894400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff888062894480: fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888062894500: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 ^ ffff888062894580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888062894600: 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 ==================================================================