================================================================== 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 ffff8881cbb79de0 by task syz-executor.5/7164 CPU: 0 PID: 7164 Comm: syz-executor.5 Not tainted 5.4.49-syzkaller-00901-gbb765ef8427e #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:__sanitizer_cov_trace_switch+0xdc/0xf0 kernel/kcov.c:311 Code: 8d 1c a5 01 00 00 00 4c 89 04 d8 4c 89 74 d8 08 48 c1 e1 03 48 83 c9 18 48 89 3c 08 4c 89 4c d8 18 49 ff c4 4c 89 20 eb 85 5b <41> 5c 41 5e 41 5f c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 c7 87 RSP: 0018:ffff8881d08cf960 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff84c90350 RDI: 0000000000000000 RBP: ffff8881d08cfbe8 R08: 0000000000000001 R09: ffffffff81e18f0b R10: ffff8881d2b3ae80 R11: 0000000000000002 R12: 0000000000000009 R13: ffff8881d08cfb10 R14: 0000000000000002 R15: dffffc0000000000 security_compute_sid+0x65b/0x1d50 security/selinux/ss/services.c:1769 security_transition_sid+0x78/0x90 security/selinux/ss/services.c:1880 selinux_determine_inode_label security/selinux/hooks.c:1805 [inline] may_create+0x64e/0x9a0 security/selinux/hooks.c:1840 security_inode_symlink+0xa6/0x120 security/security.c:1140 vfs_symlink2+0x2fa/0x500 fs/namei.c:4260 do_symlinkat+0x1d9/0x420 fs/namei.c:4297 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c8b7 Code: 0f 1f 00 b8 5c 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 6d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 58 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc8362c088 EFLAGS: 00000206 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045c8b7 RDX: 00007ffc8362c123 RSI: 00000000004c26a1 RDI: 00007ffc8362c110 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffc8362c0c0 R14: 0000000000000000 R15: 00007ffc8362c0d0 Allocated by task 3056: 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 150: 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 context_add_hash+0x1c7/0x280 security/selinux/ss/services.c:1478 context_struct_to_sid security/selinux/ss/services.c:1491 [inline] security_compute_sid+0x11da/0x1d50 security/selinux/ss/services.c:1855 security_transition_sid+0x78/0x90 security/selinux/ss/services.c:1880 selinux_determine_inode_label security/selinux/hooks.c:1805 [inline] may_create+0x64e/0x9a0 security/selinux/hooks.c:1840 security_inode_create+0xa6/0x130 security/security.c:1116 may_o_create fs/namei.c:3147 [inline] lookup_open fs/namei.c:3295 [inline] do_last fs/namei.c:3434 [inline] path_openat+0x1a83/0x3d10 fs/namei.c:3646 do_filp_open+0x20d/0x440 fs/namei.c:3676 do_sys_open+0x387/0x7d0 fs/open.c:1106 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881cbb79d80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of 64-byte region [ffff8881cbb79d80, ffff8881cbb79dc0) The buggy address belongs to the page: page:ffffea00072ede40 refcount:1 mapcount:0 mapping:ffff8881da803180 index:0xffff8881cbb79880 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0007432780 0000000700000007 ffff8881da803180 raw: ffff8881cbb79880 000000008020001f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881cbb79c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8881cbb79d00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8881cbb79d80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff8881cbb79e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8881cbb79e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================