From nobody Wed Dec 21 18:34:05 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ncht55vdkz1GhLf; Wed, 21 Dec 2022 18:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ncht555w9z411v; Wed, 21 Dec 2022 18:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671647645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BhegpYKENUQZuEG4lbmWMjbiVX0e4dKlAyPIVtItYZ4=; b=OtFPKHdFEscFCyKTG8HswNz32tTEk7XyTomNvs5ntfou8+2YVNZM/SJPVs3P0RdLhg0rjK MiacwVwQ6GMj7vmewd+HOxnghtQzPkFjzEoGqPu8MCQpwWne6F5YFFSQq57lL/dhTl8Dpo xLNs+wUhRzBaJ4sI/Olo0g8N9s+2jPlhZjR0+aJjDv7Ncv0hwHAPd7BUwENCBMixoCumES v21BOREj0P0L5VDx7LmDZZIMAee4yEBPK7fWKbjZ9RZbgm8Q0BVEp7DC4UrjDj62VbCyse 35q2qEDr4MbKEb4NsVqet5rkfF4mx8TMO9MeHF+fISlX7KX6ZE9LLhG4uu5G8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671647645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BhegpYKENUQZuEG4lbmWMjbiVX0e4dKlAyPIVtItYZ4=; b=I05rTDAO4gUF8r8wwuzxIo2W8CfGZT6H0Rp+dlavhkU2cGBKgrDpFzUnH55HNoD8hHJtqx 6bImMPX6fm5WKPYegd1FkLE++JkOVjdrDeFbSl8G5eGGrqUkonALNeSwuMLAIVJQ0pmtYC MFJAM/79z5X5fVFfnrrs4nPXVSKFWI/H0ZC6oIqJ0H4W4684dDzICsLy9tdDRHpQKGsT/B VW+tKmQAHBNsbpGCCLoruQ5wgs+BH7Xvk3xnebBkl0fy5Ialb0ukKXpTvnOD5L23ii8asj btnz2aylRRjz83KeStiIRw6xFhOrRvvPvA2Xj6pc6snzgWlIc2IOHxZy+CFJDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671647645; a=rsa-sha256; cv=none; b=byzT3MFelMyWiLPVojL8G5/AfJtYVk0gIcNnPfRQnum2nhQWIGFaVHXSSIXASx5WkgXPo+ uadIxJCOm3u324OJxyOA9ZmnCz+eiswPOuIIW9pKcQRzI9qwKo+BS+blHw6O4/sw15iHMo qlCP58WJAShbM5CfyVek8yC3LwSqwQn/8TiYQGugFldSmvfmj0Qp0h90V2s/yyzRdkwFu7 LHGbdnOgWjwRR1wqhEPKe05Wkyj7ceSo6q/aZ2+cjA1Hblqa8lITVI2ddW260MjCoRFSQT Fb0I2R+S2aGKK51O9lUfHYyXYRg+JAIvOOpcCzxnRNjVo4sAr8G3SWHRR9pS/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ncht5492JzPvr; Wed, 21 Dec 2022 18:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BLIY54D068925; Wed, 21 Dec 2022 18:34:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BLIY5h3068924; Wed, 21 Dec 2022 18:34:05 GMT (envelope-from git) Date: Wed, 21 Dec 2022 18:34:05 GMT Message-Id: <202212211834.2BLIY5h3068924@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8487443792ce - main - bhyve: Don't access vcpumap[vcpu] directly in parse_cpuset(). List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8487443792ce67fce21ae32470d6d8c217e93368 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8487443792ce67fce21ae32470d6d8c217e93368 commit 8487443792ce67fce21ae32470d6d8c217e93368 Author: John Baldwin AuthorDate: 2022-12-21 18:33:04 +0000 Commit: John Baldwin CommitDate: 2022-12-21 18:33:04 +0000 bhyve: Don't access vcpumap[vcpu] directly in parse_cpuset(). Reviewed by: corvink, markj Differential Revision: https://reviews.freebsd.org/D37645 --- usr.sbin/bhyve/bhyverun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 31cb7c2ceaf3..c110fecf31b0 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -441,12 +441,12 @@ parse_cpuset(int vcpu, const char *list, cpuset_t *set) errx(4, "Invalid hostcpu range %d-%d", start, pcpu); while (start < pcpu) { - CPU_SET(start, vcpumap[vcpu]); + CPU_SET(start, set); start++; } start = -1; } - CPU_SET(pcpu, vcpumap[vcpu]); + CPU_SET(pcpu, set); break; case '-': if (start >= 0)