usb usb9: usbfs: process 13543 (syz-executor.1) did not claim interface 0 before use gfs2: invalid mount option: ´»£®Nóòɨ ================================================================== 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 ffff8880b515c1c0 by task systemd-udevd/13545 CPU: 1 PID: 13545 Comm: systemd-udevd 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:fput+0x0/0x190 fs/file_table.c:330 Code: ef e8 94 38 f5 ff eb dc 66 90 55 48 89 fd e8 97 5b bf ff 48 89 ef 5d e9 ee f6 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 <41> 54 55 48 89 fd 53 e8 74 5b bf ff 48 8d 7d 70 be 08 00 00 00 e8 RSP: 0018:ffff888056997ea8 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff8880576b61c0 RBX: 0000000000000000 RCX: ffffffff81ba035a RDX: 0000000000000000 RSI: ffffffff81a1c5bc RDI: ffff8880af4d2540 RBP: ffff8880af4d2540 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880b0651c00 R13: 0000000000000000 R14: ffff8880b0651cc0 R15: 0000000000000000 filp_close+0x124/0x160 fs/open.c:1168 __close_fd+0x133/0x200 fs/file.c:636 __do_sys_close fs/open.c:1181 [inline] __se_sys_close fs/open.c:1179 [inline] __x64_sys_close+0x69/0x100 fs/open.c:1179 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f61dbd8ea4b Code: 48 8b 34 24 eb c5 66 0f 1f 84 00 00 00 00 00 48 c7 c0 ff ff ff ff eb c8 0f 1f 80 00 00 00 00 48 63 7f 70 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 f3 c3 0f 1f 00 48 8b 15 19 74 32 00 f7 d8 RSP: 002b:00007ffde80d93c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000563bf329eab0 RCX: 00007f61dbd8ea4b RDX: 00007f61dc0b2900 RSI: 0000563bf328d8a0 RDI: 000000000000000f RBP: 00007f61dc0b3440 R08: 00007f61dcf868c0 R09: 0000563bf329ea00 R10: 00007f61dcf868c0 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 13543: __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 12713: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 aa_free_task_ctx security/apparmor/include/task.h:61 [inline] apparmor_task_free+0x143/0x1e0 security/apparmor/lsm.c:93 security_task_free+0x3e/0x70 security/security.c:992 __put_task_struct+0xea/0x340 kernel/fork.c:688 put_task_struct include/linux/sched/task.h:98 [inline] delayed_put_task_struct+0x1dc/0x320 kernel/exit.c:181 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff8880b515c1c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880b515c1c0, ffff8880b515c1e0) The buggy address belongs to the page: page:ffffea0002d45700 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880b515cfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002996dc8 ffffea0002bd3748 ffff88813bff01c0 raw: ffff8880b515cfc1 ffff8880b515c000 0000000100000032 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b515c080: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880b515c100: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880b515c180: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880b515c200: fb fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ffff8880b515c280: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: ef out %eax,(%dx) 1: e8 94 38 f5 ff callq 0xfff5389a 6: eb dc jmp 0xffffffe4 8: 66 90 xchg %ax,%ax a: 55 push %rbp b: 48 89 fd mov %rdi,%rbp e: e8 97 5b bf ff callq 0xffbf5baa 13: 48 89 ef mov %rbp,%rdi 16: 5d pop %rbp 17: e9 ee f6 ff ff jmpq 0xfffff70a 1c: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 23: 00 00 00 00 27: 0f 1f 00 nopl (%rax) * 2a: 41 54 push %r12 <-- trapping instruction 2c: 55 push %rbp 2d: 48 89 fd mov %rdi,%rbp 30: 53 push %rbx 31: e8 74 5b bf ff callq 0xffbf5baa 36: 48 8d 7d 70 lea 0x70(%rbp),%rdi 3a: be 08 00 00 00 mov $0x8,%esi 3f: e8 .byte 0xe8