device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode usb usb9: usbfs: process 28309 (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 ffff8880a9b3f4c0 by task syz-executor.2/28304 CPU: 0 PID: 28304 Comm: syz-executor.2 Not tainted 4.19.208-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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline] RIP: 0010:read_seqcount_begin include/linux/seqlock.h:164 [inline] RIP: 0010:read_seqbegin include/linux/seqlock.h:440 [inline] RIP: 0010:d_alloc_parallel+0x704/0x19e0 fs/dcache.c:2453 Code: 82 f1 89 48 c1 e8 03 42 80 3c 38 00 0f 85 bf 11 00 00 48 83 3d 64 8e 48 08 00 0f 84 6c 0d 00 00 e8 f1 8f b9 ff 48 89 df 57 9d <0f> 1f 44 00 00 e9 d7 fb ff ff e8 dd 8f b9 ff e8 b8 a8 a7 ff 31 ff RSP: 0018:ffff8880466bf840 EFLAGS: 00000212 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: 0000000000000212 RCX: ffffc9001313a000 RDX: 0000000000004588 RSI: ffffffff81a8f42f RDI: 0000000000000212 RBP: 000000000000001a R08: ffffffff8cd1d3c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000200 R13: ffff8880340438a0 R14: ffff88808c668600 R15: dffffc0000000000 __lookup_slow+0x18d/0x4a0 fs/namei.c:1655 lookup_one_len+0x163/0x190 fs/namei.c:2544 start_creating+0xc9/0x220 fs/debugfs/inode.c:313 __debugfs_create_file+0x5e/0x480 fs/debugfs/inode.c:352 kvm_create_vm_debugfs arch/x86/kvm/../../../virt/kvm/kvm_main.c:650 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3475 [inline] kvm_dev_ioctl+0xa2b/0x16e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3502 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:0x7fcb22966709 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcb1fedd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcb22a6af60 RCX: 00007fcb22966709 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003 RBP: 00007fcb229c0cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff137476ef R14: 00007fcb1fedd300 R15: 0000000000022000 Allocated by task 28309: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] proc_do_submiturb+0x2d08/0x3af0 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 27452: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvm_destroy_vm_debugfs arch/x86/kvm/../../../virt/kvm/kvm_main.c:618 [inline] kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:789 [inline] kvm_put_kvm+0x19a/0xc70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:831 kvm_vcpu_release+0x77/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2663 __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 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 ffff8880a9b3f4c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880a9b3f4c0, ffff8880a9b3f4e0) The buggy address belongs to the page: page:ffffea0002a6cfc0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880a9b3ffc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002cddd08 ffffea000296b8c8 ffff88813bff01c0 raw: ffff8880a9b3ffc1 ffff8880a9b3f000 000000010000003e 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a9b3f380: 00 06 fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ffff8880a9b3f400: fb fb fb fb fc fc fc fc 00 06 fc fc fc fc fc fc >ffff8880a9b3f480: 00 00 fc fc fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880a9b3f500: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a9b3f580: 00 04 fc fc fc fc fc fc 00 04 fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: f1 icebp 1: 89 48 c1 mov %ecx,-0x3f(%rax) 4: e8 03 42 80 3c callq 0x3c80420c 9: 38 00 cmp %al,(%rax) b: 0f 85 bf 11 00 00 jne 0x11d0 11: 48 83 3d 64 8e 48 08 cmpq $0x0,0x8488e64(%rip) # 0x8488e7d 18: 00 19: 0f 84 6c 0d 00 00 je 0xd8b 1f: e8 f1 8f b9 ff callq 0xffb99015 24: 48 89 df mov %rbx,%rdi 27: 57 push %rdi 28: 9d popfq * 29: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction 2e: e9 d7 fb ff ff jmpq 0xfffffc0a 33: e8 dd 8f b9 ff callq 0xffb99015 38: e8 b8 a8 a7 ff callq 0xffa7a8f5 3d: 31 ff xor %edi,%edi