imon:imon_probe: failed to initialize context! imon 1-1:1.0: unable to register, err -19 usb 1-1: 2:1 : UAC_AS_GENERAL descriptor not found ================================================================== 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+0x132/0x1ab2 drivers/media/rc/imon.c:2449 Read of size 1 at addr ff60000021962bd1 by task kworker/1:3/3270 CPU: 1 PID: 3270 Comm: kworker/1:3 Not tainted 6.5.0-syzkaller-ge0152e7481c6 #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: usb_hub_wq hub_event Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe8/0x154 lib/dump_stack.c:106 [] print_address_description mm/kasan/report.c:364 [inline] [] print_report+0x1e4/0x4f4 mm/kasan/report.c:475 [] kasan_report+0xf0/0x1ba mm/kasan/report.c:588 [] check_region_inline mm/kasan/generic.c:181 [inline] [] __asan_load1+0x68/0x80 mm/kasan/generic.c:257 [] imon_init_intf1 drivers/media/rc/imon.c:2323 [inline] [] imon_probe+0x132/0x1ab2 drivers/media/rc/imon.c:2449 [] usb_probe_interface+0x208/0x552 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:579 [inline] [] really_probe+0x1c8/0x7c6 drivers/base/dd.c:658 [] __driver_probe_device+0x13e/0x2ae drivers/base/dd.c:798 [] driver_probe_device+0x60/0x1a6 drivers/base/dd.c:828 [] __device_attach_driver+0x168/0x218 drivers/base/dd.c:956 [] bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 [] __device_attach+0x184/0x390 drivers/base/dd.c:1028 [] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077 [] bus_probe_device+0x120/0x122 drivers/base/bus.c:532 [] device_add+0xd3a/0x10b0 drivers/base/core.c:3623 [] usb_set_configuration+0xb48/0xfb6 drivers/usb/core/message.c:2211 [] usb_generic_driver_probe+0xb2/0x124 drivers/usb/core/generic.c:238 [] usb_probe_device+0x9e/0x1fc drivers/usb/core/driver.c:293 [] call_driver_probe drivers/base/dd.c:579 [inline] [] really_probe+0x1c8/0x7c6 drivers/base/dd.c:658 [] __driver_probe_device+0x13e/0x2ae drivers/base/dd.c:798 [] driver_probe_device+0x60/0x1a6 drivers/base/dd.c:828 [] __device_attach_driver+0x168/0x218 drivers/base/dd.c:956 [] bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 [] __device_attach+0x184/0x390 drivers/base/dd.c:1028 [] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077 [] bus_probe_device+0x120/0x122 drivers/base/bus.c:532 [] device_add+0xd3a/0x10b0 drivers/base/core.c:3623 [] usb_new_device+0x5c8/0xd38 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+0x219a/0x3248 drivers/usb/core/hub.c:5808 [] process_one_work+0x6e6/0xe0a kernel/workqueue.c:2600 [] worker_thread+0xba/0x898 kernel/workqueue.c:2751 [] kthread+0x1bc/0x22c kernel/kthread.c:388 [] ret_from_fork+0xa/0x1c arch/riscv/kernel/entry.S:264 Allocated by task 3270: stack_trace_save+0xa0/0xd2 kernel/stacktrace.c:122 kasan_save_stack+0x3e/0x6a mm/kasan/common.c:45 kasan_set_track+0x1a/0x26 mm/kasan/common.c:52 kasan_save_alloc_info+0x1a/0x24 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa2/0xa8 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:1023 [inline] __kmalloc+0x42/0xe6 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] kzalloc include/linux/slab.h:720 [inline] snd_card_new+0x62/0xd2 sound/core/init.c:184 snd_usb_audio_create sound/usb/card.c:621 [inline] usb_audio_probe+0xf44/0x1d1c sound/usb/card.c:827 usb_probe_interface+0x208/0x552 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x1c8/0x7c6 drivers/base/dd.c:658 __driver_probe_device+0x13e/0x2ae drivers/base/dd.c:798 driver_probe_device+0x60/0x1a6 drivers/base/dd.c:828 __device_attach_driver+0x168/0x218 drivers/base/dd.c:956 bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 __device_attach+0x184/0x390 drivers/base/dd.c:1028 device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077 bus_probe_device+0x120/0x122 drivers/base/bus.c:532 device_add+0xd3a/0x10b0 drivers/base/core.c:3623 usb_set_configuration+0xb48/0xfb6 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0xb2/0x124 drivers/usb/core/generic.c:238 usb_probe_device+0x9e/0x1fc drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x1c8/0x7c6 drivers/base/dd.c:658 __driver_probe_device+0x13e/0x2ae drivers/base/dd.c:798 driver_probe_device+0x60/0x1a6 drivers/base/dd.c:828 __device_attach_driver+0x168/0x218 drivers/base/dd.c:956 bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 __device_attach+0x184/0x390 drivers/base/dd.c:1028 device_initial_probe+0x1c/0x26 drivers/base/dd.c:1077 bus_probe_device+0x120/0x122 drivers/base/bus.c:532 device_add+0xd3a/0x10b0 drivers/base/core.c:3623 usb_new_device+0x5c8/0xd38 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+0x219a/0x3248 drivers/usb/core/hub.c:5808 process_one_work+0x6e6/0xe0a kernel/workqueue.c:2600 worker_thread+0xba/0x898 kernel/workqueue.c:2751 kthread+0x1bc/0x22c kernel/kthread.c:388 ret_from_fork+0xa/0x1c arch/riscv/kernel/entry.S:264 The buggy address belongs to the object at ff60000021962000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1 bytes to the right of allocated 3024-byte region [ff60000021962000, ff60000021962bd0) The buggy address belongs to the physical page: page:ff1c000002865800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa1960 head:ff1c000002865800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xffe000000000840(slab|head|node=0|zone=0|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 0ffe000000000840 ff60000008402140 0000000000000122 0000000000000000 raw: 0000000000000000 0000000000040004 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3270, tgid 3270 (kworker/1:3), ts 3007394877400, free_ts 0 __set_page_owner+0x32/0x18a mm/page_owner.c:192 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x8c/0xe2 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x912/0x122c mm/page_alloc.c:3183 __alloc_pages+0x19c/0x142c mm/page_alloc.c:4439 alloc_pages+0x126/0x252 mm/mempolicy.c:2298 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab mm/slub.c:2017 [inline] new_slab+0x272/0x382 mm/slub.c:2070 ___slab_alloc+0x5b6/0xa92 mm/slub.c:3223 __slab_alloc.constprop.0+0x58/0x94 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0xf0/0x2e0 mm/slub.c:3517 kmalloc_trace+0x24/0x56 mm/slab_common.c:1114 kmalloc include/linux/slab.h:599 [inline] kzalloc include/linux/slab.h:720 [inline] kobject_uevent_env+0x1c8/0xddc lib/kobject_uevent.c:524 kobject_uevent+0x22/0x2e lib/kobject_uevent.c:642 device_add+0xcfa/0x10b0 drivers/base/core.c:3604 usb_set_configuration+0xb48/0xfb6 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0xb2/0x124 drivers/usb/core/generic.c:238 usb_probe_device+0x9e/0x1fc drivers/usb/core/driver.c:293 page_owner free stack trace missing Memory state around the buggy address: ff60000021962a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff60000021962b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ff60000021962b80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ff60000021962c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ff60000021962c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================