From nobody Thu Oct 01 21:19:27 2026 X-Original-To: dev-commits-src-all@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 4hwlD46WgXz6tW5p for ; Thu, 01 Oct 2026 21:19:32 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hwlD4514cz4Ks8 for ; Thu, 01 Oct 2026 21:19:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790889572; 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=5Eza5oVd25m8NyGMW1zdAn0QiDbnrBjR02U4n51w4Oc=; b=Qi+C5FG5FoE+VQAF7v28RWiNjo76kMt0qUQa4uJE8WI4LDfqCvMxmkhoXYlpyaGW+prMwo NKAqSioCQpQpTMoIgI3enpFicDaNGgNncSXSbmV5F1ytpS0O+ewTgkPSW43FCCtHuXsd0S 2+KezzWiTTILws2Qu2ObonCxuZhWbN9NL3hqBSiutC5X7zElwgg98G4KjKLN9TclW/OVdK VpKeaNcF4IoNBbzWmDhdMHd5kbaJu9bn2wasJ6p5KdklvZFe0XAohpE7n7BVLqzwt/W9K3 an/Fq5T7wUdaFGuYlgsHfepuHH2WHXlPhqrtbPJdf0tdwi63ekxZzdaT63OgZA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790889572; b=iUKW7CJNLHtYSupmivVOSaADVdG4vg+UOHpgJDxU9Zqh8jShFaaC1zUB5EGYkejCX0X+b5 Y/T/IlWLwL6fQVssae13HQkRdwOH0qXNTrh7SpMZ2OtF/Uy8IyY8wsaIJO55ApDX0YUK2i FGEPYCdTJZyaMqIQBnl5sbupdx6zgK/VM1cpdT7OzQqYl915RQsFNLjaTE9e921ZZjUR+/ eGFaGzAjHlfY2iKNdah1elGKG0ddCxGgSBqSY/XnseSt7JDm8UsRl5FOzgBFu+w5kq0VcY R1eXxMex+En2DOcrYDiBv5Migr8pyaj/wpHDo6qYLi9S230zfIezZV0Zbttgcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790889572; 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=5Eza5oVd25m8NyGMW1zdAn0QiDbnrBjR02U4n51w4Oc=; b=ZG/1lq0T+ePVauQBFlWx2gH+U6jUhN5lpQpA5f4ygAS7aw5VZ2lKUIMr8sHsZ2ojA7ufSg qETN6hsQbwpJrrIa3aQP+BgxRv7kM2LWCSTEubioi1yNjykFf0mt3y4FnGQ7ITgf63MJey RHZTrRLo881PMBcC25+YziDhvV2wXWhR2bpdjCQ1FUtM3GJxVj8swC3xr0/vqkgW6NO6YQ 6ZGxUg6JMQlE7/KfkSa7gR4SSLsZn/0mDslt8vcauwYE8s0c4Ok5W+faecrQJESaKmC8DH WxdsZu34ukCsGAC7eBxldb8pf6Fxovgjk3UgECFIydSD34OY+rmJH0vSGZNQuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hwlD445s9zq3j for ; Thu, 01 Oct 2026 21:19:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37a7f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Oct 2026 21:19:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: 5f275e547814 - main - cxgbev(4): verify the vendor id before claiming a device List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f275e547814db5944ff1ca746c31447a0896e1e Auto-Submitted: auto-generated Date: Thu, 01 Oct 2026 21:19:27 +0000 Message-Id: <6abece5f.37a7f.357aae1a@gitrepo.freebsd.org> The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=5f275e547814db5944ff1ca746c31447a0896e1e commit 5f275e547814db5944ff1ca746c31447a0896e1e Author: Navdeep Parhar AuthorDate: 2026-10-01 16:16:10 +0000 Commit: Navdeep Parhar CommitDate: 2026-10-01 21:09:51 +0000 cxgbev(4): verify the vendor id before claiming a device PR: 299002 Reviewed by: jhb MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D60203 --- sys/dev/cxgbe/t4_vf.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/sys/dev/cxgbe/t4_vf.c b/sys/dev/cxgbe/t4_vf.c index 89dae02e9332..8e9d3b34d6a2 100644 --- a/sys/dev/cxgbe/t4_vf.c +++ b/sys/dev/cxgbe/t4_vf.c @@ -160,9 +160,13 @@ static struct cdevsw t4vf_cdevsw = { static int t4vf_probe(device_t dev) { - uint16_t d; + uint16_t d, v; size_t i; + v = pci_get_vendor(dev); + if (v != PCI_VENDOR_ID_CHELSIO) + return (ENXIO); + d = pci_get_device(dev); for (i = 0; i < nitems(t4vf_pciids); i++) { if (d == t4vf_pciids[i].device) { @@ -176,9 +180,13 @@ t4vf_probe(device_t dev) static int t5vf_probe(device_t dev) { - uint16_t d; + uint16_t d, v; size_t i; + v = pci_get_vendor(dev); + if (v != PCI_VENDOR_ID_CHELSIO) + return (ENXIO); + d = pci_get_device(dev); for (i = 0; i < nitems(t5vf_pciids); i++) { if (d == t5vf_pciids[i].device) { @@ -192,9 +200,13 @@ t5vf_probe(device_t dev) static int t6vf_probe(device_t dev) { - uint16_t d; + uint16_t d, v; size_t i; + v = pci_get_vendor(dev); + if (v != PCI_VENDOR_ID_CHELSIO) + return (ENXIO); + d = pci_get_device(dev); for (i = 0; i < nitems(t6vf_pciids); i++) { if (d == t6vf_pciids[i].device) { @@ -208,9 +220,13 @@ t6vf_probe(device_t dev) static int chvf_probe(device_t dev) { - uint16_t d; + uint16_t d, v; size_t i; + v = pci_get_vendor(dev); + if (v != PCI_VENDOR_ID_CHELSIO) + return (ENXIO); + d = pci_get_device(dev); for (i = 0; i < nitems(t7vf_pciids); i++) { if (d == t7vf_pciids[i].device) {