From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E76AF40F75E for ; Mon, 3 Aug 2026 14:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785767484; cv=none; b=Fug+vzAvsc55ZQwYuBYDaYarWJsJzq5qxD2G0lCI+HS5DjYrbP6CQp63O58X6/OvQF5F20woh5Jb8hKaVBdXu9H54utUJIdHeVHKabUDCxR1Xkq/HUem7i3OZn0FMzxlFcaG9jigWwqHLpX6kYCjJcgLuytzncMriupTqOhFYG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785767484; c=relaxed/simple; bh=mT7/d7xo3H3nfPCihbxPgzMZLfcDW4NzWBe1wQtzgNo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hWgDb2ymLfpQARuggPUsecDO1nAkdxjhFFPCLFuka6lC2I9znhy3gpwjLyKfovvxiXkarJYaJ5BQPEEzyXA5nxLdlFDCG1TDz/RBjyVUiRfYWiYo0GBU8SiUOuySd9pmq+inpKnuzU7xHD+fYb6pjZldhGO+3LjWsMgrdL900gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ANrB3e/9; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ANrB3e/9" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4954a9e8490so15859575e9.1 for ; Mon, 03 Aug 2026 07:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785767480; x=1786372280; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ndb/ZrZ5742Zc7Zv5as8TFdneRJ3/39sqxXLaYsiR40=; b=ANrB3e/9knuho2yGnbBS9IRfJMdYTHIUw3cmM1zHbIQh6Y7sE7h9bGXTPABRw+97Gw LLyLGNzYMC246eakAqUaNm16ZG1IbalAUQw/BNsNHgZMu0y4gUvrW7fYc25nr9fgXHdP 7ItN070XYaOOQJy7Bjb+AkajxFq5HVeOG1F3uCyC1Zh2mgtIJlN6b8mCjp+KTPnBizZK 54/pUPEnpsa8ZSSpNhRNTkMlm7jWDXLmfPame+pA7QK8MXvO13vJVNljUSIaCBxf0CSq IchSsLaUN87Zr9tEixt3G+qLOxFKPCOfeWRbbB13YBjjqD01CDwtX/ZT7owFmd9RVziA kaRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785767480; x=1786372280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ndb/ZrZ5742Zc7Zv5as8TFdneRJ3/39sqxXLaYsiR40=; b=YR5VKMRBTMRGElVmTthrGgYFIXVXuVKfRQlKRCXhOWa4MNwajjF3ZF1Zjn0qrYUU9N JX6B4WLq9vdGHjMVl9cUxLNaW+3iBtuy7xLV7ioU61w8xAA3pIxtve6HvpMaFNoz2DKY iAwqhhAQycP+Djbm3/Eqf9igvppcIqEY+cciSGfVml6nMQBDaDtQFPYicIBOgiPueXDg HVcTbVgR97dr4aJfwSMa60JH63X+LpBsVpPrZBaJSzqALdoybFCF8MAH17ubzhX7lDz0 Xvqsu1CkRVnXqfQSiS8Su39kCYbbPkOF1W15tgBuYBkSewziEeWaNzMPWo1jviy73BEm PM/Q== X-Forwarded-Encrypted: i=1; AHgh+RqKIxlq3nv58sm0g+BGrWobfb35h5Vxb59JE/NS7qTky5NQpQlNr+7XwiE+/uVSCFr1RZmicECnKoYWTMw=@vger.kernel.org X-Gm-Message-State: AOJu0YztwFLfvIVsHNisDq0yAPD35zjYEmPmkUbMd294pB+s6e45+Cpu ywfj71b3vgduDKCnRocws739RxkXfiy145VWB6CaqIcZ8+6R3NbdDWt3 X-Gm-Gg: AR+sD10stCwQw8nWMGuJB8BEQ/H72kuo5RScojDGBDVPC2rat+b1k995RO7QmxNy2xV 0Bx0etRa1cKB2oQydRjJBe8TJPOl7643Wu5ANADw3axDOTr5avobmGy7q+sEypNQjNYebsyWETM wpFKiKk2g5f1qwlFNKRu9QGIlgnLaaNr5uoxnKu9jrdZAdo7LTRS9Guh8wd5vpah6/p3wQ6Nzv9 +Ie/ihJ1SRZYcdLyKM3B4qSG5iEBXoLSOPYDNkQocDqWzuvWf8clN5sCFMrHbpUfbRyWB7XsvCv QIBGwgAs1Jf6VkzWnOmbyAuck2L20huch2xgLNKGwGl4yWwI+b4sJ/XbL74AmPLbhYqfjFgcRND II0KtySusKDqc+69eAwdH6g1drmjUgrTEtKiuh9ZgfLLCkgnMSTVHdXME/afwcFAlQ64vYYLw0y hvrNG9aKlgRpl9VbtPKxJVTzWhQxd2xqRP5xC7Czxq6tndnTu58rt9zV3kT8zqfPBjeJFvYGoBZ nrW6pKWIwmtv91Jk6kl/eLNxfLvOSbsjrpG0ktAjA== X-Received: by 2002:a05:600c:a42:b0:495:69eb:27d3 with SMTP id 5b1f17b1804b1-4980eba0a6fmr208709925e9.8.1785767479778; Mon, 03 Aug 2026 07:31:19 -0700 (PDT) Received: from fedora ([202.47.63.86]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49807b98284sm236575295e9.12.2026.08.03.07.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2026 07:31:19 -0700 (PDT) From: Muhammad Bilal To: platform-driver-x86@vger.kernel.org Cc: jorge.lopez2@hp.com, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, linux@weissschuh.net, linux-kernel@vger.kernel.org, meatuni001@gmail.com, stable@vger.kernel.org Subject: [PATCH 10/13] platform/x86: hp-bioscfg: advance elem past consumed array elements in int-attributes Date: Mon, 3 Aug 2026 19:30:33 +0500 Message-ID: <20260803143037.93105-11-meatuni001@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260803143037.93105-1-meatuni001@gmail.com> References: <20260803143037.93105-1-meatuni001@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Same defect as the companion fix to enum-attributes.c in this series: the PREREQUISITES case consumes "size" consecutive ACPI package elements via elem + reqs, but the outer loop only advances "elem" by one per iteration, causing the next iteration to misread a leftover prerequisite entry as the next property and abort the parse with -EIO on the resulting type mismatch. Fix by advancing "elem" by (size - 1) after the loop. Fixes: 6f2c06d5a467 ("platform/x86: hp-bioscfg: int-attributes") Cc: stable@vger.kernel.org Signed-off-by: Muhammad Bilal --- drivers/platform/x86/hp/hp-bioscfg/int-attributes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/hp/hp-bioscfg/int-attributes.c b/drivers/platform/x86/hp/hp-bioscfg/int-attributes.c index d96e160953e3..5373af71549a 100644 --- a/drivers/platform/x86/hp/hp-bioscfg/int-attributes.c +++ b/drivers/platform/x86/hp/hp-bioscfg/int-attributes.c @@ -243,6 +243,8 @@ static int hp_populate_integer_elements_from_package(union acpi_object *integer_ kfree(str_value); str_value = NULL; } + if (size) + elem += size - 1; break; case SECURITY_LEVEL: -- 2.55.0