usb usb9: usbfs: process 18389 (syz-executor.0) did not claim interface 0 before use ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:377 [inline] BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x387/0x6f0 drivers/usb/core/hcd.c:771 Write of size 2 at addr ffff8880af9ab140 by task syz-executor.0/18384 CPU: 1 PID: 18384 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 memcpy+0x35/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:377 [inline] usb_hcd_poll_rh_status+0x387/0x6f0 drivers/usb/core/hcd.c:771 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0033:0x7effbc09ff9c Code: 48 39 d1 72 67 49 89 0e 49 89 7e 08 49 8b 50 f8 48 89 ee 4c 89 e3 4c 89 c0 0f 1f 44 00 00 49 89 dd 48 39 cf 72 2f 48 83 e8 08 <48> 39 d1 73 14 0f 1f 80 00 00 00 00 48 8b 50 f8 48 83 e8 08 48 39 8021q: adding VLAN 0 to HW filter on device batadv1 RSP: 002b:00007ffd22dae900 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13 RAX: 00007effbbeddde8 RBX: 00007effbbedd748 RCX: ffffffff83772075 RDX: ffffffff83772075 RSI: 00007effbbedd750 RDI: ffffffff83772075 RBP: 00007effbbed6190 R08: 00007effbbee0c98 R09: 00000000ee5a3a10 R10: 00007ffd22daec90 R11: 0000000000000246 R12: 00007effbbed6188 R13: 00007effbbedd748 R14: 00007effbbed6180 R15: 0000000000000017 Allocated by task 18389: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] proc_do_submiturb+0x2d17/0x3b00 drivers/usb/core/devio.c:1673 proc_submiturb drivers/usb/core/devio.c:1827 [inline] usbdev_do_ioctl+0x773/0x3030 drivers/usb/core/devio.c:2481 usbdev_ioctl+0x21/0x30 drivers/usb/core/devio.c:2585 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8121: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 security_sk_free+0x3e/0x70 security/security.c:1474 sk_prot_free net/core/sock.c:1516 [inline] __sk_destruct+0x51d/0x8a0 net/core/sock.c:1602 sk_destruct net/core/sock.c:1617 [inline] __sk_free+0x165/0x3b0 net/core/sock.c:1628 sk_free+0x3b/0x50 net/core/sock.c:1639 sock_put include/net/sock.h:1713 [inline] tcp_close+0xb23/0xfd0 net/ipv4/tcp.c:2506 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427 __sock_release+0xcd/0x2a0 net/socket.c:599 sock_close+0x15/0x20 net/socket.c:1214 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 befs: (loop4): No write support. Marking filesystem read-only prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880af9ab140 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880af9ab140, ffff8880af9ab160) The buggy address belongs to the page: page:ffffea0002be6ac0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880af9abfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002a83848 ffffea0002a85288 ffff88813bff01c0 befs: (loop4): invalid magic header raw: ffff8880af9abfc1 ffff8880af9ab000 000000010000003e 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880af9ab000: fb fb fb fb fc fc fc fc 05 fc fc fc fc fc fc fc ffff8880af9ab080: fb fb fb fb fc fc fc fc 00 01 fc fc fc fc fc fc >ffff8880af9ab100: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880af9ab180: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880af9ab200: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================