From nobody Thu Oct 01 21:19:27 2026 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 4hwlCz3L8Xz6tW4M for ; Thu, 01 Oct 2026 21:19:27 +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 4hwlCz2n78z4L1S for ; Thu, 01 Oct 2026 21:19:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790889567; 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=cQqhZYv1dNtRL+BFRl8Ef6IV+iU62zCH2P4S7aJPiJ9bxwz+9Q0lCBt/WYmjdeczH/HUWO TeMxk2VVZra9dBeXYJvRHnVGjqGNrlgRf3L4wWUmSDCOOUlRdPj3Bw3GPiBO3KV3QZHD5n +KD+7ZZjEpZYcKT9xBGZNkHl/xUQorGhia+HNyhei6Hk1LBLMPrzTj8/o2qUFE2RbJ/wdG 69H+At5kzR60QMyN+97BMQxoXQMMRcUsVVuFNg3bFJPj2hWYXm6aXcm/h+awSdEXxJwF7a EW5VTpnuL6IFNKaSyB3n5toR3fmq2nS9P+KNlgIDVGk/q5Jm8OZ1BFzigGS7BA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790889567; b=pja4MzSDcuaNLT+i6jGwWlWz8hx/MDnFQumBkRXqG+NI39rYG1FZE+KwncblwoIEZZvSlN L1ROEaLdtKXceWsYQ4ucUvZlg3f8RQtMRaDxHK1JUClPPSG7qO6Rk7QwL2/cJGcLh8+5C9 siff89LfDoy95bO9lx7XCPtn97x1DI0dN+gTc8cg/nado1Nfz+liDWYodS9Xx2mXB0Vvd+ 5UM8W8DyTjloSd5imWcqtmGOx8k8DrfunmXqWCRYfuqtmns+ucXXcm4C6Bl9kQyYygO5cD e42Umbl9r80iFnvsUtaIXe3i2GR1PtPDhYleaWVrwoU0PuSki0au/xeTUBZwkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790889567; 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=Up3+ckCgcTyuypXCJ4hM7vE6YLBaZCwBxiWHIu9+dERE8F3UWqc4uvuHgKK9AVzUFonx2L 2OZOoJB1kP9RBz9+u6wx4i0u5LsEhXgYrKp0ZrKey4polqOYL2B1q7Gmq67Fq34ROJ+A+B YozA/dnaSsktGkh7i8YWzUlwKSKbeTaAJOqvSnr8r0RQUp2i1O4ewvjQ1Q50MlUXQAaYSv F+PVK75j8353X7vuJEnLm8yiT+gz+L9UBQ2GnZLFrvNvzpRcRn2yDmns4apVi384CeaIa7 IxRzPAqyjHUIc+q6DD8Y1OodbI8oScYZdUr2eTq+FPHvny3fLXh/xvVGev9A2Q== 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 4hwlCz1syPzq3h for ; Thu, 01 Oct 2026 21:19:27 +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 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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) {