device syzkaller0 entered promiscuous mode ================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:764 Read of size 2 at addr ffff88802490f5fb by task syz.2.1486/9613 CPU: 1 PID: 9613 Comm: syz.2.1486 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:764 netdev_core_pick_tx+0x118/0x2e0 net/core/dev.c:4184 __dev_queue_xmit+0x756/0x2f80 net/core/dev.c:4261 packet_snd net/packet/af_packet.c:3089 [inline] packet_sendmsg+0x3dba/0x5060 net/packet/af_packet.c:3120 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2445 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2499 __sys_sendmsg net/socket.c:2528 [inline] __do_sys_sendmsg net/socket.c:2537 [inline] __se_sys_sendmsg+0x1af/0x290 net/socket.c:2535 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:0x7f9de36d2e59 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:00007f9de192c028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f9de394bfa0 RCX: 00007f9de36d2e59 RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f9de3768d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9de394c038 R14: 00007f9de394bfa0 R15: 00007ffe9e8d1fc8 Allocated by task 1: 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+0xb5/0xf0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] device_private_init drivers/base/core.c:3256 [inline] device_add+0xbb/0x1000 drivers/base/core.c:3306 usb_add_gadget+0x17f/0x720 drivers/usb/gadget/udc/core.c:1346 usb_add_gadget_udc_release+0x17d/0x1d0 drivers/usb/gadget/udc/core.c:1408 dummy_udc_probe+0x6a1/0x7a0 drivers/usb/gadget/udc/dummy_hcd.c:1099 platform_probe+0x137/0x1c0 drivers/base/platform.c:1391 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:775 driver_probe_device+0x4f/0x420 drivers/base/dd.c:805 __device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429 __device_attach+0x2a8/0x480 drivers/base/dd.c:999 bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489 device_add+0xa3a/0x1000 drivers/base/core.c:3427 platform_device_add+0x4b9/0x820 drivers/base/platform.c:712 init+0xb3b/0x10d0 drivers/usb/gadget/udc/dummy_hcd.c:2860 do_one_initcall+0x272/0x730 init/main.c:1316 do_initcall_level+0x137/0x1f0 init/main.c:1389 do_initcalls+0x4b/0x90 init/main.c:1405 kernel_init_freeable+0x3e9/0x570 init/main.c:1629 kernel_init+0x19/0x1b0 init/main.c:1520 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88802490f400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 507 bytes inside of 512-byte region [ffff88802490f400, ffff88802490f600) The buggy address belongs to the page: page:ffffea0000924300 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802490ec00 pfn:0x2490c head:ffffea0000924300 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0000ac9e08 ffffea0001811a08 ffff888016c41c80 raw: ffff88802490ec00 000000000010000d 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 10621660942, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 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+0x80a/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_trace+0x1a5/0x2a0 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] device_private_init drivers/base/core.c:3256 [inline] device_add+0xbb/0x1000 drivers/base/core.c:3306 usb_add_gadget+0x2a6/0x720 drivers/usb/gadget/udc/core.c:1358 usb_add_gadget_udc_release+0x17d/0x1d0 drivers/usb/gadget/udc/core.c:1408 dummy_udc_probe+0x6a1/0x7a0 drivers/usb/gadget/udc/dummy_hcd.c:1099 platform_probe+0x137/0x1c0 drivers/base/platform.c:1391 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:775 driver_probe_device+0x4f/0x420 drivers/base/dd.c:805 __device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429 page_owner free stack trace missing Memory state around the buggy address: ffff88802490f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802490f500: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802490f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802490f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802490f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================