usb 6-1: config 0 descriptor?? hid-thrustmaster 0003:044F:B65D.0006: hidraw1: USB HID v0.00 Device [HID 044f:b65d] on usb-dummy_hcd.1-1/input0 ================================================================== BUG: KASAN: slab-out-of-bounds in thrustmaster_interrupts drivers/hid/hid-thrustmaster.c:162 [inline] BUG: KASAN: slab-out-of-bounds in thrustmaster_probe+0x8d5/0xb50 drivers/hid/hid-thrustmaster.c:330 Read of size 1 at addr ffff88801a154d52 by task kworker/1:6/3749 CPU: 1 PID: 3749 Comm: kworker/1:6 Not tainted 5.17.0-rc4-syzkaller-00055-g80d47f5de5e3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x303 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 thrustmaster_interrupts drivers/hid/hid-thrustmaster.c:162 [inline] thrustmaster_probe+0x8d5/0xb50 drivers/hid/hid-thrustmaster.c:330 hid_device_probe+0x2bd/0x3f0 drivers/hid/hid-core.c:2380 call_driver_probe drivers/base/dd.c:517 [inline] really_probe+0x245/0xcc0 drivers/base/dd.c:596 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:752 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:782 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:899 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x228/0x4a0 drivers/base/dd.c:970 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xb83/0x1e20 drivers/base/core.c:3405 hid_add_device+0x344/0x9d0 drivers/hid/hid-core.c:2530 usbhid_probe+0xc15/0x10a0 drivers/hid/usbhid/hid-core.c:1424 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:517 [inline] really_probe+0x245/0xcc0 drivers/base/dd.c:596 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:752 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:782 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:899 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x228/0x4a0 drivers/base/dd.c:970 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xb83/0x1e20 drivers/base/core.c:3405 usb_set_configuration+0x101e/0x1900 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:517 [inline] really_probe+0x245/0xcc0 drivers/base/dd.c:596 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:752 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:782 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:899 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x228/0x4a0 drivers/base/dd.c:970 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xb83/0x1e20 drivers/base/core.c:3405 usb_new_device.cold+0x63f/0x108e drivers/usb/core/hub.c:2566 hub_port_connect drivers/usb/core/hub.c:5358 [inline] hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] port_event drivers/usb/core/hub.c:5660 [inline] hub_event+0x2585/0x44d0 drivers/usb/core/hub.c:5742 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 3749: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] ____kasan_kmalloc mm/kasan/common.c:515 [inline] ____kasan_kmalloc mm/kasan/common.c:474 [inline] __kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:524 kasan_kmalloc include/linux/kasan.h:270 [inline] __do_kmalloc mm/slab.c:3694 [inline] __kmalloc+0x209/0x4d0 mm/slab.c:3703 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:715 [inline] usb_parse_interface drivers/usb/core/config.c:571 [inline] usb_parse_configuration drivers/usb/core/config.c:795 [inline] usb_get_configuration+0x1394/0x3b30 drivers/usb/core/config.c:944 usb_enumerate_device drivers/usb/core/hub.c:2398 [inline] usb_new_device+0x583/0x7d0 drivers/usb/core/hub.c:2536 hub_port_connect drivers/usb/core/hub.c:5358 [inline] hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] port_event drivers/usb/core/hub.c:5660 [inline] hub_event+0x2585/0x44d0 drivers/usb/core/hub.c:5742 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Last potentially related work creation: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 __kasan_record_aux_stack+0x7e/0x90 mm/kasan/generic.c:348 kvfree_call_rcu+0x74/0x990 kernel/rcu/tree.c:3591 cfg80211_update_known_bss+0x833/0xa60 net/wireless/scan.c:1661 cfg80211_bss_update+0xef/0x2070 net/wireless/scan.c:1708 cfg80211_inform_single_bss_frame_data+0x72b/0xf30 net/wireless/scan.c:2464 cfg80211_inform_bss_frame_data+0xa7/0xb50 net/wireless/scan.c:2497 ieee80211_bss_info_update+0x35b/0xb00 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] ieee80211_ibss_rx_queued_mgmt+0x19cf/0x3150 net/mac80211/ibss.c:1639 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] ieee80211_iface_work+0xa69/0xd00 net/mac80211/iface.c:1581 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Second to last potentially related work creation: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 __kasan_record_aux_stack+0x7e/0x90 mm/kasan/generic.c:348 kvfree_call_rcu+0x74/0x990 kernel/rcu/tree.c:3591 cfg80211_update_known_bss+0x833/0xa60 net/wireless/scan.c:1661 cfg80211_bss_update+0xef/0x2070 net/wireless/scan.c:1708 cfg80211_inform_single_bss_frame_data+0x72b/0xf30 net/wireless/scan.c:2464 cfg80211_inform_bss_frame_data+0xa7/0xb50 net/wireless/scan.c:2497 ieee80211_bss_info_update+0x35b/0xb00 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] ieee80211_ibss_rx_queued_mgmt+0x19cf/0x3150 net/mac80211/ibss.c:1639 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] ieee80211_iface_work+0xa69/0xd00 net/mac80211/iface.c:1581 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88801a154d00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 82 bytes inside of 96-byte region [ffff88801a154d00, ffff88801a154d60) The buggy address belongs to the page: page:ffffea0000685500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1a154 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000633dc8 ffffea00006556c8 ffff888010c40300 raw: 0000000000000000 ffff88801a154000 0000000100000020 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 0x242220(__GFP_HIGH|__GFP_ATOMIC|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 22, ts 232119555275, free_ts 228115892208 prep_new_page mm/page_alloc.c:2434 [inline] get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4165 __alloc_pages_slowpath.constprop.0+0x2eb/0x20d0 mm/page_alloc.c:4934 __alloc_pages+0x412/0x500 mm/page_alloc.c:5402 __alloc_pages_node include/linux/gfp.h:572 [inline] kmem_getpages mm/slab.c:1378 [inline] cache_grow_begin+0x75/0x390 mm/slab.c:2584 cache_alloc_refill+0x27f/0x380 mm/slab.c:2957 ____cache_alloc mm/slab.c:3040 [inline] ____cache_alloc mm/slab.c:3023 [inline] __do_cache_alloc mm/slab.c:3267 [inline] slab_alloc mm/slab.c:3308 [inline] kmem_cache_alloc_trace+0x380/0x4a0 mm/slab.c:3565 kmalloc include/linux/slab.h:581 [inline] kzalloc include/linux/slab.h:715 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:978 [inline] nsim_fib_event_nb+0x1b6/0xc50 drivers/net/netdevsim/fib.c:1028 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84 atomic_notifier_call_chain+0x70/0x180 kernel/notifier.c:199 call_fib_notifiers+0x119/0x2a0 net/core/fib_notifier.c:35 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:402 [inline] fib6_add_rt2node net/ipv6/ip6_fib.c:1224 [inline] fib6_add+0xe21/0x3f10 net/ipv6/ip6_fib.c:1478 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_ins_rt+0xb2/0x110 net/ipv6/route.c:1312 __ipv6_ifa_notify+0x84e/0xa90 net/ipv6/addrconf.c:6127 ipv6_ifa_notify net/ipv6/addrconf.c:6166 [inline] addrconf_dad_completed+0x150/0xd60 net/ipv6/addrconf.c:4191 addrconf_dad_begin net/ipv6/addrconf.c:3996 [inline] addrconf_dad_work+0x862/0x1340 net/ipv6/addrconf.c:4098 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1352 [inline] free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1404 free_unref_page_prepare mm/page_alloc.c:3325 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3404 slab_destroy mm/slab.c:1630 [inline] slabs_destroy+0x89/0xc0 mm/slab.c:1650 cache_flusharray mm/slab.c:3410 [inline] ___cache_free+0x303/0x600 mm/slab.c:3472 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x50/0x1a0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:260 [inline] slab_post_alloc_hook mm/slab.h:732 [inline] slab_alloc mm/slab.c:3315 [inline] kmem_cache_alloc_trace+0x258/0x4a0 mm/slab.c:3565 kmalloc include/linux/slab.h:581 [inline] kzalloc include/linux/slab.h:715 [inline] kobject_uevent_env+0x235/0x1600 lib/kobject_uevent.c:524 __kobject_del+0x169/0x200 lib/kobject.c:617 kobject_cleanup lib/kobject.c:696 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2b6/0x540 lib/kobject.c:753 netdev_queue_update_kobjects+0x367/0x4e0 net/core/net-sysfs.c:1720 netif_set_real_num_tx_queues+0x1b6/0x770 net/core/dev.c:2839 veth_init_queues+0xdd/0x190 drivers/net/veth.c:1616 veth_newlink+0x5ef/0xa90 drivers/net/veth.c:1737 __rtnl_newlink+0x107c/0x1760 net/core/rtnetlink.c:3481 Memory state around the buggy address: ffff88801a154c00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff88801a154c80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff88801a154d00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff88801a154d80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff88801a154e00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ==================================================================