================================================================== BUG: KASAN: slab-out-of-bounds in snd_usb_mixer_notify_id sound/usb/mixer.c:3219 [inline] BUG: KASAN: slab-out-of-bounds in snd_usb_mixer_interrupt+0xaa7/0xc30 sound/usb/mixer.c:3358 Write of size 4 at addr ffff8881cd057860 by task swapper/0/0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.49-syzkaller-00898-g54ec87ec7a59 #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+0x14a/0x1ce lib/dump_stack.c:118 print_address_description+0x93/0x620 mm/kasan/report.c:374 __kasan_report+0x16d/0x1e0 mm/kasan/report.c:506 kasan_report+0x36/0x60 mm/kasan/common.c:634 snd_usb_mixer_notify_id sound/usb/mixer.c:3219 [inline] snd_usb_mixer_interrupt+0xaa7/0xc30 sound/usb/mixer.c:3358 __usb_hcd_giveback_urb+0x265/0x3b0 drivers/usb/core/hcd.c:1654 dummy_timer+0x778/0x4260 drivers/usb/gadget/udc/dummy_hcd.c:1966 call_timer_fn+0x154/0x340 kernel/time/timer.c:1404 expire_timers+0x35c/0x470 kernel/time/timer.c:1449 __run_timers+0x662/0x7b0 kernel/time/timer.c:1773 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1786 __do_softirq+0x2d5/0x725 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x16d/0x180 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x281/0x3f0 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831 RIP: 0010:default_idle+0x1f/0x30 arch/x86/kernel/process.c:573 Code: ff e8 05 22 42 fd 90 90 90 90 90 65 8b 35 81 51 2a 7c bf 01 00 00 00 e8 ff ad 30 fd e9 07 00 00 00 0f 00 2d 5b 3e 49 00 fb f4 <65> 8b 35 62 51 2a 7c bf ff ff ff ff e9 e0 ad 30 fd 41 57 41 56 53 RSP: 0018:ffffffff84c07d18 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 464c6c45f6398f01 RBX: ffffffff84c14980 RCX: ffffffff8124c6e0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffffff84c07e20 R08: dffffc0000000000 R09: fffffbfff0982931 R10: fffffbfff0982931 R11: 0000000000000000 R12: ffffffff84d900a0 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffffffff0982930 default_idle_call kernel/sched/idle.c:94 [inline] cpuidle_idle_call kernel/sched/idle.c:154 [inline] do_idle+0x209/0x5e0 kernel/sched/idle.c:263 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:355 start_kernel+0x7a3/0x873 init/main.c:784 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241 Allocated by task 12: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x12c/0x1c0 mm/kasan/common.c:510 kmem_cache_alloc_trace+0xc3/0x280 mm/slub.c:2793 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:690 [inline] add_single_ctl_with_resume sound/usb/mixer_quirks.c:146 [inline] snd_mbox1_create_sync_switch sound/usb/mixer_quirks.c:718 [inline] snd_usb_mixer_apply_create_quirk+0xad1/0x30c0 sound/usb/mixer_quirks.c:2238 snd_usb_create_mixer+0x22c3/0x31a0 sound/usb/mixer.c:3517 snd_usb_create_quirk sound/usb/quirks.c:563 [inline] create_composite_quirk+0x221/0x510 sound/usb/quirks.c:48 usb_audio_probe+0xd69/0x2470 sound/usb/card.c:715 usb_probe_interface+0x631/0xad0 drivers/usb/core/driver.c:361 really_probe+0x764/0xf70 drivers/base/dd.c:560 driver_probe_device+0xe6/0x230 drivers/base/dd.c:729 bus_for_each_drv+0x17a/0x200 drivers/base/bus.c:430 __device_attach+0x27b/0x420 drivers/base/dd.c:902 bus_probe_device+0xbb/0x200 drivers/base/bus.c:490 device_add+0x13db/0x17c0 drivers/base/core.c:2644 usb_set_configuration+0x197f/0x1f00 drivers/usb/core/message.c:2030 generic_probe+0x82/0x140 drivers/usb/core/generic.c:210 really_probe+0x764/0xf70 drivers/base/dd.c:560 driver_probe_device+0xe6/0x230 drivers/base/dd.c:729 bus_for_each_drv+0x17a/0x200 drivers/base/bus.c:430 __device_attach+0x27b/0x420 drivers/base/dd.c:902 bus_probe_device+0xbb/0x200 drivers/base/bus.c:490 device_add+0x13db/0x17c0 drivers/base/core.c:2644 usb_new_device+0xda7/0x1710 drivers/usb/core/hub.c:2554 hub_port_connect drivers/usb/core/hub.c:5123 [inline] hub_port_connect_change drivers/usb/core/hub.c:5238 [inline] port_event drivers/usb/core/hub.c:5384 [inline] hub_event+0x2963/0x4fa0 drivers/usb/core/hub.c:5466 process_one_work+0x777/0xf90 kernel/workqueue.c:2274 worker_thread+0xa8f/0x1430 kernel/workqueue.c:2420 kthread+0x2df/0x300 kernel/kthread.c:255 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Freed by task 3207: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x181/0x230 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1424 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1457 slab_free mm/slub.c:3014 [inline] kfree+0x12b/0x600 mm/slub.c:3975 free_rb_tree_fname fs/ext4/dir.c:434 [inline] ext4_htree_free_dir_info fs/ext4/dir.c:456 [inline] ext4_release_dir+0xc5/0x150 fs/ext4/dir.c:654 __fput+0x27d/0x6c0 fs/file_table.c:280 task_work_run+0x176/0x1a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x286/0x2e0 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881cd057800 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of 64-byte region [ffff8881cd057800, ffff8881cd057840) The buggy address belongs to the page: page:ffffea00073415c0 refcount:1 mapcount:0 mapping:ffff8881da803180 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0007374bc0 0000000c0000000c ffff8881da803180 raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881cd057700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8881cd057780: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff8881cd057800: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff8881cd057880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8881cd057900: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================