usb usb9: usbfs: process 17777 (syz-executor.3) did not claim interface 0 before use EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue ================================================================== 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 ffff88808f8d2940 by task syz-executor.3/17771 CPU: 0 PID: 17771 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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 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 EXT4-fs error (device loop0): ext4_init_inode_table:1398: comm ext4lazyinit: Something is wrong with group 0: used itable blocks: -92; itable unused count: 768 __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:0x7f8453df2687 Code: 39 d1 73 14 0f 1f 80 00 00 00 00 48 8b 50 f8 48 83 e8 08 48 39 ca 77 f3 48 39 c3 73 3e 48 89 13 48 8b 50 f8 48 89 38 49 8b 0e <48> 8b 3e 48 83 c3 08 48 83 c6 08 eb bc 48 39 d1 72 9e 48 39 d0 73 RSP: 002b:00007ffc7f3e94a0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 00007f8453848138 RBX: 00007f8453842a18 RCX: ffffffff83772075 RDX: ffffffff83772075 RSI: 00007f8453842a20 RDI: ffffffff83771e31 RBP: 00007f845382e318 R08: 00007f84538511e8 R09: 00000000ee5a3a10 R10: 0000000000000000 R11: 0000000000000000 R12: 00007f845382e310 R13: 00007f8453842a18 R14: 00007f845382e308 R15: 000000000000001a Allocated by task 17777: __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 16591: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 __vunmap+0x2a5/0x3f0 mm/vmalloc.c:1534 vfree+0x65/0x100 mm/vmalloc.c:1598 netlink_skb_destructor+0xc0/0x200 net/netlink/af_netlink.c:375 skb_release_head_state+0x158/0x2c0 net/core/skbuff.c:625 skb_release_all net/core/skbuff.c:638 [inline] __kfree_skb net/core/skbuff.c:654 [inline] consume_skb+0xda/0x3d0 net/core/skbuff.c:714 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x4dd/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 sock_no_sendpage+0xf5/0x140 net/core/sock.c:2686 kernel_sendpage net/socket.c:3585 [inline] sock_sendpage+0xdf/0x140 net/socket.c:912 pipe_to_sendpage+0x268/0x330 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 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 ffff88808f8d2940 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff88808f8d2940, ffff88808f8d2960) The buggy address belongs to the page: page:ffffea00023e3480 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff88808f8d2fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002916948 ffffea0002cbc688 ffff88813bff01c0 raw: ffff88808f8d2fc1 ffff88808f8d2000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808f8d2800: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff88808f8d2880: 00 03 fc fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff88808f8d2900: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff88808f8d2980: fb fb fb fb fc fc fc fc 07 fc fc fc fc fc fc fc ffff88808f8d2a00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================