================================================================== BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774 Write of size 2 at addr ffff88807c9764d8 by task syz-executor.3/19436 CPU: 0 PID: 19436 Comm: syz-executor.3 Not tainted 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 print_address_description+0x65/0x380 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report+0x19a/0x1f0 mm/kasan/report.c:450 kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:189 memcpy+0x3c/0x60 mm/kasan/shadow.c:66 usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774 call_timer_fn+0xf6/0x210 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x71a/0x910 kernel/time/timer.c:1734 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1747 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x43/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0033:0x7f635ee18bc7 Code: 31 c0 80 3d eb e7 09 01 00 0f 85 74 ff ff ff bd 01 00 00 00 45 8d 58 04 44 89 c0 41 89 c2 41 81 e2 ff 1f 00 00 43 8b 7c 95 00 <41> 39 f8 0f 84 6b ff ff ff 85 ff 0f 84 58 01 00 00 83 c0 01 41 39 RSP: 002b:00007fffce0ffad0 EFLAGS: 00000206 RAX: 000000009878f911 RBX: 00007f635ebe2008 RCX: 0000001b33020000 RDX: 0000001b330216f8 RSI: ffffffff8169fca5 RDI: 000000009878f911 RBP: 0000000000000001 R08: 000000009878f911 R09: 00007f635ef82348 R10: 0000000000001911 R11: 000000009878f915 R12: 000000000000bf2a R13: 00007f635ef72000 R14: ffffffff8169fca5 R15: 00007f635ef7dff0 Allocated by task 19438: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:269 [inline] __kmalloc+0x253/0x380 mm/slub.c:4423 kmalloc include/linux/slab.h:595 [inline] proc_do_submiturb+0x237d/0x3d80 drivers/usb/core/devio.c:1816 proc_submiturb drivers/usb/core/devio.c:1975 [inline] usbdev_do_ioctl drivers/usb/core/devio.c:2671 [inline] usbdev_ioctl+0x397c/0x6d00 drivers/usb/core/devio.c:2791 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff88807c9764d8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff88807c9764d8, ffff88807c9764e0) The buggy address belongs to the page: page:ffffea0001f25d80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c976 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888011441280 raw: 0000000000000000 0000000080660066 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 22515, ts 560791251898, free_ts 560781799069 prep_new_page mm/page_alloc.c:2418 [inline] get_page_from_freelist+0x729/0x9e0 mm/page_alloc.c:4149 __alloc_pages+0x255/0x580 mm/page_alloc.c:5369 alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0xcc/0x4d0 mm/slub.c:1930 new_slab mm/slub.c:1993 [inline] ___slab_alloc+0x41e/0xc40 mm/slub.c:3022 __slab_alloc mm/slub.c:3109 [inline] slab_alloc_node mm/slub.c:3200 [inline] slab_alloc mm/slub.c:3242 [inline] __kmalloc_track_caller+0x2d4/0x370 mm/slub.c:4925 kvasprintf+0xd6/0x180 lib/kasprintf.c:25 kobject_set_name_vargs+0x5d/0x110 lib/kobject.c:289 kobject_add_varg lib/kobject.c:384 [inline] kobject_init_and_add+0xdb/0x190 lib/kobject.c:473 netdev_queue_add_kobject net/core/net-sysfs.c:1665 [inline] netdev_queue_update_kobjects+0x1ab/0x430 net/core/net-sysfs.c:1710 register_queue_kobjects net/core/net-sysfs.c:1771 [inline] netdev_register_kobject+0x263/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x127a/0x1c00 net/core/dev.c:10336 __ip_tunnel_create+0x2af/0x370 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x249/0x720 net/ipv4/ip_tunnel.c:1070 ops_init+0x313/0x430 net/core/net_namespace.c:140 setup_net+0x35b/0x9d0 net/core/net_namespace.c:326 copy_net_ns+0x359/0x5c0 net/core/net_namespace.c:470 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1338 [inline] free_pcp_prepare+0xd1c/0xe00 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x7d/0x580 mm/page_alloc.c:3388 __dev_alloc_name net/core/dev.c:1138 [inline] dev_alloc_name_ns+0x925/0x9f0 net/core/dev.c:1160 dev_get_valid_name net/core/dev.c:1195 [inline] register_netdevice+0x555/0x1c00 net/core/dev.c:10255 __ip_tunnel_create+0x2af/0x370 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x249/0x720 net/ipv4/ip_tunnel.c:1070 ops_init+0x313/0x430 net/core/net_namespace.c:140 setup_net+0x35b/0x9d0 net/core/net_namespace.c:326 copy_net_ns+0x359/0x5c0 net/core/net_namespace.c:470 create_new_namespaces+0x4ce/0xa00 kernel/nsproxy.c:110 copy_namespaces+0x333/0x390 kernel/nsproxy.c:178 copy_process+0x2968/0x5ca0 kernel/fork.c:2194 kernel_clone+0x22a/0x7e0 kernel/fork.c:2582 __do_sys_clone3 kernel/fork.c:2857 [inline] __se_sys_clone3+0x38e/0x440 kernel/fork.c:2841 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff88807c976380: fc fc fc fb fc fc fc fc 00 fc fc fc fc fa fc fc ffff88807c976400: fc fc fb fc fc fc fc 00 fc fc fc fc fa fc fc fc >ffff88807c976480: fc fb fc fc fc fc fa fc fc fc fc 01 fc fc fc fc ^ ffff88807c976500: fb fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc fb ffff88807c976580: fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc fa fc ==================================================================