================================================================== BUG: KASAN: slab-out-of-bounds in copy_to_urb+0x255/0x440 sound/usb/pcm.c:1437 Write of size 264 at addr ffff88807ae19400 by task syz.3.887/8947 CPU: 1 PID: 8947 Comm: syz.3.887 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 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:1624 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_sync1+0x189/0x4f0 sound/core/oss/pcm_oss.c:1628 snd_pcm_oss_sync+0x7d4/0xc20 sound/core/oss/pcm_oss.c:1694 snd_pcm_oss_release+0x102/0x240 sound/core/oss/pcm_oss.c:2591 __fput+0x234/0x970 fs/file_table.c:384 task_work_run+0x1d4/0x260 kernel/task_work.c:245 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: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 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe5fe79bf79 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:00007fff429a6d08 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fff429a6df0 RCX: 00007fe5fe79bf79 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000067b69 R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b2cb20000 R11: 0000000000000246 R12: 00007fff429a6e30 R13: 00007fe5fea15fac R14: 0000000000067ed9 R15: 00007fe5fea15fa0 Allocated by task 8948: 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+0x164c/0x2b40 sound/usb/endpoint.c:1401 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x790 kernel/rcu/tree.c:3452 drop_sysctl_table+0x394/0x540 fs/proc/proc_sysctl.c:1515 drop_sysctl_table+0x3ab/0x540 fs/proc/proc_sysctl.c:1518 unregister_sysctl_table+0x41/0x60 fs/proc/proc_sysctl.c:1536 mpls_dev_sysctl_unregister+0x8b/0xc0 net/mpls/af_mpls.c:1431 mpls_dev_notify+0x533/0x7a0 net/mpls/af_mpls.c:1643 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] unregister_netdevice_many_notify+0x100d/0x1900 net/core/dev.c:11099 ip_tunnel_delete_nets+0x324/0x370 net/ipv4/ip_tunnel.c:1157 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x795/0xbb0 net/core/net_namespace.c:652 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x790 kernel/rcu/tree.c:3452 drop_sysctl_table+0x394/0x540 fs/proc/proc_sysctl.c:1515 drop_sysctl_table+0x3ab/0x540 fs/proc/proc_sysctl.c:1518 unregister_sysctl_table+0x41/0x60 fs/proc/proc_sysctl.c:1536 __devinet_sysctl_unregister net/ipv4/devinet.c:2656 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2684 [inline] inetdev_destroy net/ipv4/devinet.c:330 [inline] inetdev_event+0x79a/0x1630 net/ipv4/devinet.c:1636 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] unregister_netdevice_many_notify+0x100d/0x1900 net/core/dev.c:11099 ip_tunnel_delete_nets+0x324/0x370 net/ipv4/ip_tunnel.c:1157 ops_exit_list net/core/net_namespace.c:178 [inline] setup_net+0x85c/0xa30 net/core/net_namespace.c:375 copy_net_ns+0x36d/0x5e0 net/core/net_namespace.c:520 create_new_namespaces+0x3d3/0x6f0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:228 ksys_unshare+0x4ce/0x8b0 kernel/fork.c:3439 __do_sys_unshare kernel/fork.c:3510 [inline] __se_sys_unshare kernel/fork.c:3508 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3508 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 ffff88807ae19400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes inside of allocated 240-byte region [ffff88807ae19400, ffff88807ae194f0) The buggy address belongs to the physical page: page:ffffea0001eb8600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7ae18 head:ffffea0001eb8600 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c41b40 ffffea0001e18000 dead000000000003 raw: 0000000000000000 0000000000100010 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 5773, tgid 5773 (syz-executor), ts 76332747008, free_ts 76321130084 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] kzalloc include/linux/slab.h:721 [inline] new_dir fs/proc/proc_sysctl.c:969 [inline] get_subdir fs/proc/proc_sysctl.c:1013 [inline] sysctl_mkdir_p fs/proc/proc_sysctl.c:1308 [inline] __register_sysctl_table+0xac9/0x1240 fs/proc/proc_sysctl.c:1389 __addrconf_sysctl_register+0x27a/0x3f0 net/ipv6/addrconf.c:7210 addrconf_sysctl_register+0x15c/0x1b0 net/ipv6/addrconf.c:7258 ipv6_add_dev+0xc42/0x11e0 net/ipv6/addrconf.c:451 addrconf_notify+0x67b/0x1010 net/ipv6/addrconf.c:3640 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] register_netdevice+0x16a5/0x1bb0 net/core/dev.c:10326 tun_set_iff+0x848/0xed0 drivers/net/tun.c:2862 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+0x32/0x2e0 mm/page_alloc.c:2458 discard_slab mm/slub.c:2127 [inline] __unfreeze_partials+0x1cf/0x210 mm/slub.c:2667 put_cpu_partial+0x17c/0x250 mm/slub.c:2743 __slab_free+0x319/0x400 mm/slub.c:3700 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x13a/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] kset_create lib/kobject.c:965 [inline] kset_create_and_add+0x5a/0x160 lib/kobject.c:1008 register_queue_kobjects net/core/net-sysfs.c:1793 [inline] netdev_register_kobject+0x1b2/0x320 net/core/net-sysfs.c:2046 register_netdevice+0x12ee/0x1bb0 net/core/dev.c:10293 register_netdev+0x3b/0x50 net/core/dev.c:10425 vti6_init_net+0x214/0x330 net/ipv6/ip6_vti.c:1163 Memory state around the buggy address: ffff88807ae19380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807ae19400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807ae19480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ^ ffff88807ae19500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807ae19580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================