From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A115B4195A0; Fri, 4 Sep 2026 06:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502897; cv=none; b=h9rvPGcknBKK5EHIXEBgjQBZw1Ejw07FvEqad1+6YuWwv4Q6mEH1HrKDEd5t48i9wgCKcVtJA7UJAM68O8ewqqUbR1TZIIHZmrHue+MDI1JFJdotSVYUEdOkq4FSYadkdM7nhruC/2iME8Z8KcwpjfSjc9xFNiQYgElL7Nl4k1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502897; c=relaxed/simple; bh=HbDLLvZVvExjC1y/2RnT+w0ZCKviSwO270Axgo0pJXE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IME6GfCPc7dSPmsHawSUzGRDolbSIcrXl9zxc50ReIVgCh9WcnEg4qNbLJumNrkskgjPKZ3oG6IEbuUbIpBHwhyIGcK8MwNMhJih/6PiHv79wI5NAk4rRMUB0T4RGO9VW9PeNPqOsVmY6qvvw4TdLemuNTbWxkCQa1OEQbSgy60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=13eCRWw6; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="13eCRWw6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBD2C1F00A3D; Fri, 4 Sep 2026 06:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788502896; bh=xmN7vMvfoZNgkZKRq6QRMZaZWa83Mtidv7h6m1yFKqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=13eCRWw67MhkUKnvMvbXGfpE00I8wBQf6fostQwhnONwhw6ipE3l7FzHifB3Ysptg RT65QZQ1XLY0/6jUggN4PNoyp7VWeY7JXi/FOoE3CdV1na9UBPmeTOcHkLe4517kDW pJwQ+C04yzJdqI7AnyNJMBxhGaspsCIPJ3HFcqgI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Muhammad Bilal , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 6.12 325/403] platform/x86: hp-bioscfg: fix new_password_store() overwriting current_password Date: Fri, 4 Sep 2026 07:02:08 +0200 Message-ID: <20260904045742.221075506@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260904045734.806166532@linuxfoundation.org> References: <20260904045734.806166532@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Muhammad Bilal commit 2ea12a467a9cb12170417b30784fe26a243a75fe upstream. current_password_store() and new_password_store() both call store_password_instance() with is_current = true: static ssize_t new_password_store(...) { return store_password_instance(kobj, buf, count, true); } so a write to new_password is routed to current_password instead, and the new_password field is never written by either sysfs entry point. Fix by passing false from new_password_store(), matching what the is_current parameter is meant to select. Fixes: 8646a3b5ee3a ("platform/x86: hp-bioscfg: passwdobj-attributes") Cc: stable@vger.kernel.org Signed-off-by: Muhammad Bilal Link: https://patch.msgid.link/20260812111829.172273-8-meatuni001@gmail.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c +++ b/drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c @@ -123,7 +123,7 @@ static ssize_t new_password_store(struct struct kobj_attribute *attr, const char *buf, size_t count) { - return store_password_instance(kobj, buf, count, true); + return store_password_instance(kobj, buf, count, false); } static struct kobj_attribute password_new_password = __ATTR_WO(new_password);