================================================================== BUG: KASAN: slab-out-of-bounds in snd_usb_mixer_notify_id+0x219/0x2a0 sound/usb/mixer.c:3240 Write of size 4 at addr ffff888091c93860 by task systemd-udevd/29676 CPU: 0 PID: 29676 Comm: systemd-udevd 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+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 snd_usb_mixer_notify_id+0x219/0x2a0 sound/usb/mixer.c:3240 snd_usb_mixer_interrupt+0x416/0x980 sound/usb/mixer.c:3379 __usb_hcd_giveback_urb+0x2af/0x4b0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1716 __skb_queue_head_init include/linux/skbuff.h:1854 [inline] skbpoolfree drivers/block/aoe/aoedev.c:435 [inline] freedev drivers/block/aoe/aoedev.c:290 [inline] dummy_timer+0x1243/0x2fe1 drivers/block/aoe/aoedev.c:366 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1786 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1107 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:tomoyo_check_acl+0x2d9/0x3e0 security/tomoyo/domain.c:183 Code: 44 89 7c 24 16 e8 47 d0 11 fe 0f b6 74 24 15 40 84 f6 75 57 e8 d8 ce 11 fe 48 83 c3 01 44 89 fe bf ff 00 00 00 e8 47 d0 11 fe <66> 81 fb ff 00 76 a0 e8 bb ce 11 fe 49 8d 7d 49 48 b8 00 00 00 00 RSP: 0018:ffffc90004df7a78 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000000000075 RCX: ffffffff8361fff9 RDX: 0000000000000075 RSI: 00000000000000ff RDI: 0000000000000003 RBP: dffffc0000000000 R08: ffff888023c02200 R09: ffffed1014c85fd8 R10: ffff8880a642febf R11: ffffed1014c85fd7 R12: ffff8880a642feb0 R13: ffffc90004df7ba0 R14: 0000000000000002 R15: 0000000000000075 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0x1f0/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x2f6/0x400 security/tomoyo/file.c:838 security_inode_getattr+0xeb/0x150 security/security.c:1278 vfs_getattr+0x22/0x60 fs/stat.c:121 vfs_statx_fd+0x6a/0xb0 fs/stat.c:151 vfs_fstat include/linux/fs.h:3319 [inline] __do_sys_newfstat+0x88/0x100 fs/stat.c:398 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7fa339b482e2 Code: 48 8b 05 b9 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 77 33 48 63 fe b8 05 00 00 00 48 89 d6 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 8b 15 81 db 2b 00 f7 RSP: 002b:00007ffd8beba488 EFLAGS: 00000246 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa339b482e2 RDX: 00007ffd8beba4a0 RSI: 00007ffd8beba4a0 RDI: 0000000000000007 RBP: 00007ffd8beba650 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000080000 R11: 0000000000000246 R12: 000055edf5159c40 R13: 00007ffd8beba690 R14: 000055edf5148580 R15: 00007ffd8beba610 Allocated by task 29101: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc mm/kasan/common.c:494 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467 kmem_cache_alloc_trace+0x153/0x7d0 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] add_single_ctl_with_resume+0x53/0x1d0 sound/usb/mixer_quirks.c:147 snd_mbox1_create_sync_switch sound/usb/mixer_quirks.c:719 [inline] snd_usb_mixer_apply_create_quirk+0x17ac/0x2000 sound/usb/mixer_quirks.c:2654 snd_usb_create_mixer+0x7de/0x18c0 sound/usb/mixer.c:3538 create_standard_mixer_quirk+0x57/0x70 sound/usb/quirks.c:508 snd_usb_create_quirk+0x9f/0xd0 sound/usb/quirks.c:563 create_composite_quirk+0x1d5/0x420 sound/usb/quirks.c:48 snd_usb_create_quirk+0x9f/0xd0 sound/usb/quirks.c:563 usb_audio_probe+0x57a/0x2240 sound/usb/card.c:668 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:374 really_probe+0x281/0x6d0 drivers/base/dd.c:520 driver_probe_device+0x104/0x210 drivers/base/dd.c:697 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:804 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:870 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x132d/0x1c10 drivers/base/core.c:2557 usb_set_configuration+0xec5/0x1740 drivers/usb/core/message.c:2032 usb_generic_driver_probe+0x9d/0xe0 drivers/usb/core/generic.c:241 usb_probe_device+0xc6/0x1f0 drivers/usb/core/driver.c:272 really_probe+0x281/0x6d0 drivers/base/dd.c:520 driver_probe_device+0x104/0x210 drivers/base/dd.c:697 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:804 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:870 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x132d/0x1c10 drivers/base/core.c:2557 usb_new_device.cold+0x753/0x103d 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+0x1eca/0x38f0 drivers/usb/core/hub.c:5576 process_one_work+0x965/0x16a0 kernel/workqueue.c:2268 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x388/0x470 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Freed by task 29313: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 tomoyo_check_open_permission+0x169/0x370 security/tomoyo/file.c:786 tomoyo_file_open security/tomoyo/tomoyo.c:313 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:308 security_file_open+0x6e/0x410 security/security.c:1553 do_dentry_open+0x3e9/0x1340 fs/open.c:815 do_open fs/namei.c:3229 [inline] path_openat+0x1e59/0x27d0 fs/namei.c:3346 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1179 do_sys_open+0xc3/0x140 fs/open.c:1195 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff888091c93800 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of 64-byte region [ffff888091c93800, ffff888091c93840) The buggy address belongs to the page: page:ffffea00024724c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea000277da88 ffffea0002830148 ffff8880aa000380 raw: 0000000000000000 ffff888091c93000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888091c93700: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff888091c93780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888091c93800: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff888091c93880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888091c93900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================