================================================================== BUG: KASAN: slab-out-of-bounds in find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1602 [inline] BUG: KASAN: slab-out-of-bounds in dummy_timer+0xd11/0x4b40 drivers/usb/gadget/udc/dummy_hcd.c:1874 Read of size 1 at addr ffff8880b2623132 by task syz.0.2433/16023 CPU: 1 UID: 0 PID: 16023 Comm: syz.0.2433 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1602 [inline] dummy_timer+0xd11/0x4b40 drivers/usb/gadget/udc/dummy_hcd.c:1874 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2113 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198 Code: f7 e8 ad dc cf f5 f7 c3 00 02 00 00 74 05 e8 a0 be fb f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 b4 f2 c0 f5 65 8b 05 ad 82 99 07 85 c0 74 18 5b 41 5e e9 7c c3 RSP: 0018:ffffc9000596f728 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000246 RCX: 0000000080000001 RDX: 0000000000000006 RSI: ffffffff8e22c582 RDI: 0000000000000001 RBP: 0000000000000007 R08: ffffffff90578d37 R09: 1ffffffff20af1a6 R10: dffffc0000000000 R11: fffffbfff20af1a7 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88802799c000 R15: 1ffff110052cae94 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] dummy_urb_enqueue+0x587/0x780 drivers/usb/gadget/udc/dummy_hcd.c:1319 usb_hcd_submit_urb+0x328/0x1b60 drivers/usb/core/hcd.c:1542 iowarrior_open+0x110/0x290 drivers/usb/misc/iowarrior.c:636 usb_open+0x156/0x1e0 drivers/usb/core/file.c:47 chrdev_open+0x4d9/0x600 fs/char_dev.c:411 do_dentry_open+0x816/0x1380 fs/open.c:947 vfs_open+0x3b/0x340 fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x2e44/0x3830 fs/namei.c:4863 do_file_open+0x23e/0x4a0 fs/namei.c:4892 do_sys_openat2+0x115/0x200 fs/open.c:1368 do_sys_open fs/open.c:1374 [inline] __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1385 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd2d395e6ce Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fd2d4927b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd2d49286c0 RCX: 00007fd2d395e6ce RDX: 0000000000000002 RSI: 00007fd2d4927c00 RDI: ffffffffffffff9c RBP: 00007fd2d3a33eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd2d3c26038 R14: 00007fd2d3c25fa0 R15: 00007ffe7a6afbd8 Allocated by task 13409: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x32d/0x660 mm/slub.c:5489 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] mld_add_delrec net/ipv6/mcast.c:743 [inline] igmp6_leave_group net/ipv6/mcast.c:2684 [inline] igmp6_group_dropped+0x5f0/0x1190 net/ipv6/mcast.c:724 __ipv6_dev_mc_dec+0x2a0/0x320 net/ipv6/mcast.c:1004 addrconf_leave_solict net/ipv6/addrconf.c:2273 [inline] __ipv6_ifa_notify+0x77c/0xc60 net/ipv6/addrconf.c:6334 addrconf_ifdown+0xe7a/0x1a30 net/ipv6/addrconf.c:4012 addrconf_notify+0x1bc/0x1050 net/ipv6/addrconf.c:-1 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] __dev_notify_flags+0x16e/0x310 net/core/dev.c:9801 netif_change_flags+0xde/0x1b0 net/core/dev.c:9828 do_setlink+0xdd6/0x4670 net/core/rtnetlink.c:3215 rtnl_group_changelink net/core/rtnetlink.c:3863 [inline] __rtnl_newlink net/core/rtnetlink.c:4031 [inline] rtnl_newlink+0x148e/0x1bd0 net/core/rtnetlink.c:4159 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7076 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880b2623000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 18 bytes to the right of allocated 288-byte region [ffff8880b2623000, ffff8880b2623120) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880b2622400 pfn:0xb2620 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b004c80 ffffea0001fcb210 ffffea0000d0e110 raw: ffff8880b2622400 000000080010000c 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801b004c80 ffffea0001fcb210 ffffea0000d0e110 head: ffff8880b2622400 000000080010000c 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 12956, tgid 12952 (syz.6.1655), ts 780390602607, free_ts 704264421105 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3266 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3380 new_slab mm/slub.c:3426 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7310 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4675 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] __kmalloc_cache_noprof+0x3a7/0x660 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] snd_mixer_oss_build_test+0x7a/0x380 sound/core/oss/mixer_oss.c:896 snd_mixer_oss_build_test_all sound/core/oss/mixer_oss.c:971 [inline] snd_mixer_oss_build_input+0x4a6/0x1370 sound/core/oss/mixer_oss.c:1020 snd_mixer_oss_build sound/core/oss/mixer_oss.c:1279 [inline] snd_mixer_oss_notify_handler+0x93f/0x1050 sound/core/oss/mixer_oss.c:1347 snd_card_register+0x589/0x720 sound/core/init.c:931 f_midi2_create_card drivers/usb/gadget/function/f_midi2.c:1616 [inline] f_midi2_bind+0x1562/0x2c40 drivers/usb/gadget/function/f_midi2.c:1948 usb_add_function+0x2e1/0x9f0 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xde0/0x1410 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x2ca/0x9e0 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 page last free pid 9350 tgid 9348 stack trace: create_dummy_stack mm/page_owner.c:103 [inline] register_dummy_stack+0x98/0x100 mm/page_owner.c:109 init_page_owner+0x2e/0x5f0 mm/page_owner.c:127 invoke_init_callbacks mm/page_ext.c:152 [inline] page_ext_init+0x509/0x550 mm/page_ext.c:490 mm_core_init+0x97/0xb0 mm/mm_init.c:2741 Memory state around the buggy address: ffff8880b2623000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880b2623080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880b2623100: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880b2623180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b2623200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: ad lods %ds:(%rsi),%eax 3: dc cf fmul %st,%st(7) 5: f5 cmc 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 a0 be fb f5 call 0xf5fbbeb3 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 b4 f2 c0 f5 call 0xf5c0f2e3 <-- trapping instruction 2f: 65 8b 05 ad 82 99 07 mov %gs:0x79982ad(%rip),%eax # 0x79982e3 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: e9 .byte 0xe9 3e: 7c c3 jl 0x3