================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:772 Read of size 2 at addr ffff88802fc56dfb by task syz.3.2718/14120 CPU: 1 PID: 14120 Comm: syz.3.2718 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:3122 [inline] packet_sendmsg+0x3b4f/0x4de0 net/packet/af_packet.c:3153 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:0x7f3fa6f72559 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:00007f3fa51c9028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f3fa71f8fa0 RCX: 00007f3fa6f72559 RDX: 0000000000000000 RSI: 0000200000000940 RDI: 0000000000000005 RBP: 00007f3fa7009b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3fa71f9038 R14: 00007f3fa71f8fa0 R15: 00007fff4de71368 Allocated by task 13598: 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_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 copy_array kernel/bpf/verifier.c:778 [inline] copy_stack_state kernel/bpf/verifier.c:829 [inline] copy_func_state kernel/bpf/verifier.c:950 [inline] copy_verifier_state+0x877/0xd00 kernel/bpf/verifier.c:986 push_stack+0x1a5/0x510 kernel/bpf/verifier.c:1057 check_cond_jmp_op kernel/bpf/verifier.c:9368 [inline] do_check+0xc5b3/0xf170 kernel/bpf/verifier.c:11529 do_check_common+0xe7f/0x16e0 kernel/bpf/verifier.c:13542 do_check_main kernel/bpf/verifier.c:13605 [inline] bpf_check+0x32e9/0xf5f0 kernel/bpf/verifier.c:14188 bpf_prog_load+0xfdf/0x14e0 kernel/bpf/syscall.c:2354 __sys_bpf+0x532/0x6f0 kernel/bpf/syscall.c:4657 __do_sys_bpf kernel/bpf/syscall.c:4761 [inline] __se_sys_bpf kernel/bpf/syscall.c:4759 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4759 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 ffff88802fc54000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 3579 bytes to the right of 8192-byte region [ffff88802fc54000, ffff88802fc56000) The buggy address belongs to the page: page:ffffea0000bf1400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2fc50 head:ffffea0000bf1400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000200000001 ffff888017842280 raw: 0000000000000000 0000000080020002 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 13598, ts 654802413622, free_ts 541507693259 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] __kmalloc_track_caller+0x11b/0x330 mm/slub.c:4930 copy_array kernel/bpf/verifier.c:778 [inline] copy_stack_state kernel/bpf/verifier.c:829 [inline] copy_func_state kernel/bpf/verifier.c:950 [inline] copy_verifier_state+0x877/0xd00 kernel/bpf/verifier.c:986 push_stack+0x1a5/0x510 kernel/bpf/verifier.c:1057 check_cond_jmp_op kernel/bpf/verifier.c:9368 [inline] do_check+0xc5b3/0xf170 kernel/bpf/verifier.c:11529 do_check_common+0xe7f/0x16e0 kernel/bpf/verifier.c:13542 do_check_main kernel/bpf/verifier.c:13605 [inline] bpf_check+0x32e9/0xf5f0 kernel/bpf/verifier.c:14188 bpf_prog_load+0xfdf/0x14e0 kernel/bpf/syscall.c:2354 __sys_bpf+0x532/0x6f0 kernel/bpf/syscall.c:4657 __do_sys_bpf kernel/bpf/syscall.c:4761 [inline] __se_sys_bpf kernel/bpf/syscall.c:4759 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4759 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 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_pg_vec net/packet/af_packet.c:4373 [inline] packet_set_ring+0x1949/0x24a0 net/packet/af_packet.c:4596 packet_release+0x778/0xc40 net/packet/af_packet.c:3202 __sock_release net/socket.c:651 [inline] sock_close+0xbf/0x210 net/socket.c:1346 __fput+0x212/0x8c0 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88802fc56c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802fc56d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802fc56d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802fc56e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802fc56e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================