vhci_hcd: invalid port number 108 ================================================================== BUG: KASAN: slab-out-of-bounds in vhci_hub_control+0x1b88/0x1bf0 drivers/usb/usbip/vhci_hcd.c:441 Read of size 4 at addr ffff8801ce60f7bc by task syz-executor4/10129 CPU: 1 PID: 10129 Comm: syz-executor4 Not tainted 4.19.0-rc1+ #217 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+0x1b88/0x1bf0 drivers/usb/usbip/vhci_hcd.c:441 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:00007f710d3b0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f710d3b16d4 RCX: 0000000000457099 RDX: 0000000020000000 RSI: 00000000c0185500 RDI: 0000000000000004 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004ce8f0 R14: 00000000004c4e0b R15: 0000000000000000 Allocated by task 8400: 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_node+0x144/0x720 mm/slab.c:3644 __alloc_skb+0x119/0x770 net/core/skbuff.c:193 skb_copy+0x141/0x310 net/core/skbuff.c:1348 tcp_send_synack+0x623/0x1290 net/ipv4/tcp_output.c:3134 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:5948 [inline] tcp_rcv_state_process+0x22e4/0x5041 net/ipv4/tcp_input.c:6028 tcp_v4_do_rcv+0x363/0x8f0 net/ipv4/tcp_ipv4.c:1554 sk_backlog_rcv include/net/sock.h:931 [inline] __release_sock+0x12f/0x3a0 net/core/sock.c:2336 release_sock+0xad/0x2c0 net/core/sock.c:2849 inet_wait_for_connect net/ipv4/af_inet.c:588 [inline] __inet_stream_connect+0x61f/0x1160 net/ipv4/af_inet.c:680 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719 __sys_connect+0x37d/0x4c0 net/socket.c:1662 __do_sys_connect net/socket.c:1673 [inline] __se_sys_connect net/socket.c:1670 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1670 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8400: 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 kfree_skbmem+0x154/0x230 net/core/skbuff.c:582 __kfree_skb+0x1d/0x20 net/core/skbuff.c:642 sk_wmem_free_skb include/net/sock.h:1447 [inline] tcp_rtx_queue_unlink_and_free include/net/tcp.h:1732 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3155 [inline] tcp_ack+0x20eb/0x57a0 net/ipv4/tcp_input.c:3680 tcp_rcv_state_process+0xc63/0x5041 net/ipv4/tcp_input.c:6059 tcp_v4_do_rcv+0x363/0x8f0 net/ipv4/tcp_ipv4.c:1554 sk_backlog_rcv include/net/sock.h:931 [inline] __release_sock+0x12f/0x3a0 net/core/sock.c:2336 release_sock+0xad/0x2c0 net/core/sock.c:2849 inet_wait_for_connect net/ipv4/af_inet.c:588 [inline] __inet_stream_connect+0x61f/0x1160 net/ipv4/af_inet.c:680 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719 __sys_connect+0x37d/0x4c0 net/socket.c:1662 __do_sys_connect net/socket.c:1673 [inline] __se_sys_connect net/socket.c:1670 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1670 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 ffff8801ce60f6c0 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 20 bytes to the right of 232-byte region [ffff8801ce60f6c0, ffff8801ce60f7a8) The buggy address belongs to the page: page:ffffea00073983c0 count:1 mapcount:0 mapping:ffff8801d9e01040 index:0xffff8801ce60f300 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0007290908 ffffea00072d19c8 ffff8801d9e01040 raw: ffff8801ce60f300 ffff8801ce60f080 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801ce60f680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8801ce60f700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801ce60f780: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801ce60f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801ce60f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ==================================================================