usb 1-1: 2:1 : UAC_AS_GENERAL descriptor not found ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 7 at kernel/locking/mutex.c:575 __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 Modules linked in: CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 5.15.116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: usb_hub_wq hub_event pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 lr : __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 sp : ffff8000188d6880 x29: ffff8000188d6a10 x28: dfff800000000000 x27: 1ffff0000307c1a4 x26: ffff8000183e0000 x25: ffff70000311ad2c x24: 0000000000000000 x23: 0000000000000000 x22: ffff80000e1cfc54 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000cbea4fc0 x18: 0000000000000001 x17: ff80800008335ea8 x16: ffff80001195028c x15: ffff800008335ea8 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000832d950 x10: 0000000000000000 x9 : 83ab217c45751600 x8 : 83ab217c45751600 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000188d5ff8 x4 : ffff8000149cfca0 x3 : ffff80000854dc88 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000028 Call trace: __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 imon_init_intf1 drivers/media/rc/imon.c:2323 [inline] imon_probe+0x1f4/0x2820 drivers/media/rc/imon.c:2449 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_set_configuration+0x15e0/0x1b60 drivers/usb/core/message.c:2170 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+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_new_device+0x8fc/0x1448 drivers/usb/core/hub.c:2568 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:5648 [inline] hub_event+0x22e4/0x48c4 drivers/usb/core/hub.c:5730 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 15455 hardirqs last enabled at (15455): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (15455): [] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194 hardirqs last disabled at (15454): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (15454): [] _raw_spin_lock_irqsave+0xfc/0x14c kernel/locking/spinlock.c:162 softirqs last enabled at (14072): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (14072): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (14063): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (14063): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (14063): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 2dedc611c7d858df ]--- ================================================================== BUG: KASAN: slab-out-of-bounds in imon_init_intf1 drivers/media/rc/imon.c:2325 [inline] BUG: KASAN: slab-out-of-bounds in imon_probe+0x1fd0/0x2820 drivers/media/rc/imon.c:2449 Read of size 1 at addr ffff0000cbea51e9 by task kworker/0:0/7 CPU: 0 PID: 7 Comm: kworker/0:0 Tainted: G W 5.15.116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: usb_hub_wq hub_event Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load1_noabort+0x44/0x50 mm/kasan/report_generic.c:306 imon_init_intf1 drivers/media/rc/imon.c:2325 [inline] imon_probe+0x1fd0/0x2820 drivers/media/rc/imon.c:2449 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_set_configuration+0x15e0/0x1b60 drivers/usb/core/message.c:2170 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+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_new_device+0x8fc/0x1448 drivers/usb/core/hub.c:2568 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:5648 [inline] hub_event+0x22e4/0x48c4 drivers/usb/core/hub.c:5730 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 7: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x29c/0x4c8 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] snd_card_new+0x74/0x10c sound/core/init.c:176 snd_usb_audio_create+0x1a8/0xff4 sound/usb/card.c:621 usb_audio_probe+0x1100/0x1cdc sound/usb/card.c:825 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_set_configuration+0x15e0/0x1b60 drivers/usb/core/message.c:2170 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+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3394 usb_new_device+0x8fc/0x1448 drivers/usb/core/hub.c:2568 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:5648 [inline] hub_event+0x22e4/0x48c4 drivers/usb/core/hub.c:5730 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000cbea4000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 4585 bytes inside of 8192-byte region [ffff0000cbea4000, ffff0000cbea6000) The buggy address belongs to the page: page:000000001f90873c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10bea0 head:000000001f90873c order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc00032c6c00 0000000200000002 ffff0000c0002c00 raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cbea5080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000cbea5100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000cbea5180: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff0000cbea5200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cbea5280: 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 Unable to handle kernel paging request at virtual address ffffffffffffffe0 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001b4920000 [ffffffffffffffe0] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 96000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 7 Comm: kworker/0:0 Tainted: G B W 5.15.116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: usb_hub_wq hub_event pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : snd_card_disconnect+0x144/0x728 sound/core/init.c:500 lr : snd_card_disconnect+0x108/0x728 sp : ffff8000188d7160 x29: ffff8000188d7220 x28: ffff800013195a40 x27: dfff800000000000 x26: ffff70000311ae50 x25: ffffffffffffffe0 x24: ffff0000ca85b000 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000ca85b818 x20: ffff8000167f5bc0 x19: 1ffffffffffffffc x18: 0000000000000001 x17: ff8080000bfa79f4 x16: ffff80000830309c x15: ffff80000bfa79f4 x14: 0000000000000003 x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000f877958 x10: 0000000000000000 x9 : ffff80001843f390 x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffff80000f877938 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000f8779a4 x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000000 Call trace: snd_card_disconnect+0x144/0x728 sound/core/init.c:500 usb_audio_disconnect+0x240/0x6a4 sound/usb/card.c:958 usb_unbind_interface+0x1a4/0x758 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1229 [inline] device_release_driver_internal+0x464/0x6ac drivers/base/dd.c:1262 device_release_driver+0x28/0x38 drivers/base/dd.c:1285 bus_remove_device+0x298/0x38c drivers/base/bus.c:529 device_del+0x57c/0x9b4 drivers/base/core.c:3582 usb_disable_device+0x354/0x760 drivers/usb/core/message.c:1419 usb_disconnect+0x290/0x7e8 drivers/usb/core/hub.c:2231 hub_port_connect drivers/usb/core/hub.c:5202 [inline] hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] port_event drivers/usb/core/hub.c:5648 [inline] hub_event+0x167c/0x48c4 drivers/usb/core/hub.c:5730 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 process_scheduled_works kernel/workqueue.c:2370 [inline] worker_thread+0xb88/0x1034 kernel/workqueue.c:2456 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Code: 38776a68 34000068 aa1903e0 96413fe4 (f9400328) ---[ end trace 2dedc611c7d858e0 ]--- ---------------- Code disassembly (best guess): 0: 38776a68 ldrb w8, [x19, x23] 4: 34000068 cbz w8, 0x10 8: aa1903e0 mov x0, x25 c: 96413fe4 bl 0xfffffffff904ff9c * 10: f9400328 ldr x8, [x25] <-- trapping instruction