vhci_hcd: invalid port number 108 ================================================================== BUG: KASAN: slab-out-of-bounds in vhci_hub_control+0x1b6d/0x1be0 drivers/usb/usbip/vhci_hcd.c:441 Read of size 4 at addr ffff8801ce1237bc by task syz-executor4/15275 CPU: 0 PID: 15275 Comm: syz-executor4 Not tainted 4.19.0-rc7+ #185 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+0x1c4/0x2b4 lib/dump_stack.c:113 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 vhci_hub_control+0x1b6d/0x1be0 drivers/usb/usbip/vhci_hcd.c:441 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 rh_call_control drivers/usb/core/hcd.c:679 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:838 [inline] usb_hcd_submit_urb+0x17bb/0x20a0 drivers/usb/core/hcd.c:1651 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 usb_submit_urb+0x893/0x14e0 drivers/usb/core/urb.c:570 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 usb_start_wait_urb+0x13d/0x370 drivers/usb/core/message.c:57 usb_internal_control_msg drivers/usb/core/message.c:101 [inline] usb_control_msg+0x332/0x4e0 drivers/usb/core/message.c:152 proc_control+0x99b/0xef0 drivers/usb/core/devio.c:1106 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 usbdev_do_ioctl+0x1eb8/0x3b50 drivers/usb/core/devio.c:2412 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 usbdev_compat_ioctl+0x24/0x30 drivers/usb/core/devio.c:2580 __do_compat_sys_ioctl fs/compat_ioctl.c:1419 [inline] __se_compat_sys_ioctl fs/compat_ioctl.c:1365 [inline] __ia32_compat_sys_ioctl+0x20e/0x630 fs/compat_ioctl.c:1365 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fdfca9 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5fdb0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000c0185500 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 RDX: 0000000020000080 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 5460: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 getname_flags+0xd0/0x5a0 fs/namei.c:140 getname+0x19/0x20 fs/namei.c:211 do_sys_open+0x383/0x700 fs/open.c:1057 __do_compat_sys_open fs/open.c:1100 [inline] __se_compat_sys_open fs/open.c:1098 [inline] __ia32_compat_sys_open+0x79/0xb0 fs/open.c:1098 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 5460: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3756 putname+0xf2/0x130 fs/namei.c:261 do_sys_open+0x54d/0x700 fs/open.c:1072 __do_compat_sys_open fs/open.c:1100 [inline] __se_compat_sys_open fs/open.c:1098 [inline] __ia32_compat_sys_open+0x79/0xb0 fs/open.c:1098 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff8801ce122140 which belongs to the cache names_cache of size 4096 The buggy address is located 1660 bytes to the right of 4096-byte region [ffff8801ce122140, ffff8801ce123140) The buggy address belongs to the page: page:ffffea0007384880 count:1 mapcount:0 mapping:ffff8801da972d80 index:0x0 compound_mapcount: 0 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0007542e08 ffffea00063d4c88 ffff8801da972d80 raw: 0000000000000000 ffff8801ce122140 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801ce123680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801ce123700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801ce123780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801ce123800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801ce123880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================