From nobody Tue Jun 30 14:59:48 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 4gqRBt36jgz6kK66 for ; Tue, 30 Jun 2026 14:59:50 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gqRBt0J0nz3V0l for ; Tue, 30 Jun 2026 14:59:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782831590; 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=D/wEBk/Z40qdqpjoVYr+3JdZM65RHsEg8JmEIowRiEo=; b=GKDnBQE6OnL58zLU+oO+bMsb1+VuCCUZrRUaU3ubiZI9zWvPe8KSiYHEJVRnaRZ+p2pAD/ N3tULkJM9e0QyzVgI70Q3YJXwnmWAlXbimpmpeTCb7pKedoglA4GM5OcJ6ra/JJ2c+cUta 282EH0DOyXn6NOdl7fI7Fktpe+yx0LpDz3efOfVmgRanzAfpZBWZ5v5PwBi8w/vXlzftva lT0SDAcTpDLHCCyvWv7ycdVZN7bBUs3XCLQ/+7kxtcFHndfdrNlmKLgBnfo0DqEh28x+06 NuoqU3VVXaaHYgC2kRxNkp8mFQCOuwa4yR+oRqCa4mZLgTNEMNXsUfZEN/PlBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782831590; a=rsa-sha256; cv=none; b=w/mSw7lyROPe95S3cmp9VHBERpnC2lLZ9m8QzUmH3+5RxRHZ1vJd050/N05dLV9u/RIbBn 6HHwXQCq+F+DdRPWKroOLZdLI5NRrkFuJ9wQRtRykpwZxTbsD1C6CtPY/jLbtwVZfuc1pN AhZ5BrMHWYHSRYQag8RwtlKO4a5ZaH3CxagnvAJUln9kWIgcF40Jfmy3COIUG7g06mNxTf HJzXxnddtsHNTt1aCEtbq63iixsDsMEuYxqKm5DorEcNL0r5tUdosKBEnch8mzTafknDht AMeYfLdqDR3rIpgppY3rCybOTOgNvGD18X7zMF7yowQHfo3DOevH7Cm5zSoKsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782831590; 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=D/wEBk/Z40qdqpjoVYr+3JdZM65RHsEg8JmEIowRiEo=; b=a7NVLY7RZHNd4IjGVxVpktiw67bgbKnPvIMglV2kNcxM7nS8iHA+jNH0MlzCNVwONnoPEY 1vmihXL+Oqd6JrbNe/hqfKNyy4einlAhQestHFN4LmDZ78wEtDhAO+lTpVfFBzFn7VZbSC wuc8iZb2huVB5RgXe9kM2XfiB/PjZ4i1jh4GD8RivBGA63dYx7eBD+GuNI8jXR8FDapSCF 6rqgRU6/lHP6kKMaBIOi8xnkqaNgdqIP/D2idmU3tFPwuE9Zz0nqlXaL/IGodVN8y83QXG hWWDFG7fANjhcNjkO0JjPRRhHubcZTObHVi2QNYOH2j1OF1+S1l7eOgj4dwHUQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gqRBs4sPBzpTb for ; Tue, 30 Jun 2026 14:59:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3691b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Jun 2026 14:59:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: d5332d3a9042 - main - generic_ehci_fdt: fix driver softc size 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d5332d3a904242cb82e7dbf35e4aeec7c2df4402 Auto-Submitted: auto-generated Date: Tue, 30 Jun 2026 14:59:48 +0000 Message-Id: <6a43d9e4.3691b.6d903fb6@gitrepo.freebsd.org> The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=d5332d3a904242cb82e7dbf35e4aeec7c2df4402 commit d5332d3a904242cb82e7dbf35e4aeec7c2df4402 Author: Mitchell Horne AuthorDate: 2026-06-30 14:58:11 +0000 Commit: Mitchell Horne CommitDate: 2026-06-30 14:59:40 +0000 generic_ehci_fdt: fix driver softc size This subclass declares its own softc structure adding necessary members after the embedded ehci_softc_t. The full size of the struct must be included in the driver declaration, otherwise the allocation backing the softc is not guaranteed to be large enough. Reported by: KASAN Reviewed by: jrtc27, manu Fixes: 7a58744fd0f1 ("Split out the attachment from the generic-ehci driver") MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57951 --- sys/dev/usb/controller/generic_ehci_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/controller/generic_ehci_fdt.c b/sys/dev/usb/controller/generic_ehci_fdt.c index df2dc7fba4b9..8271061d274d 100644 --- a/sys/dev/usb/controller/generic_ehci_fdt.c +++ b/sys/dev/usb/controller/generic_ehci_fdt.c @@ -232,7 +232,7 @@ static device_method_t ehci_fdt_methods[] = { }; DEFINE_CLASS_1(ehci, ehci_fdt_driver, ehci_fdt_methods, - sizeof(ehci_softc_t), generic_ehci_driver); + sizeof(struct generic_ehci_fdt_softc), generic_ehci_driver); DRIVER_MODULE(generic_ehci, simplebus, ehci_fdt_driver, 0, 0); MODULE_DEPEND(generic_ehci, usb, 1, 1, 1);