================================================================== BUG: KASAN: slab-out-of-bounds in copy_to_urb+0x255/0x440 sound/usb/pcm.c:1437 Write of size 264 at addr ffff88802a657600 by task syz.2.224/6658 CPU: 0 PID: 6658 Comm: syz.2.224 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 copy_to_urb+0x255/0x440 sound/usb/pcm.c:1437 prepare_playback_urb+0x932/0x1380 sound/usb/pcm.c:1565 prepare_outbound_urb+0x372/0xc60 sound/usb/endpoint.c:336 snd_usb_endpoint_start+0x4f1/0x1450 sound/usb/endpoint.c:1623 start_endpoints+0xa1/0x270 sound/usb/pcm.c:273 snd_usb_substream_playback_trigger+0x3e0/0x790 sound/usb/pcm.c:1669 snd_pcm_do_start+0xb1/0x170 sound/core/pcm_native.c:1448 snd_pcm_action_single sound/core/pcm_native.c:1298 [inline] snd_pcm_action+0xda/0x230 sound/core/pcm_native.c:1381 __snd_pcm_lib_xfer+0x16f7/0x1c50 sound/core/pcm_lib.c:2341 snd_pcm_oss_write3+0x1bc/0x320 sound/core/oss/pcm_oss.c:1254 snd_pcm_plug_write_transfer+0x2be/0x4b0 sound/core/oss/pcm_plugin.c:630 snd_pcm_oss_write2+0x1a9/0x410 sound/core/oss/pcm_oss.c:1386 snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1452 [inline] snd_pcm_oss_write+0x6ae/0xaf0 sound/core/oss/pcm_oss.c:2812 vfs_write+0x296/0x990 fs/read_write.c:582 ksys_write+0x150/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff773f9aeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff774f3d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff774215fa0 RCX: 00007ff773f9aeb9 RDX: 00000000000005ce RSI: 0000200000000640 RDI: 0000000000000004 RBP: 00007ff774008c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff774216038 R14: 00007ff774215fa0 R15: 00007fffea3b6538 Allocated by task 6658: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb4/0x230 mm/slab_common.c:1020 data_ep_set_params sound/usb/endpoint.c:1263 [inline] snd_usb_endpoint_set_params+0x163e/0x2b40 sound/usb/endpoint.c:1400 snd_usb_hw_params+0x123d/0x19d0 sound/usb/pcm.c:569 snd_pcm_hw_params+0x8a6/0x1ce0 sound/core/pcm_native.c:784 snd_pcm_oss_change_params_locked+0x2042/0x3cf0 sound/core/oss/pcm_oss.c:976 snd_pcm_oss_make_ready_locked sound/core/oss/pcm_oss.c:1199 [inline] snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1417 [inline] snd_pcm_oss_write+0x27e/0xaf0 sound/core/oss/pcm_oss.c:2812 vfs_write+0x296/0x990 fs/read_write.c:582 ksys_write+0x150/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88802a657600 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes inside of allocated 144-byte region [ffff88802a657600, ffff88802a657690) The buggy address belongs to the physical page: page:ffffea0000a995c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a657 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888017c41a00 dead000000000122 0000000000000000 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 5847, tgid 5847 (kworker/0:6), ts 160694994563, free_ts 159974984900 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4486 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x230 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] usb_alloc_urb+0x46/0x140 drivers/usb/core/urb.c:75 usb_internal_control_msg drivers/usb/core/message.c:96 [inline] usb_control_msg+0x119/0x3e0 drivers/usb/core/message.c:154 usb_get_string+0xa1/0x3c0 drivers/usb/core/message.c:844 usb_string_sub+0x76/0x420 drivers/usb/core/message.c:883 usb_get_langid drivers/usb/core/message.c:920 [inline] usb_string+0x1d1/0x760 drivers/usb/core/message.c:984 usb_cache_string+0x80/0x130 drivers/usb/core/message.c:1030 usb_enumerate_device drivers/usb/core/hub.c:2502 [inline] usb_new_device+0x297/0x1660 drivers/usb/core/hub.c:2630 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2504 release_pages+0x1f7a/0x2200 mm/swap.c:1022 tlb_batch_pages_flush mm/mmu_gather.c:98 [inline] tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu+0x377/0x510 mm/mmu_gather.c:300 tlb_finish_mmu+0xc3/0x1d0 mm/mmu_gather.c:392 exit_mmap+0x428/0xb90 mm/mmap.c:3315 __mmput+0x118/0x3c0 kernel/fork.c:1355 exit_mm+0x1f2/0x2c0 kernel/exit.c:569 do_exit+0x8dd/0x2460 kernel/exit.c:870 do_group_exit+0x21b/0x2d0 kernel/exit.c:1024 get_signal+0x12fc/0x13f0 kernel/signal.c:2902 arch_do_signal_or_restart+0xc2/0x800 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xa0 arch/x86/entry/common.c:82 Memory state around the buggy address: ffff88802a657580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802a657600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802a657680: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802a657700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802a657780: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================