usb 6-1: config 0 interface 0 altsetting 0 endpoint 0x81 has invalid wMaxPacketSize 0 usb 6-1: New USB device found, idVendor=044f, idProduct=b65d, bcdDevice= 0.00 usb 6-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 6-1: config 0 descriptor?? hid-thrustmaster 0003:044F:B65D.000B: hidraw0: USB HID v0.00 Device [HID 044f:b65d] on usb-dummy_hcd.5-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+0xaff/0xbb0 drivers/hid/hid-thrustmaster.c:330 Read of size 1 at addr ffff88806ad430d2 by task kworker/1:5/3685 CPU: 1 PID: 3685 Comm: kworker/1:5 Not tainted 5.17.0-rc4-syzkaller-00054-gf71077a4d84b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 print_address_description+0x65/0x3a0 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report+0x19a/0x1f0 mm/kasan/report.c:459 thrustmaster_interrupts drivers/hid/hid-thrustmaster.c:162 [inline] thrustmaster_probe+0xaff/0xbb0 drivers/hid/hid-thrustmaster.c:330 hid_device_probe+0x26c/0x410 drivers/hid/hid-core.c:2380 call_driver_probe+0x96/0x250 really_probe+0x222/0x9f0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:752 driver_probe_device+0x50/0x240 drivers/base/dd.c:782 __device_attach_driver+0x1e1/0x3b0 drivers/base/dd.c:899 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427 __device_attach+0x310/0x560 drivers/base/dd.c:970 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487 device_add+0x11c8/0x16d0 drivers/base/core.c:3405 hid_add_device+0xd73/0xfb0 drivers/hid/hid-core.c:2530 usbhid_probe+0xb4c/0xed0 drivers/hid/usbhid/hid-core.c:1424 usb_probe_interface+0x633/0xb40 drivers/usb/core/driver.c:396 call_driver_probe+0x96/0x250 really_probe+0x222/0x9f0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:752 driver_probe_device+0x50/0x240 drivers/base/dd.c:782 __device_attach_driver+0x1e1/0x3b0 drivers/base/dd.c:899 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427 __device_attach+0x310/0x560 drivers/base/dd.c:970 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487 device_add+0x11c8/0x16d0 drivers/base/core.c:3405 usb_set_configuration+0x1a86/0x2100 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0x83/0x140 drivers/usb/core/generic.c:238 usb_probe_device+0x13a/0x260 drivers/usb/core/driver.c:293 call_driver_probe+0x96/0x250 really_probe+0x222/0x9f0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:752 driver_probe_device+0x50/0x240 drivers/base/dd.c:782 __device_attach_driver+0x1e1/0x3b0 drivers/base/dd.c:899 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427 __device_attach+0x310/0x560 drivers/base/dd.c:970 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487 device_add+0x11c8/0x16d0 drivers/base/core.c:3405 usb_new_device+0x108a/0x1940 drivers/usb/core/hub.c:2566 hub_port_connect+0x100b/0x2910 drivers/usb/core/hub.c:5358 hub_port_connect_change+0x5f9/0xc20 drivers/usb/core/hub.c:5502 port_event+0xca0/0x13e0 drivers/usb/core/hub.c:5660 hub_event+0x4ed/0xe40 drivers/usb/core/hub.c:5742 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x2a3/0x2d0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 Allocated by task 3685: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:270 [inline] __kmalloc+0x253/0x380 mm/slub.c:4424 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:715 [inline] usb_parse_interface+0x631/0x9c0 drivers/usb/core/config.c:571 usb_parse_configuration+0xff8/0x15b0 drivers/usb/core/config.c:795 usb_get_configuration+0x359/0x650 drivers/usb/core/config.c:944 usb_enumerate_device drivers/usb/core/hub.c:2398 [inline] usb_new_device+0x14c/0x1940 drivers/usb/core/hub.c:2536 hub_port_connect+0x100b/0x2910 drivers/usb/core/hub.c:5358 hub_port_connect_change+0x5f9/0xc20 drivers/usb/core/hub.c:5502 port_event+0xca0/0x13e0 drivers/usb/core/hub.c:5660 hub_event+0x4ed/0xe40 drivers/usb/core/hub.c:5742 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x2a3/0x2d0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:348 kvfree_call_rcu+0x119/0x880 kernel/rcu/tree.c:3591 cfg80211_update_known_bss+0x174/0x9a0 cfg80211_bss_update+0x17a/0x2170 net/wireless/scan.c:1708 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2464 [inline] cfg80211_inform_bss_frame_data+0x9e2/0x2190 net/wireless/scan.c:2497 ieee80211_bss_info_update+0x75b/0xbe0 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+0x1690/0x2b30 net/mac80211/ibss.c:1639 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] ieee80211_iface_work+0x713/0xca0 net/mac80211/iface.c:1581 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x2a3/0x2d0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:348 kvfree_call_rcu+0x119/0x880 kernel/rcu/tree.c:3591 cfg80211_update_known_bss+0x174/0x9a0 cfg80211_bss_update+0x17a/0x2170 net/wireless/scan.c:1708 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2464 [inline] cfg80211_inform_bss_frame_data+0x9e2/0x2190 net/wireless/scan.c:2497 ieee80211_bss_info_update+0x75b/0xbe0 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+0x1690/0x2b30 net/mac80211/ibss.c:1639 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] ieee80211_iface_work+0x713/0xca0 net/mac80211/iface.c:1581 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x2a3/0x2d0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 The buggy address belongs to the object at ffff88806ad43080 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 82 bytes inside of 96-byte region [ffff88806ad43080, ffff88806ad430e0) The buggy address belongs to the page: page:ffffea0001ab50c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6ad43 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000758880 dead000000000007 ffff888011441780 raw: 0000000000000000 0000000000200020 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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 3682, ts 134057670502, free_ts 133918072453 prep_new_page mm/page_alloc.c:2434 [inline] get_page_from_freelist+0x729/0x9e0 mm/page_alloc.c:4165 __alloc_pages+0x255/0x580 mm/page_alloc.c:5389 alloc_slab_page mm/slub.c:1799 [inline] allocate_slab+0xce/0x3f0 mm/slub.c:1944 new_slab mm/slub.c:2004 [inline] ___slab_alloc+0x3fe/0xc30 mm/slub.c:3018 __slab_alloc mm/slub.c:3105 [inline] slab_alloc_node mm/slub.c:3196 [inline] slab_alloc mm/slub.c:3238 [inline] kmem_cache_alloc_trace+0x28c/0x330 mm/slub.c:3255 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+0xde/0xd20 drivers/net/netdevsim/fib.c:1028 notifier_call_chain kernel/notifier.c:84 [inline] atomic_notifier_call_chain+0x157/0x260 kernel/notifier.c:199 call_fib_notifiers+0x2d/0x60 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+0x1c49/0x3cc0 net/ipv6/ip6_fib.c:1478 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_ins_rt+0x120/0x1a0 net/ipv6/route.c:1312 __ipv6_ifa_notify+0x5b7/0x1320 net/ipv6/addrconf.c:6127 ipv6_ifa_notify net/ipv6/addrconf.c:6166 [inline] addrconf_dad_completed+0x174/0xb90 net/ipv6/addrconf.c:4191 addrconf_dad_begin net/ipv6/addrconf.c:3996 [inline] addrconf_dad_work+0xe6a/0x1d10 net/ipv6/addrconf.c:4098 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x2a3/0x2d0 kernel/kthread.c:377 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+0xd1c/0xe00 mm/page_alloc.c:1404 free_unref_page_prepare mm/page_alloc.c:3325 [inline] free_unref_page+0x7d/0x580 mm/page_alloc.c:3404 free_slab mm/slub.c:2043 [inline] discard_slab mm/slub.c:2049 [inline] __unfreeze_partials+0x1ab/0x200 mm/slub.c:2536 put_cpu_partial+0x116/0x180 mm/slub.c:2612 do_slab_free mm/slub.c:3497 [inline] ___cache_free+0x107/0x160 mm/slub.c:3516 qlist_free_all mm/kasan/quarantine.c:176 [inline] kasan_quarantine_reduce+0x169/0x1f0 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 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_node mm/slub.c:3230 [inline] slab_alloc mm/slub.c:3238 [inline] kmem_cache_alloc+0x1c9/0x310 mm/slub.c:3243 getname_flags+0xba/0x650 fs/namei.c:138 user_path_at_empty+0x2a/0x1a0 fs/namei.c:2850 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x10f/0x3b0 fs/stat.c:221 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:412 [inline] __se_sys_newfstatat+0xc8/0x760 fs/stat.c:406 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff88806ad42f80: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ffff88806ad43000: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff88806ad43080: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff88806ad43100: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88806ad43180: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ==================================================================