================================================================== 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 ffff88809f6817e0 by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.7.0-rc7-next-20200529-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+0x18f/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:1880 [inline] skbpoolfree drivers/block/aoe/aoedev.c:435 [inline] freedev drivers/block/aoe/aoedev.c:290 [inline] dummy_timer+0x1246/0x2fe4 drivers/block/aoe/aoedev.c:366 call_timer_fn+0x1ac/0x760 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+0x60f/0x15d0 kernel/time/timer.c:1786 __do_softirq+0x268/0x9ee kernel/softirq.c:292 invoke_softirq kernel/softirq.c:380 [inline] irq_exit_rcu+0x13c/0x170 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0xef/0x260 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:576 RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61 Code: cc cc cc cc cc cc cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d 74 5f 66 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 64 5f 66 00 fb f4 cc 41 56 41 55 41 54 55 53 e8 73 96 7e f9 e8 9e 66 fd ff 0f 1f RSP: 0018:ffffc90000d3fc70 EFLAGS: 00000293 RAX: ffff8880a95f2340 RBX: 0000000000000000 RCX: 1ffffffff155ba76 RDX: 0000000000000000 RSI: ffffffff87e25348 RDI: ffff8880a95f2bc8 RBP: ffff88821af31864 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88821af31864 R13: 1ffff920001a7f99 R14: ffff88821af31865 R15: 0000000000000001 arch_safe_halt arch/x86/include/asm/paravirt.h:150 [inline] acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] acpi_safe_halt+0x8d/0x110 drivers/acpi/processor_idle.c:108 acpi_idle_do_entry+0xa9/0xe0 drivers/acpi/processor_idle.c:525 acpi_idle_enter+0x437/0xb20 drivers/acpi/processor_idle.c:651 cpuidle_enter_state+0xdb/0xd50 drivers/cpuidle/cpuidle.c:234 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:345 call_cpuidle kernel/sched/idle.c:117 [inline] cpuidle_idle_call kernel/sched/idle.c:207 [inline] do_idle+0x42f/0x690 kernel/sched/idle.c:269 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:365 start_secondary+0x2f8/0x410 arch/x86/kernel/smpboot.c:268 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 Allocated by task 2556: 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:525 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:873 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xaf1/0x1900 drivers/base/core.c:2680 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:525 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:873 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xaf1/0x1900 drivers/base/core.c:2680 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/0x1690 kernel/workqueue.c:2268 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Freed by task 0: 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 sctp_addr_wq_timeout_handler+0x262/0x450 net/sctp/protocol.c:673 call_timer_fn+0x1ac/0x760 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+0x60f/0x15d0 kernel/time/timer.c:1786 __do_softirq+0x268/0x9ee kernel/softirq.c:292 The buggy address belongs to the object at ffff88809f681780 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of 64-byte region [ffff88809f681780, ffff88809f6817c0) The buggy address belongs to the page: page:ffffea00027da040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00029b7108 ffffea00027c4d08 ffff8880aa000380 raw: 0000000000000000 ffff88809f681000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f681680: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88809f681700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88809f681780: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff88809f681800: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88809f681880: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ==================================================================