imon 1-1:1.0: unable to register, err -19 usb 1-1: 2:1 : UAC_AS_GENERAL descriptor not found ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 6011 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 Modules linked in: CPU: 0 PID: 6011 Comm: kworker/0:4 Not tainted 6.5.0-rc7-syzkaller-00071-gfe4469582053 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: usb_hub_wq hub_event pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 lr : __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 sp : ffff8000971b6860 x29: ffff8000971b69f0 x28: dfff800000000000 x27: 1ffff000124930dc x26: ffff800092498000 x25: ffff700012e36d28 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800086835a34 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000cbd74ed8 x18: ffff8000971b6a40 x17: 0000000000000000 x16: ffff80008a572e30 x15: 0000000000000001 x14: 1fffe0003683ae2a x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : d2d4aebbdad14c00 x8 : d2d4aebbdad14c00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000971b6158 x4 : ffff80008e17f000 x3 : ffff8000805a25e4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 imon_init_intf1 drivers/media/rc/imon.c:2321 [inline] imon_probe+0x1f8/0x26d8 drivers/media/rc/imon.c:2449 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_set_configuration+0x15cc/0x1b38 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0x8c/0x148 drivers/usb/core/generic.c:238 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_new_device+0x904/0x142c drivers/usb/core/hub.c:2590 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x24f8/0x4638 drivers/usb/core/hub.c:5808 process_one_work+0x800/0x1480 kernel/workqueue.c:2600 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2751 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 irq event stamp: 1749603 hardirqs last enabled at (1749603): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (1749603): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (1749602): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1749602): [] _raw_spin_lock_irqsave+0x2c/0x7c kernel/locking/spinlock.c:162 softirqs last enabled at (1746334): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (1746334): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (1746233): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ================================================================== BUG: KASAN: slab-out-of-bounds in imon_init_intf1 drivers/media/rc/imon.c:2323 [inline] BUG: KASAN: slab-out-of-bounds in imon_probe+0x1f00/0x26d8 drivers/media/rc/imon.c:2449 Read of size 1 at addr ffff0000cbd75101 by task kworker/0:4/6011 CPU: 0 PID: 6011 Comm: kworker/0:4 Tainted: G W 6.5.0-rc7-syzkaller-00071-gfe4469582053 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: usb_hub_wq hub_event Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 imon_init_intf1 drivers/media/rc/imon.c:2323 [inline] imon_probe+0x1f00/0x26d8 drivers/media/rc/imon.c:2449 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_set_configuration+0x15cc/0x1b38 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0x8c/0x148 drivers/usb/core/generic.c:238 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_new_device+0x904/0x142c drivers/usb/core/hub.c:2590 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x24f8/0x4638 drivers/usb/core/hub.c:5808 process_one_work+0x800/0x1480 kernel/workqueue.c:2600 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2751 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 Allocated by task 6011: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:703 [inline] snd_card_new+0x74/0x10c sound/core/init.c:176 snd_usb_audio_create+0x1f8/0x10d4 sound/usb/card.c:621 usb_audio_probe+0x1100/0x1c84 sound/usb/card.c:827 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_set_configuration+0x15cc/0x1b38 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0x8c/0x148 drivers/usb/core/generic.c:238 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_new_device+0x904/0x142c drivers/usb/core/hub.c:2590 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x24f8/0x4638 drivers/usb/core/hub.c:5808 process_one_work+0x800/0x1480 kernel/workqueue.c:2600 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2751 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 The buggy address belongs to the object at ffff0000cbd74000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 1 bytes to the right of allocated 4352-byte region [ffff0000cbd74000, ffff0000cbd75100) The buggy address belongs to the physical page: page:000000008a618d71 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10bd70 head:000000008a618d71 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000010200 ffff0000c0002280 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cbd75000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000cbd75080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000cbd75100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000cbd75180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cbd75200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== imon:imon_find_endpoints: no valid input (IR) endpoint found (NULL device *): unable to initialize intf1, err -19 imon:imon_probe: failed to attach to context! imon 1-1:1.1: unable to register, err -19 usb 1-1: USB disconnect, device number 2 usb 1-1: new high-speed USB device number 3 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config index 0 descriptor too short (expected 132, got 27) usb 1-1: config 1 has too many interfaces: 163, using maximum allowed: 32 usb 1-1: config 1 has an invalid descriptor of length 10, skipping remainder of the config usb 1-1: config 1 has 1 interface, different from the descriptor's value: 163 usb 1-1: New USB device found, idVendor=15c2, idProduct=0039, bcdDevice=80.f3 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: syz usb 1-1: Manufacturer: syz usb 1-1: SerialNumber: syz imon:imon_find_endpoints: no valid input (IR) endpoint found imon 1-1:1.0: unable to initialize intf0, err -19 imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: cannot find UAC_HEADER snd-usb-audio: probe of 1-1:1.0 failed with error -22 usb 1-1: USB disconnect, device number 3 usb 1-1: new high-speed USB device number 4 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config index 0 descriptor too short (expected 132, got 27) usb 1-1: config 1 has too many interfaces: 163, using maximum allowed: 32 usb 1-1: config 1 has an invalid descriptor of length 10, skipping remainder of the config usb 1-1: config 1 has 1 interface, different from the descriptor's value: 163 usb 1-1: New USB device found, idVendor=15c2, idProduct=0039, bcdDevice=80.f3 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: syz usb 1-1: Manufacturer: syz usb 1-1: SerialNumber: syz imon:imon_find_endpoints: no valid input (IR) endpoint found imon 1-1:1.0: unable to initialize intf0, err -19 imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: cannot find UAC_HEADER snd-usb-audio: probe of 1-1:1.0 failed with error -22 usb 1-1: USB disconnect, device number 4 usb 1-1: new high-speed USB device number 6 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config index 0 descriptor too short (expected 132, got 27) usb 1-1: config 1 has too many interfaces: 163, using maximum allowed: 32 usb 1-1: config 1 has an invalid descriptor of length 10, skipping remainder of the config usb 1-1: config 1 has 1 interface, different from the descriptor's value: 163 usb 1-1: New USB device found, idVendor=15c2, idProduct=0039, bcdDevice=80.f3 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: syz usb 1-1: Manufacturer: syz usb 1-1: SerialNumber: syz imon:imon_find_endpoints: no valid input (IR) endpoint found imon 1-1:1.0: unable to initialize intf0, err -19 imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: cannot find UAC_HEADER snd-usb-audio: probe of 1-1:1.0 failed with error -22 usb 1-1: USB disconnect, device number 6 usb 1-1: new high-speed USB device number 7 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config index 0 descriptor too short (expected 132, got 27) usb 1-1: config 1 has too many interfaces: 163, using maximum allowed: 32 usb 1-1: config 1 has an invalid descriptor of length 10, skipping remainder of the config usb 1-1: config 1 has 1 interface, different from the descriptor's value: 163 usb 1-1: New USB device found, idVendor=15c2, idProduct=0039, bcdDevice=80.f3 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: syz usb 1-1: Manufacturer: syz usb 1-1: SerialNumber: syz imon:imon_find_endpoints: no valid input (IR) endpoint found imon 1-1:1.0: unable to initialize intf0, err -19 imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: cannot find UAC_HEADER snd-usb-audio: probe of 1-1:1.0 failed with error -22 usb 1-1: USB disconnect, device number 7 usb 1-1: new high-speed USB device number 8 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config index 0 descriptor too short (expected 132, got 27) usb 1-1: config 1 has too many interfaces: 163, using maximum allowed: 32 usb 1-1: config 1 has an invalid descriptor of length 10, skipping remainder of the config usb 1-1: config 1 has 1 interface, different from the descriptor's value: 163 usb 1-1: New USB device found, idVendor=15c2, idProduct=0039, bcdDevice=80.f3 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: syz usb 1-1: Manufacturer: syz usb 1-1: SerialNumber: syz imon:imon_find_endpoints: no valid input (IR) endpoint found imon 1-1:1.0: unable to initialize intf0, err -19 imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: cannot find UAC_HEADER snd-usb-audio: probe of 1-1:1.0 failed with error -22 usb 1-1: USB disconnect, device number 8