UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_register_driver returned -16 UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_register_driver returned -16 ================================================================== BUG: KASAN: slab-use-after-free in strlen+0x85/0xa0 lib/string.c:402 Read of size 1 at addr ffff88810caeb758 by task syz.2.609/7434 CPU: 0 UID: 0 PID: 7434 Comm: syz.2.609 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 strlen+0x85/0xa0 lib/string.c:402 __fortify_strlen include/linux/fortify-string.h:218 [inline] str_to_user+0x26/0xa0 drivers/input/evdev.c:774 evdev_do_ioctl+0x18a0/0x1b30 drivers/input/evdev.c:1174 evdev_ioctl_handler drivers/input/evdev.c:1275 [inline] evdev_ioctl+0x16f/0x1a0 drivers/input/evdev.c:1284 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4c26a8e159 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:00007f4c254c6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4c26d16090 RCX: 00007f4c26a8e159 RDX: 0000200000002880 RSI: 0000000080404506 RDI: 0000000000000006 RBP: 00007f4c26b2506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4c26d16128 R14: 00007f4c26d16090 R15: 00007ffd24917178 Allocated by task 5266: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x2d8/0x680 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] usb_create_ep_devs+0x4d/0x2b0 drivers/usb/core/endpoint.c:149 usb_new_device.part.0+0x15e5/0x1686 drivers/usb/core/hub.c:2738 usb_new_device drivers/usb/core/hub.c:5833 [inline] hub_port_connect drivers/usb/core/hub.c:5580 [inline] hub_port_connect_change drivers/usb/core/hub.c:5720 [inline] port_event drivers/usb/core/hub.c:5884 [inline] hub_event.cold+0x51a/0xe9d drivers/usb/core/hub.c:5966 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x69f/0xc90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 5266: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x43/0x70 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x20c/0x650 mm/slub.c:6792 device_release+0xd2/0x270 drivers/base/core.c:2640 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1f7/0x640 lib/kobject.c:737 put_device drivers/base/core.c:3884 [inline] device_unregister+0x2f/0xe0 drivers/base/core.c:4007 usb_remove_ep_devs+0x42/0x90 drivers/usb/core/endpoint.c:181 usb_disconnect+0x561/0x9a0 drivers/usb/core/hub.c:2371 hub_port_connect drivers/usb/core/hub.c:5420 [inline] hub_port_connect_change drivers/usb/core/hub.c:5720 [inline] port_event drivers/usb/core/hub.c:5884 [inline] hub_event+0x1d46/0x4510 drivers/usb/core/hub.c:5966 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x69f/0xc90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88810caeb000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1880 bytes inside of freed 2048-byte region [ffff88810caeb000, ffff88810caeb800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810cae8000 pfn:0x10cae8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000240(workingset|head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000240 ffff888100042000 ffffea0004f06610 ffffea0004533210 raw: ffff88810cae8000 0000000000080007 00000000f5000000 0000000000000000 head: 0200000000000240 ffff888100042000 ffffea0004f06610 ffffea0004533210 head: ffff88810cae8000 0000000000080007 00000000f5000000 0000000000000000 head: 0200000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 4372960817 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0xf4b/0x3440 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2d7/0x2f70 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __kmalloc_cache_noprof+0x4a1/0x680 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] acpi_ds_create_walk_state+0x95/0x300 drivers/acpi/acpica/dswstate.c:518 acpi_ps_execute_method+0x2c1/0xe90 drivers/acpi/acpica/psxface.c:134 acpi_ns_evaluate+0x640/0x1670 drivers/acpi/acpica/nseval.c:205 acpi_ut_evaluate_object+0xf7/0x610 drivers/acpi/acpica/uteval.c:60 acpi_rs_get_method_data+0xa1/0x160 drivers/acpi/acpica/rsutils.c:650 acpi_walk_resources+0x178/0x270 drivers/acpi/acpica/rsxface.c:616 acpi_pci_link_get_current+0x1ce/0x410 drivers/acpi/pci_link.c:254 acpi_pci_link_set+0x593/0xa80 drivers/acpi/pci_link.c:360 acpi_pci_link_allocate drivers/acpi/pci_link.c:582 [inline] acpi_pci_link_allocate_irq+0x2c2/0xc70 drivers/acpi/pci_link.c:637 page_owner free stack trace missing Memory state around the buggy address: ffff88810caeb600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810caeb680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810caeb700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810caeb780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810caeb800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================