hid-thrustmaster 0003:044F:B65D.0048: unknown main item tag 0x0 hid-thrustmaster 0003:044F:B65D.0048: hidraw0: USB HID v0.00 Device [HID 044f:b65d] on usb-dummy_hcd.3-1/input0 ================================================================== BUG: KASAN: stack-out-of-bounds in usb_check_int_endpoints+0x1fe/0x280 drivers/usb/core/usb.c:277 Read of size 1 at addr ffffc900052c6831 by task kworker/0:7/3239 CPU: 0 UID: 0 PID: 3239 Comm: kworker/0:7 Not tainted 6.13.0-syzkaller-09760-g69e858e0b8b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 usb_check_int_endpoints+0x1fe/0x280 drivers/usb/core/usb.c:277 thrustmaster_interrupts drivers/hid/hid-thrustmaster.c:176 [inline] thrustmaster_probe+0x47d/0xcb0 drivers/hid/hid-thrustmaster.c:347 __hid_device_probe drivers/hid/hid-core.c:2713 [inline] hid_device_probe+0x3bf/0x710 drivers/hid/hid-core.c:2750 really_probe+0x2b9/0xad0 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:462 __device_attach+0x333/0x520 drivers/base/dd.c:1030 bus_probe_device+0x189/0x260 drivers/base/bus.c:537 device_add+0x856/0xbf0 drivers/base/core.c:3665 hid_add_device+0x3b6/0x520 drivers/hid/hid-core.c:2896 usbhid_probe+0xb52/0xec0 drivers/hid/usbhid/hid-core.c:1431 usb_probe_interface+0x641/0xbb0 drivers/usb/core/driver.c:396 really_probe+0x2b9/0xad0 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:462 __device_attach+0x333/0x520 drivers/base/dd.c:1030 bus_probe_device+0x189/0x260 drivers/base/bus.c:537 device_add+0x856/0xbf0 drivers/base/core.c:3665 usb_set_configuration+0x1976/0x1fb0 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0x88/0x140 drivers/usb/core/generic.c:250 usb_probe_device+0x1b8/0x380 drivers/usb/core/driver.c:291 really_probe+0x2b9/0xad0 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:462 __device_attach+0x333/0x520 drivers/base/dd.c:1030 bus_probe_device+0x189/0x260 drivers/base/bus.c:537 device_add+0x856/0xbf0 drivers/base/core.c:3665 usb_new_device+0x104a/0x19a0 drivers/usb/core/hub.c:2652 hub_port_connect drivers/usb/core/hub.c:5523 [inline] hub_port_connect_change drivers/usb/core/hub.c:5663 [inline] port_event drivers/usb/core/hub.c:5823 [inline] hub_event+0x2d6d/0x5150 drivers/usb/core/hub.c:5905 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to stack of task kworker/0:7/3239 and is located at offset 49 in frame: thrustmaster_probe+0x0/0xcb0 This frame has 2 objects: [32, 36) 'trans.i' [48, 49) 'ep_addr.i' The buggy address belongs to the virtual mapping at [ffffc900052c0000, ffffc900052c9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2222 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880586375a0 pfn:0x58637 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff8880586375a0 0000000000000000 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 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 1281229735471, free_ts 1281158225840 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 __alloc_pages_noprof+0xa/0x30 mm/page_alloc.c:4773 __alloc_pages_node_noprof include/linux/gfp.h:265 [inline] alloc_pages_node_noprof include/linux/gfp.h:292 [inline] vm_area_alloc_pages mm/vmalloc.c:3593 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x8b7/0x1380 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1116 copy_process+0x5d1/0x3d50 kernel/fork.c:2222 kernel_clone+0x226/0x8e0 kernel/fork.c:2804 kernel_thread+0x1bc/0x240 kernel/fork.c:2866 create_kthread kernel/kthread.c:487 [inline] kthreadd+0x60d/0x810 kernel/kthread.c:847 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 5889 tgid 5889 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2684 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3153 put_cpu_partial+0x17c/0x250 mm/slub.c:3228 __slab_free+0x290/0x380 mm/slub.c:4479 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] kmem_cache_alloc_node_noprof+0x1d9/0x380 mm/slub.c:4216 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1331 [inline] alloc_skb_with_frags+0xc3/0x820 net/core/skbuff.c:6612 sock_alloc_send_pskb+0x91a/0xa60 net/core/sock.c:2897 sock_alloc_send_skb include/net/sock.h:1804 [inline] mld_newpack+0x1c3/0xaf0 net/ipv6/mcast.c:1790 add_grhead net/ipv6/mcast.c:1893 [inline] add_grec+0x1492/0x19a0 net/ipv6/mcast.c:2031 mld_send_initial_cr+0x228/0x4b0 net/ipv6/mcast.c:2277 mld_dad_work+0x44/0x500 net/ipv6/mcast.c:2303 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 Memory state around the buggy address: ffffc900052c6700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900052c6780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900052c6800: f1 f1 f1 f1 04 f2 01 f3 00 00 00 00 00 00 00 00 ^ ffffc900052c6880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900052c6900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================