vhci_hcd: invalid port number 132 ================================================================== BUG: KASAN: slab-out-of-bounds in vhci_hub_control+0x1a26/0x1bf0 drivers/usb/usbip/vhci_hcd.c:452 Read of size 4 at addr ffff8801ce675eac by task syz-executor0/12442 CPU: 0 PID: 12442 Comm: syz-executor0 Not tainted 4.19.0-rc1-next-20180831+ #53 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 vhci_hub_control+0x1a26/0x1bf0 drivers/usb/usbip/vhci_hcd.c:452 rh_call_control drivers/usb/core/hcd.c:679 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:838 [inline] usb_hcd_submit_urb+0x184a/0x2160 drivers/usb/core/hcd.c:1651 usb_submit_urb+0x895/0x14d0 drivers/usb/core/urb.c:570 usb_start_wait_urb+0x140/0x360 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 usbdev_do_ioctl+0x1eb4/0x3b30 drivers/usb/core/devio.c:2394 usbdev_ioctl+0x25/0x30 drivers/usb/core/devio.c:2551 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457099 Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f954da27c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f954da286d4 RCX: 0000000000457099 RDX: 0000000020000100 RSI: 00000000c0185500 RDI: 0000000000000003 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004ce8f0 R14: 00000000004c4e0b R15: 0000000000000000 Allocated by task 4668: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x710 mm/slab.c:3554 vm_area_dup+0x7a/0x220 kernel/fork.c:324 dup_mmap kernel/fork.c:485 [inline] dup_mm kernel/fork.c:1275 [inline] copy_mm kernel/fork.c:1330 [inline] copy_process+0x3a48/0x7af0 kernel/fork.c:1870 _do_fork+0x1ca/0x1170 kernel/fork.c:2169 __do_sys_clone kernel/fork.c:2276 [inline] __se_sys_clone kernel/fork.c:2270 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2270 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10955: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 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+0x86/0x280 mm/slab.c:3756 vm_area_free+0x1c/0x20 kernel/fork.c:335 remove_vma+0x13f/0x180 mm/mmap.c:185 exit_mmap+0x365/0x590 mm/mmap.c:3104 __mmput kernel/fork.c:1002 [inline] mmput+0x265/0x620 kernel/fork.c:1023 exit_mm kernel/exit.c:545 [inline] do_exit+0xec6/0x26e0 kernel/exit.c:854 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801ce675da8 which belongs to the cache vm_area_struct(97:syz4) of size 200 The buggy address is located 60 bytes to the right of 200-byte region [ffff8801ce675da8, ffff8801ce675e70) The buggy address belongs to the page: page:ffffea0007399d40 count:1 mapcount:0 mapping:ffff8801bf84dcc0 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea00074e7a88 ffffea0007369f48 ffff8801bf84dcc0 raw: 0000000000000000 ffff8801ce675040 000000010000000f ffff88019019c680 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88019019c680 Memory state around the buggy address: ffff8801ce675d80: fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 ffff8801ce675e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc >ffff8801ce675e80: fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 ^ ffff8801ce675f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ffff8801ce675f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================