usb usb9: usbfs: process 8821 (syz-executor.5) 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 ffff88809a55ba00 by task systemd-journal/4686 CPU: 1 PID: 4686 Comm: systemd-journal 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:__fsnotify_parent+0x4/0x370 fs/notify/fsnotify.c:151 Code: e4 ff e9 35 fe ff ff e8 2a b9 e4 ff e9 6b ff ff ff e8 20 b9 e4 ff e9 bc fd ff ff e8 86 b8 e4 ff e9 48 fd ff ff 90 41 57 41 56 <49> be 00 00 00 00 00 fc ff df 41 55 41 89 d5 41 54 49 89 fc 55 48 RSP: 0018:ffff8880a1207da8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8331e1d0 RDX: 0000000000020000 RSI: ffff88808fe65160 RDI: ffff8880a2f88a50 RBP: ffff8880a2f88a40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000020000 R14: ffff8880a2f88a50 R15: ffff8880560f92c0 fsnotify_parent include/linux/fsnotify.h:26 [inline] fsnotify_perm include/linux/fsnotify.h:48 [inline] security_file_permission+0x189/0x220 security/security.c:875 rw_verify_area+0x104/0x330 fs/read_write.c:391 vfs_read+0x145/0x3c0 fs/read_write.c:448 ksys_read+0x12b/0x2a0 fs/read_write.c:579 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc39174f910 Code: b6 fe ff ff 48 8d 3d 0f be 08 00 48 83 ec 08 e8 06 db 01 00 66 0f 1f 44 00 00 83 3d f9 2d 2c 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 de 9b 01 00 48 89 04 24 RSP: 002b:00007ffcbbf68118 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000558ca34cbe40 RCX: 00007fc39174f910 RDX: 0000000000001000 RSI: 0000558ca34d05f0 RDI: 0000000000000011 RBP: 0000000000000d68 R08: 0000000000000003 R09: 0000000000001010 R10: 0000558ca34cbe40 R11: 0000000000000246 R12: 00007fc391a0a440 R13: 00007fc391a09900 R14: 0000558ca34cf65f R15: 00007fc391a09900 Allocated by task 8821: __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 7679: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 p9_client_version net/9p/client.c:1009 [inline] p9_client_create+0xbf7/0x12e0 net/9p/client.c:1068 v9fs_session_init+0x1dd/0x1770 fs/9p/v9fs.c:421 v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809a55ba00 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff88809a55ba00, ffff88809a55ba20) The buggy address belongs to the page: page:ffffea00026956c0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff88809a55bfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002cbbcc8 ffffea0002896c48 ffff88813bff01c0 raw: ffff88809a55bfc1 ffff88809a55b000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809a55b900: 07 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ffff88809a55b980: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff88809a55ba00: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff88809a55ba80: 00 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ffff88809a55bb00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: e4 ff in $0xff,%al 2: e9 35 fe ff ff jmpq 0xfffffe3c 7: e8 2a b9 e4 ff callq 0xffe4b936 c: e9 6b ff ff ff jmpq 0xffffff7c 11: e8 20 b9 e4 ff callq 0xffe4b936 16: e9 bc fd ff ff jmpq 0xfffffdd7 1b: e8 86 b8 e4 ff callq 0xffe4b8a6 20: e9 48 fd ff ff jmpq 0xfffffd6d 25: 90 nop 26: 41 57 push %r15 28: 41 56 push %r14 * 2a: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 <-- trapping instruction 31: fc ff df 34: 41 55 push %r13 36: 41 89 d5 mov %edx,%r13d 39: 41 54 push %r12 3b: 49 89 fc mov %rdi,%r12 3e: 55 push %rbp 3f: 48 rex.W