usb usb9: usbfs: process 31648 (syz-executor.1) did not claim interface 0 before use vhci_hcd: default hub control req: a108 v0000 i0000 l0 ================================================================== 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 ffff8880a2eecb40 by task syz-executor.5/31662 CPU: 1 PID: 31662 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 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 __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: 0010:jhash2 include/linux/jhash.h:128 [inline] RIP: 0010:hash_stack lib/stackdepot.c:165 [inline] RIP: 0010:depot_save_stack+0x94/0x410 lib/stackdepot.c:234 Code: f4 03 42 f8 41 29 da 44 89 d5 41 89 da 01 c3 41 c1 c2 04 41 31 ea 44 29 d0 41 89 c3 44 89 d0 41 01 da c1 c0 06 44 31 d8 29 c3 <41> 89 db 89 c3 44 01 d0 c1 c3 08 44 31 db 41 89 db 41 29 da 01 c3 RSP: 0018:ffff8880498f7748 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13 RAX: 00000000b4e32738 RBX: 000000002b70ecaf RCX: ffff8880498f77a8 RDX: ffff8880498f77d8 RSI: 0000000000000009 RDI: 0000000000000009 RBP: 00000000ee233f59 R08: 00000000006002c0 R09: 0000000000000006 R10: 00000000d999e7c0 R11: 00000000e597d146 R12: ffff8880498f7790 R13: 0000000000000000 R14: ffff88813bff01c0 R15: 0000000000000020 save_stack mm/kasan/kasan.c:454 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0x139/0x160 mm/kasan/kasan.c:553 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x144/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 RIP: 0033:0x7ff7a8ca4059 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff7a75d7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff7a8db7100 RCX: 00007ff7a8ca4059 RDX: 00000000200001c0 RSI: 000000008038550a RDI: 0000000000000003 RBP: 00007ff7a8cfe08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe976017bf R14: 00007ff7a75d7300 R15: 0000000000022000 Allocated by task 31662: __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 16913: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 squashfs_cache_delete.part.0+0x248/0x370 fs/squashfs/cache.c:221 squashfs_cache_delete+0x1b/0x30 fs/squashfs/cache.c:214 squashfs_put_super+0x93/0x250 fs/squashfs/super.c:387 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 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 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 ffff8880a2eecb40 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880a2eecb40, ffff8880a2eecb60) The buggy address belongs to the page: page:ffffea00028bbb00 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880a2eecfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002d6d108 ffffea000260cd48 ffff88813bff01c0 raw: ffff8880a2eecfc1 ffff8880a2eec000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a2eeca00: 00 00 00 06 fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a2eeca80: 07 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880a2eecb00: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880a2eecb80: 00 00 06 fc fc fc fc fc 06 fc fc fc fc fc fc fc ffff8880a2eecc00: fb fb fb fb fc fc fc fc 00 00 00 02 fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: f4 hlt 1: 03 42 f8 add -0x8(%rdx),%eax 4: 41 29 da sub %ebx,%r10d 7: 44 89 d5 mov %r10d,%ebp a: 41 89 da mov %ebx,%r10d d: 01 c3 add %eax,%ebx f: 41 c1 c2 04 rol $0x4,%r10d 13: 41 31 ea xor %ebp,%r10d 16: 44 29 d0 sub %r10d,%eax 19: 41 89 c3 mov %eax,%r11d 1c: 44 89 d0 mov %r10d,%eax 1f: 41 01 da add %ebx,%r10d 22: c1 c0 06 rol $0x6,%eax 25: 44 31 d8 xor %r11d,%eax 28: 29 c3 sub %eax,%ebx * 2a: 41 89 db mov %ebx,%r11d <-- trapping instruction 2d: 89 c3 mov %eax,%ebx 2f: 44 01 d0 add %r10d,%eax 32: c1 c3 08 rol $0x8,%ebx 35: 44 31 db xor %r11d,%ebx 38: 41 89 db mov %ebx,%r11d 3b: 41 29 da sub %ebx,%r10d 3e: 01 c3 add %eax,%ebx