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 dump_header+0x27b/0xf72 mm/oom_kill.c:441 ================================================================== 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 ffff8801cdcab8bc by task syz-executor1/6056 oom_kill_process.cold.27+0x10/0x903 mm/oom_kill.c:953 out_of_memory+0xa84/0x1430 mm/oom_kill.c:1120 mem_cgroup_out_of_memory+0x15e/0x210 mm/memcontrol.c:1386 mem_cgroup_oom mm/memcontrol.c:1701 [inline] try_charge+0xc43/0x1690 mm/memcontrol.c:2260 memcg_kmem_charge_memcg+0x7c/0x120 mm/memcontrol.c:2590 memcg_kmem_charge+0x135/0x300 mm/memcontrol.c:2623 __alloc_pages_nodemask+0x72e/0xde0 mm/page_alloc.c:4394 __alloc_pages include/linux/gfp.h:473 [inline] __alloc_pages_node include/linux/gfp.h:486 [inline] alloc_pages_node include/linux/gfp.h:500 [inline] alloc_thread_stack_node kernel/fork.c:241 [inline] dup_task_struct kernel/fork.c:806 [inline] copy_process+0xa09/0x8780 kernel/fork.c:1707 _do_fork+0x1cb/0x11d0 kernel/fork.c:2166 __do_sys_clone kernel/fork.c:2273 [inline] __se_sys_clone kernel/fork.c:2267 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2267 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457519 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:00007fedbba11c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457519 RDX: 9999999999999999 RSI: 0000000000000000 RDI: 0000000020002100 RBP: 000000000072bf00 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000020000340 R11: 0000000000000246 R12: 00007fedbba126d4 R13: 00000000004bd999 R14: 00000000004cc3e8 R15: 00000000ffffffff CPU: 0 PID: 6056 Comm: syz-executor1 Not tainted 4.19.0-rc7+ #277 vhci_hcd: invalid port number 108 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 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:0x457519 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:00007f1d5241cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457519 RDX: 0000000020000000 RSI: 00000000c0185500 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1d5241d6d4 R13: 00000000004bf65f R14: 00000000004cf538 R15: 00000000ffffffff Allocated by task 21333: 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 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc_track_caller+0x14a/0x750 mm/slab.c:3733 kmemdup+0x24/0x50 mm/util.c:118 kmemdup include/linux/string.h:418 [inline] __addrconf_sysctl_register+0xae/0x430 net/ipv6/addrconf.c:6536 addrconf_sysctl_register+0x13c/0x1e0 net/ipv6/addrconf.c:6601 ipv6_add_dev+0xb4e/0x13a0 net/ipv6/addrconf.c:446 addrconf_notify+0x9e3/0x27d0 net/ipv6/addrconf.c:3434 notifier_call_chain+0x17e/0x380 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1733 call_netdevice_notifiers net/core/dev.c:1751 [inline] register_netdevice+0xb98/0x10f0 net/core/dev.c:8508 bond_newlink+0x49/0xa0 drivers/net/bonding/bond_netlink.c:453 rtnl_newlink+0xec6/0x1d40 net/core/rtnetlink.c:3107 rtnetlink_rcv_msg+0x46a/0xc20 net/core/rtnetlink.c:4730 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2454 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4748 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x5a5/0x760 net/netlink/af_netlink.c:1343 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2116 __sys_sendmsg+0x11d/0x280 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801cdcaa340 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 1404 bytes to the right of 4096-byte region [ffff8801cdcaa340, ffff8801cdcab340) The buggy address belongs to the page: page:ffffea0007372a80 count:1 mapcount:0 mapping:ffff8801da800dc0 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0007372a08 ffffea0006e6c108 ffff8801da800dc0 raw: 0000000000000000 ffff8801cdcaa340 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cdcab780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cdcab800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801cdcab880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cdcab900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cdcab980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================