usb 3-1: config 0 interface 0 has no altsetting 0 usb 3-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 3-1: config 0 descriptor?? ================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:783 [inline] BUG: KASAN: use-after-free in bcmp+0x210/0x230 lib/string.c:804 Read of size 1 at addr ffff88810cd93952 by task kworker/0:2/448 CPU: 0 PID: 448 Comm: kworker/0:2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 memcmp lib/string.c:783 [inline] bcmp+0x210/0x230 lib/string.c:804 memcmp include/linux/fortify-string.h:549 [inline] sony_check_add_dev_list drivers/hid/hid-sony.c:2542 [inline] sony_check_add drivers/hid/hid-sony.c:2673 [inline] sony_input_configured+0x62c/0x37f0 drivers/hid/hid-sony.c:2752 hidinput_connect+0x2334/0x30d0 drivers/hid/hid-input.c:2341 hid_connect+0x4b0/0x1b40 drivers/hid/hid-core.c:2227 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2340 sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024 hid_device_probe+0x25b/0x390 drivers/hid/hid-core.c:2671 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2823 usbhid_probe+0xc0f/0xfe0 drivers/hid/usbhid/hid-core.c:1442 usb_probe_interface+0x61b/0xb30 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_set_configuration+0x19fe/0x1f60 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x14e/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2659 hub_port_connect drivers/usb/core/hub.c:5517 [inline] hub_port_connect_change drivers/usb/core/hub.c:5657 [inline] port_event drivers/usb/core/hub.c:5817 [inline] hub_event+0x288c/0x4920 drivers/usb/core/hub.c:5899 process_one_work+0x717/0xc30 kernel/workqueue.c:2292 worker_thread+0xa4a/0x11c0 kernel/workqueue.c:2439 kthread+0x281/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 448: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:956 alloc_dr drivers/base/devres.c:116 [inline] devm_kmalloc+0x55/0x160 drivers/base/devres.c:833 devm_kzalloc include/linux/device.h:210 [inline] sony_probe+0xfb/0xcf0 drivers/hid/hid-sony.c:2992 hid_device_probe+0x25b/0x390 drivers/hid/hid-core.c:2671 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2823 usbhid_probe+0xc0f/0xfe0 drivers/hid/usbhid/hid-core.c:1442 usb_probe_interface+0x61b/0xb30 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_set_configuration+0x19fe/0x1f60 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x14e/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2659 hub_port_connect drivers/usb/core/hub.c:5517 [inline] hub_port_connect_change drivers/usb/core/hub.c:5657 [inline] port_event drivers/usb/core/hub.c:5817 [inline] hub_event+0x288c/0x4920 drivers/usb/core/hub.c:5899 process_one_work+0x717/0xc30 kernel/workqueue.c:2292 worker_thread+0xa4a/0x11c0 kernel/workqueue.c:2439 kthread+0x281/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 448: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:237 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:245 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb7/0x160 mm/slub.c:3700 kfree+0x6f/0xf0 mm/slab_common.c:988 release_nodes+0xf9/0x230 drivers/base/devres.c:503 devres_release_all+0x148/0x1b0 drivers/base/devres.c:532 device_unbind_cleanup drivers/base/dd.c:529 [inline] really_probe+0x4d5/0x960 drivers/base/dd.c:706 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2823 usbhid_probe+0xc0f/0xfe0 drivers/hid/usbhid/hid-core.c:1442 usb_probe_interface+0x61b/0xb30 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_set_configuration+0x19fe/0x1f60 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x14e/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2bf/0x960 drivers/base/dd.c:638 __driver_probe_device+0x1ee/0x2d0 drivers/base/dd.c:804 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:834 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:962 bus_for_each_drv+0x190/0x220 drivers/base/bus.c:429 __device_attach+0x2a7/0x410 drivers/base/dd.c:1034 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1083 bus_probe_device+0xbd/0x1e0 drivers/base/bus.c:489 device_add+0xb2c/0xed0 drivers/base/core.c:3712 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2659 hub_port_connect drivers/usb/core/hub.c:5517 [inline] hub_port_connect_change drivers/usb/core/hub.c:5657 [inline] port_event drivers/usb/core/hub.c:5817 [inline] hub_event+0x288c/0x4920 drivers/usb/core/hub.c:5899 process_one_work+0x717/0xc30 kernel/workqueue.c:2292 worker_thread+0xa4a/0x11c0 kernel/workqueue.c:2439 kthread+0x281/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88810cd93800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 338 bytes inside of 1024-byte region [ffff88810cd93800, ffff88810cd93c00) The buggy address belongs to the physical page: page:ffffea0004336400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10cd90 head:ffffea0004336400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100041dc0 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 2299420075, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1d0/0x1f0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x2d80/0x2e00 mm/page_alloc.c:4358 __alloc_pages+0x241/0x4e0 mm/page_alloc.c:5658 alloc_slab_page include/linux/gfp.h:-1 [inline] allocate_slab mm/slub.c:1944 [inline] new_slab+0xec/0x4b0 mm/slub.c:1997 ___slab_alloc+0x70f/0xb70 mm/slub.c:3154 __slab_alloc+0x5e/0xa0 mm/slub.c:3240 slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1ba/0x280 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa2/0x1e0 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kzalloc_node include/linux/slab.h:710 [inline] blk_alloc_flush_queue+0xf0/0x260 block/blk-flush.c:484 blk_mq_alloc_hctx block/blk-mq.c:3805 [inline] blk_mq_alloc_and_init_hctx+0x7be/0xd60 block/blk-mq.c:4255 blk_mq_realloc_hw_ctxs+0x181/0x420 block/blk-mq.c:4288 blk_mq_init_allocated_queue+0x525/0x1700 block/blk-mq.c:4356 blk_mq_init_queue_data block/blk-mq.c:4160 [inline] blk_mq_init_queue+0xa6/0x120 block/blk-mq.c:4170 scsi_alloc_sdev+0x6a1/0xac0 drivers/scsi/scsi_scan.c:335 scsi_probe_and_add_lun+0x177/0x3eb0 drivers/scsi/scsi_scan.c:1183 __scsi_scan_target+0x1d2/0xb70 drivers/scsi/scsi_scan.c:1715 page_owner free stack trace missing Memory state around the buggy address: ffff88810cd93800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810cd93880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810cd93900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810cd93980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810cd93a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== sony 0003:054C:042F.0002: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0002: No inputs registered, leaving sony 0003:054C:042F.0002: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.2-1/input0 sony 0003:054C:042F.0002: failed to claim input usb 3-1: USB disconnect, device number 3 usb 3-1: new high-speed USB device number 4 using dummy_hcd usb 3-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 3-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 3-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 3-1: config 0 interface 0 has no altsetting 0 usb 3-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 3-1: config 0 descriptor?? sony 0003:054C:042F.0003: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0003: No inputs registered, leaving sony 0003:054C:042F.0003: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.2-1/input0 sony 0003:054C:042F.0003: failed to claim input usb 3-1: new high-speed USB device number 5 using dummy_hcd usb 3-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 3-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 3-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 3-1: config 0 interface 0 has no altsetting 0 usb 3-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 3-1: config 0 descriptor?? sony 0003:054C:042F.0004: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0004: No inputs registered, leaving sony 0003:054C:042F.0004: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.2-1/input0 sony 0003:054C:042F.0004: failed to claim input