================================================================== BUG: KASAN: slab-out-of-bounds in snd_usb_mixer_notify_id sound/usb/mixer.c:3240 [inline] BUG: KASAN: slab-out-of-bounds in snd_usb_mixer_interrupt+0xaa7/0xc30 sound/usb/mixer.c:3379 Write of size 4 at addr ffff88809f65aee0 by task syz-fuzzer/6782 CPU: 1 PID: 6782 Comm: syz-fuzzer Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 snd_usb_mixer_notify_id sound/usb/mixer.c:3240 [inline] snd_usb_mixer_interrupt+0xaa7/0xc30 sound/usb/mixer.c:3379 __usb_hcd_giveback_urb+0x333/0x4b0 drivers/usb/core/hcd.c:1650 dummy_timer+0x75c/0x3ff0 drivers/usb/gadget/udc/dummy_hcd.c:1966 call_timer_fn+0x91/0x160 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0x776/0x970 kernel/time/timer.c:1773 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1786 __do_softirq+0x268/0x80c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x223/0x230 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x113/0x280 arch/x86/kernel/apic/apic.c:1107 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0033:0x770e52 Code: 20 48 8b 48 08 48 8b 18 48 89 1c 24 48 89 4c 24 08 48 89 7c 24 10 48 8b 4c 24 58 48 89 4c 24 18 e8 93 00 00 00 48 8b 44 24 20 <48> ff c0 48 8b 4c 24 28 48 39 c8 7c ac 48 8b 6c 24 40 48 83 c4 48 RSP: 002b:000000c00f7fb4d0 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000002 RBX: 00000000007a6610 RCX: 000000c000067e00 RDX: 0000000000000000 RSI: 000000c00f7fb3b0 RDI: 000000c00f7fb310 RBP: 000000c00f7fb510 R08: 0000000000b134e0 R09: 0000000000b133e0 R10: 000000000093dc99 R11: 000000000087ad40 R12: 00000000000000f1 R13: 0000000000000000 R14: 0000000000ad8fb2 R15: 0000000000000000 Allocated by task 25142: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494 kmem_cache_alloc_trace+0x234/0x300 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] add_single_ctl_with_resume sound/usb/mixer_quirks.c:147 [inline] snd_mbox1_create_sync_switch sound/usb/mixer_quirks.c:719 [inline] snd_usb_mixer_apply_create_quirk+0x1333/0x4fc0 sound/usb/mixer_quirks.c:2654 snd_usb_create_mixer+0x22d8/0x2e90 sound/usb/mixer.c:3538 snd_usb_create_quirk sound/usb/quirks.c:563 [inline] create_composite_quirk+0x221/0x510 sound/usb/quirks.c:48 usb_audio_probe+0xc3d/0x2500 sound/usb/card.c:668 usb_probe_interface+0x614/0xac0 drivers/usb/core/driver.c:374 really_probe+0x761/0xf60 drivers/base/dd.c:524 driver_probe_device+0xe6/0x230 drivers/base/dd.c:697 bus_for_each_drv+0x108/0x170 drivers/base/bus.c:431 __device_attach+0x20c/0x3a0 drivers/base/dd.c:870 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:491 device_add+0x1828/0x1ba0 drivers/base/core.c:2557 usb_set_configuration+0x19d2/0x1f20 drivers/usb/core/message.c:2032 usb_generic_driver_probe+0x82/0x140 drivers/usb/core/generic.c:241 usb_probe_device+0x12d/0x1d0 drivers/usb/core/driver.c:272 really_probe+0x761/0xf60 drivers/base/dd.c:524 driver_probe_device+0xe6/0x230 drivers/base/dd.c:697 bus_for_each_drv+0x108/0x170 drivers/base/bus.c:431 __device_attach+0x20c/0x3a0 drivers/base/dd.c:870 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:491 device_add+0x1828/0x1ba0 drivers/base/core.c:2557 usb_new_device+0xcc3/0x1650 drivers/usb/core/hub.c:2554 hub_port_connect drivers/usb/core/hub.c:5208 [inline] hub_port_connect_change drivers/usb/core/hub.c:5348 [inline] port_event drivers/usb/core/hub.c:5494 [inline] hub_event+0x2823/0x4cb0 drivers/usb/core/hub.c:5576 process_one_work+0x76e/0xfd0 kernel/workqueue.c:2268 worker_thread+0xa7f/0x1450 kernel/workqueue.c:2414 kthread+0x353/0x380 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Freed by task 7251: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x114/0x170 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x220 mm/slab.c:3757 free_rb_tree_fname fs/ext4/dir.c:410 [inline] ext4_htree_free_dir_info fs/ext4/dir.c:432 [inline] ext4_release_dir+0xc5/0x150 fs/ext4/dir.c:629 __fput+0x2ed/0x750 fs/file_table.c:281 task_work_run+0x147/0x1d0 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:165 [inline] prepare_exit_to_usermode+0x48e/0x600 arch/x86/entry/common.c:196 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff88809f65ae80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of 64-byte region [ffff88809f65ae80, ffff88809f65aec0) The buggy address belongs to the page: page:ffffea00027d9680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea000254b708 ffffea00026ac108 ffff8880aa400380 raw: 0000000000000000 ffff88809f65a000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f65ad80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc ffff88809f65ae00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc >ffff88809f65ae80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff88809f65af00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88809f65af80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc ==================================================================