================================================================== BUG: KASAN: slab-out-of-bounds in copy_to_urb+0x21f/0x410 sound/usb/pcm.c:1393 Write of size 264 at addr ffff88801db56600 by task syz.3.298/5379 CPU: 0 PID: 5379 Comm: syz.3.298 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memcpy+0x3c/0x60 mm/kasan/shadow.c:66 copy_to_urb+0x21f/0x410 sound/usb/pcm.c:1393 prepare_playback_urb+0x910/0x1440 sound/usb/pcm.c:1521 snd_usb_endpoint_start+0x4a6/0x12e0 sound/usb/endpoint.c:1620 start_endpoints+0xa1/0x270 sound/usb/pcm.c:273 snd_usb_substream_playback_trigger+0x3eb/0x7d0 sound/usb/pcm.c:1625 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+0x17ba/0x1c90 sound/core/pcm_lib.c:2310 snd_pcm_oss_write3+0x1b8/0x310 sound/core/oss/pcm_oss.c:1254 snd_pcm_plug_write_transfer+0x2ba/0x4b0 sound/core/oss/pcm_plugin.c:630 snd_pcm_oss_write2+0x1a5/0x410 sound/core/oss/pcm_oss.c:1386 snd_pcm_oss_sync1+0x185/0x4f0 sound/core/oss/pcm_oss.c:1628 snd_pcm_oss_sync+0x7ac/0xc00 sound/core/oss/pcm_oss.c:1694 snd_pcm_oss_release+0xfe/0x240 sound/core/oss/pcm_oss.c:2591 __fput+0x22c/0x920 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f654219bf79 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:00007ffd81f1c258 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007ffd81f1c340 RCX: 00007f654219bf79 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000027394 R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b2e920000 R11: 0000000000000246 R12: 00007ffd81f1c380 R13: 00007f6542415fac R14: 0000000000027f45 R15: 00007f6542415fa0 Allocated by task 5380: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb0/0x240 mm/slab_common.c:949 data_ep_set_params sound/usb/endpoint.c:1259 [inline] snd_usb_endpoint_set_params+0x17f5/0x2f00 sound/usb/endpoint.c:1397 snd_usb_hw_params+0x1239/0x19d0 sound/usb/pcm.c:569 snd_pcm_hw_params+0x8a2/0x1ce0 sound/core/pcm_native.c:784 snd_pcm_oss_change_params_locked+0x2062/0x3c60 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+0x277/0xaf0 sound/core/oss/pcm_oss.c:2812 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x103/0x870 kernel/rcu/tree.c:3405 inetdev_event+0x33a/0x1400 net/ipv4/devinet.c:1601 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_close_many+0x29f/0x400 net/core/dev.c:1614 dev_close+0x154/0x210 net/core/dev.c:1636 __bond_release_one+0xc07/0x1170 drivers/net/bonding/bond_main.c:2524 do_set_master net/core/rtnetlink.c:2616 [inline] do_setlink+0xdc0/0x3e60 net/core/rtnetlink.c:2840 rtnl_group_changelink net/core/rtnetlink.c:3361 [inline] __rtnl_newlink net/core/rtnetlink.c:3618 [inline] rtnl_newlink+0x112b/0x2080 net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x87c/0xfc0 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x1fb/0x450 net/netlink/af_netlink.c:2511 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x74d/0x8d0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1872 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5be/0x970 net/socket.c:2518 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2572 __sys_sendmsg net/socket.c:2601 [inline] __do_sys_sendmsg net/socket.c:2610 [inline] __se_sys_sendmsg+0x1bb/0x2a0 net/socket.c:2608 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88801db56600 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes inside of 256-byte region [ffff88801db56600, ffff88801db56700) The buggy address belongs to the physical page: page:ffffea000076d580 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801db56200 pfn:0x1db56 head:ffffea000076d580 order:1 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001f65c08 ffffea00005de008 ffff888017441b40 raw: ffff88801db56200 000000000010000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4277, tgid 4277 (syz-executor), ts 71988765103, free_ts 71988626407 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5643 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] ____ip_mc_inc_group+0x2ad/0xac0 net/ipv4/igmp.c:1452 __ip_mc_inc_group net/ipv4/igmp.c:1487 [inline] ip_mc_inc_group net/ipv4/igmp.c:1493 [inline] ip_mc_up+0x121/0x2f0 net/ipv4/igmp.c:1792 inetdev_event+0xe67/0x1400 net/ipv4/devinet.c:1590 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_open+0x106/0x180 net/core/dev.c:1542 bond_enslave+0x110d/0x3af0 drivers/net/bonding/bond_main.c:2026 do_set_master net/core/rtnetlink.c:2630 [inline] do_setlink+0xd3a/0x3e60 net/core/rtnetlink.c:2840 __rtnl_newlink net/core/rtnetlink.c:3608 [inline] rtnl_newlink+0x177c/0x2080 net/core/rtnetlink.c:3655 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508 free_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] __kmem_cache_alloc_node+0x140/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline] netdevice_event+0x325/0x900 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_open+0x106/0x180 net/core/dev.c:1542 bond_enslave+0x110d/0x3af0 drivers/net/bonding/bond_main.c:2026 do_set_master net/core/rtnetlink.c:2630 [inline] do_setlink+0xd3a/0x3e60 net/core/rtnetlink.c:2840 __rtnl_newlink net/core/rtnetlink.c:3608 [inline] rtnl_newlink+0x177c/0x2080 net/core/rtnetlink.c:3655 Memory state around the buggy address: ffff88801db56580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801db56600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801db56680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ^ ffff88801db56700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801db56780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================