From nobody Fri Jul 24 04:35:14 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 4h5wC716n0z6lscL for ; Fri, 24 Jul 2026 04:35:15 +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 4h5wC64k1mz3ZSH for ; Fri, 24 Jul 2026 04:35:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784867714; 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=0y0kgBqWys335mx5xRyGlssnVFz+rpQnuP/I5v/M4zs=; b=fJYdxs9SbP9KnaQCmpRHCKzotaDm078xhMALxC5vulf6Bdoii5RQTQkzvc2KUF5FyEt+hg D3MH/8O2354U6b4H0hHmGmCv/ysNHUVKNkXUJ3Ae+Xtwv7AtWA+JiK0vsxFKx4IHwfqoVx nEqnd595WVTI9gI4kXh+mh1/6jGTMnhvyJ6VtZaFvhgu/sP8nyobae5p8JU+AVsfKOoORd y68YSfq+gYpuy7QAiRpTICzEnYIpiRpOjEO0vmfLFMaygMJIjWLim8comHq79SQoH5IM7j RAwQblg4/fEHQ/DMTaMrRE+LEyHY15rDappuEhxswj2VlbACvDwIOmNXO0HcQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784867714; a=rsa-sha256; cv=none; b=Sv7RVlnGRjaY96WrtnK6VVbO0KrzJmB4Mim5jkHzZwdtA+6CJA4the3AWOXdDbcQm/WQR+ XbZqH1WTcw0AFAdLUe1LnKX4gteSEa6gn+u2arqLqcbDVpSSyUnMHUtmZhy6W6NWtcc/D+ TbzeozXzhdrLfGrJ6ToeQImdP1bpPpsgxTXMo0seUkTuztzyJBwCXCYB5myoWDjZuYt+87 5Y96ixWk4gfOtkvDKBDJapkGcwZB33w9SlRN1gXiYSOF/5NsZ3Ve+uwb9eVuYueOF5v3C1 h2fzAcfwZg2pezBQd40WmXdQCHM5v54+QUAN5cctgDB2ymGvQ3Ln7R2YZ8114w== 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=1784867714; 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=0y0kgBqWys335mx5xRyGlssnVFz+rpQnuP/I5v/M4zs=; b=SJ7qb7ol9KTrXYHRsW2KsEydAt7x70jUVe1+/SohphehcorVGCqNpRmUsHzZSpPDjK+4uf RLjY/YtR216WKa+ptLhd2nAfPqIeGmn4tk2dAQ6KhZD+io4c2ZHd3FUr9heUx8yxJ7IgD6 e6xxFzJ76Aj+EMWvipQu/EMs6sqakqb1wd1q7mganW9gDxg+iYuLB/c4xEz0rOjlbQN+ZX wy2fozfxt4+/UlJoewsb/U4vJnESz5pZDy2RZwF7YPidUa9KzXe4EMlLh1A+dEItH7GxkU D/ntnM8avIzxVSqQo0TfyfxAQ9eqAvH0kd1shG99Fw5tmSCDFPYRURJaWpp3RA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h5wC63Q7Wzcj2 for ; Fri, 24 Jul 2026 04:35:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 396cb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 24 Jul 2026 04:35:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: f594f06fa983 - stable/15 - acpi_cpu(4): Call ACPI_GET_FEATURES() on a reset 'features' variable 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: f594f06fa98351e115544546afb992af9140b014 Auto-Submitted: auto-generated Date: Fri, 24 Jul 2026 04:35:14 +0000 Message-Id: <6a62eb82.396cb.4805fc17@gitrepo.freebsd.org> The branch stable/15 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=f594f06fa98351e115544546afb992af9140b014 commit f594f06fa98351e115544546afb992af9140b014 Author: Olivier Certner AuthorDate: 2026-07-07 13:34:21 +0000 Commit: Olivier Certner CommitDate: 2026-07-24 04:33:39 +0000 acpi_cpu(4): Call ACPI_GET_FEATURES() on a reset 'features' variable This is to prevent child drivers from using the features returned by previous drivers (in an arbitrary order). None of the existing ones do that, so this is purely defensive. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation (cherry picked from commit 664ad9ac4c9047d29d5f37d43174e1b469e2ec80) --- sys/dev/acpica/acpi_cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 51a7e513f649..7216acc5571d 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -311,7 +311,6 @@ acpi_cpu_attach(device_t dev) struct acpi_cpu_softc *sc; struct acpi_softc *acpi_sc; ACPI_STATUS status; - u_int features; int cpu_id, drv_count, i; driver_t **drivers; uint32_t cap_set[3]; @@ -415,6 +414,8 @@ acpi_cpu_attach(device_t dev) if (devclass_get_drivers(device_get_devclass(dev), &drivers, &drv_count) == 0) { for (i = 0; i < drv_count; i++) { + u_int features = 0; + if (ACPI_GET_FEATURES(drivers[i], &features) == 0) sc->cpu_features |= features; }