vhci_hcd: invalid port number 76 ================================================================== 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 ffff8801cd99c47c by task syz-executor2/21780 CPU: 0 PID: 21780 Comm: syz-executor2 Not tainted 4.19.0-rc5-next-20180928+ #84 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+0x1d3/0x2c4 lib/dump_stack.c:113 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 vhci_hub_control+0x1b6d/0x1be0 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+0x17bb/0x20a0 drivers/usb/core/hcd.c:1651 usb_submit_urb+0x893/0x14e0 drivers/usb/core/urb.c:570 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 usbdev_do_ioctl+0x1eb8/0x3b50 drivers/usb/core/devio.c:2412 usbdev_ioctl+0x25/0x30 drivers/usb/core/devio.c:2569 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:0x457579 Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc4a0d73c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579 RDX: 0000000020000040 RSI: 00000000c0185500 RDI: 0000000000000004 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc4a0d746d4 R13: 00000000004bf6c0 R14: 00000000004cf598 R15: 00000000ffffffff Allocated by task 20843: 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_node+0x144/0x730 mm/slab.c:3644 __alloc_skb+0x114/0x770 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:997 [inline] nlmsg_new include/net/netlink.h:535 [inline] rtmsg_ifinfo_build_skb+0x74/0x190 net/core/rtnetlink.c:3329 rtmsg_ifinfo_event.part.31+0x45/0xe0 net/core/rtnetlink.c:3365 rtmsg_ifinfo_event net/core/rtnetlink.c:3376 [inline] rtmsg_ifinfo+0x8c/0xa0 net/core/rtnetlink.c:3374 register_netdevice+0xc9d/0x10f0 net/core/dev.c:8521 register_netdev+0x30/0x50 net/core/dev.c:8595 vti6_init_net+0x67b/0xa30 net/ipv6/ip6_vti.c:1125 ops_init+0x101/0x560 net/core/net_namespace.c:129 setup_net+0x3cf/0x950 net/core/net_namespace.c:314 copy_net_ns+0x2b1/0x4a0 net/core/net_namespace.c:437 create_new_namespaces+0x6ad/0x900 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc3/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x79c/0x10b0 kernel/fork.c:2539 __do_sys_unshare kernel/fork.c:2607 [inline] __se_sys_unshare kernel/fork.c:2605 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2605 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 20843: 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 kfree_skbmem+0x154/0x230 net/core/skbuff.c:582 __kfree_skb net/core/skbuff.c:642 [inline] consume_skb+0x1b1/0x560 net/core/skbuff.c:701 netlink_broadcast_filtered+0x6e6/0x1680 net/netlink/af_netlink.c:1512 netlink_broadcast net/netlink/af_netlink.c:1534 [inline] nlmsg_multicast include/net/netlink.h:615 [inline] nlmsg_notify+0xa0/0x1a0 net/netlink/af_netlink.c:2490 rtnl_notify net/core/rtnetlink.c:742 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:3353 [inline] rtmsg_ifinfo_event.part.31+0xb2/0xe0 net/core/rtnetlink.c:3368 rtmsg_ifinfo_event net/core/rtnetlink.c:3376 [inline] rtmsg_ifinfo+0x8c/0xa0 net/core/rtnetlink.c:3374 register_netdevice+0xc9d/0x10f0 net/core/dev.c:8521 register_netdev+0x30/0x50 net/core/dev.c:8595 vti6_init_net+0x67b/0xa30 net/ipv6/ip6_vti.c:1125 ops_init+0x101/0x560 net/core/net_namespace.c:129 setup_net+0x3cf/0x950 net/core/net_namespace.c:314 copy_net_ns+0x2b1/0x4a0 net/core/net_namespace.c:437 create_new_namespaces+0x6ad/0x900 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc3/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x79c/0x10b0 kernel/fork.c:2539 __do_sys_unshare kernel/fork.c:2607 [inline] __se_sys_unshare kernel/fork.c:2605 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2605 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 ffff8801cd99c340 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 84 bytes to the right of 232-byte region [ffff8801cd99c340, ffff8801cd99c428) The buggy address belongs to the page: page:ffffea0007366700 count:1 mapcount:0 mapping:ffff8801d9bcf600 index:0x0 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea00073517c8 ffffea00075f5808 ffff8801d9bcf600 raw: 0000000000000000 ffff8801cd99c0c0 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cd99c300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8801cd99c380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801cd99c400: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cd99c480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801cd99c500: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ==================================================================