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 ff6000000f7c0bd1 by task kworker/0:4/3867 CPU: 0 PID: 3867 Comm: kworker/0:4 Not tainted 6.6.0-rc1-syzkaller-g8eb8fe67e2c8 #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:800 [] driver_probe_device+0x60/0x1a6 drivers/base/dd.c:830 [] __device_attach_driver+0x168/0x218 drivers/base/dd.c:958 [] bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 [] __device_attach+0x184/0x390 drivers/base/dd.c:1030 [] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079 [] bus_probe_device+0x120/0x122 drivers/base/bus.c:532 [] device_add+0xcee/0x1064 drivers/base/core.c:3622 [] usb_set_configuration+0xb48/0xfb6 drivers/usb/core/message.c:2207 [] 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:800 [] driver_probe_device+0x60/0x1a6 drivers/base/dd.c:830 [] __device_attach_driver+0x168/0x218 drivers/base/dd.c:958 [] bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 [] __device_attach+0x184/0x390 drivers/base/dd.c:1030 [] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079 [] bus_probe_device+0x120/0x122 drivers/base/bus.c:532 [] device_add+0xcee/0x1064 drivers/base/core.c:3622 [] usb_new_device+0x5c8/0xd38 drivers/usb/core/hub.c:2589 [] hub_port_connect drivers/usb/core/hub.c:5440 [inline] [] hub_port_connect_change drivers/usb/core/hub.c:5580 [inline] [] port_event drivers/usb/core/hub.c:5740 [inline] [] hub_event+0x2016/0x30aa drivers/usb/core/hub.c:5822 [] process_one_work+0x54c/0xd66 kernel/workqueue.c:2630 [] process_scheduled_works kernel/workqueue.c:2703 [inline] [] worker_thread+0x506/0x980 kernel/workqueue.c:2784 [] kthread+0x1bc/0x22c kernel/kthread.c:388 [] ret_from_fork+0xa/0x1c arch/riscv/kernel/entry.S:264 Allocated by task 3867: 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:198 [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:800 driver_probe_device+0x60/0x1a6 drivers/base/dd.c:830 __device_attach_driver+0x168/0x218 drivers/base/dd.c:958 bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 __device_attach+0x184/0x390 drivers/base/dd.c:1030 device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079 bus_probe_device+0x120/0x122 drivers/base/bus.c:532 device_add+0xcee/0x1064 drivers/base/core.c:3622 usb_set_configuration+0xb48/0xfb6 drivers/usb/core/message.c:2207 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:800 driver_probe_device+0x60/0x1a6 drivers/base/dd.c:830 __device_attach_driver+0x168/0x218 drivers/base/dd.c:958 bus_for_each_drv+0x12c/0x1ae drivers/base/bus.c:457 __device_attach+0x184/0x390 drivers/base/dd.c:1030 device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079 bus_probe_device+0x120/0x122 drivers/base/bus.c:532 device_add+0xcee/0x1064 drivers/base/core.c:3622 usb_new_device+0x5c8/0xd38 drivers/usb/core/hub.c:2589 hub_port_connect drivers/usb/core/hub.c:5440 [inline] hub_port_connect_change drivers/usb/core/hub.c:5580 [inline] port_event drivers/usb/core/hub.c:5740 [inline] hub_event+0x2016/0x30aa drivers/usb/core/hub.c:5822 process_one_work+0x54c/0xd66 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x506/0x980 kernel/workqueue.c:2784 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 ff6000000f7c0000 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 [ff6000000f7c0000, ff6000000f7c0bd0) The buggy address belongs to the physical page: page:ff1c0000023df000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8f7c0 head:ff1c0000023df000 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xffe000000000840(slab|head|node=0|zone=0|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 0ffe000000000840 ff60000008402140 0000000000000000 0000000000000001 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 3469, tgid 3469 (syz-executor.0), ts 787866716300, free_ts 786347445300 __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+0x84a/0x121e mm/page_alloc.c:3170 __alloc_pages+0x19c/0x142e mm/page_alloc.c:4426 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 rx_queue_add_kobject net/core/net-sysfs.c:1103 [inline] net_rx_queue_update_kobjects+0x12c/0x41e net/core/net-sysfs.c:1143 register_queue_kobjects net/core/net-sysfs.c:1803 [inline] netdev_register_kobject+0x168/0x208 net/core/net-sysfs.c:2048 register_netdevice+0x7fa/0xbec net/core/dev.c:10136 bond_newlink drivers/net/bonding/bond_netlink.c:565 [inline] bond_newlink+0x52/0x9e drivers/net/bonding/bond_netlink.c:555 page last free stack trace: __reset_page_owner+0x4c/0xf8 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x224/0x592 mm/page_alloc.c:2312 free_unref_page+0x5a/0x234 mm/page_alloc.c:2405 free_the_page mm/page_alloc.c:562 [inline] __free_pages+0x104/0x126 mm/page_alloc.c:4516 __free_slab+0xbc/0x112 mm/slub.c:2087 free_slab+0x38/0x190 mm/slub.c:2110 discard_slab mm/slub.c:2116 [inline] __unfreeze_partials+0x1c0/0x1f8 mm/slub.c:2655 put_cpu_partial+0x158/0x220 mm/slub.c:2731 __slab_free+0x20c/0x2de mm/slub.c:3679 do_slab_free mm/slub.c:3757 [inline] ___cache_free+0x136/0x154 mm/slub.c:3816 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x7a/0x16c mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x158/0x1ba mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x5e/0x84 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x1a6/0x2be mm/slub.c:3502 vma_lock_alloc kernel/fork.c:459 [inline] vm_area_dup+0x66/0x214 kernel/fork.c:512 __split_vma+0x15a/0xa22 mm/mmap.c:2342 Memory state around the buggy address: ff6000000f7c0a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff6000000f7c0b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ff6000000f7c0b80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ff6000000f7c0c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ff6000000f7c0c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================