From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A511A2B9B7 for ; Thu, 19 Mar 2026 00:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773880893; cv=none; b=F1P6r4wQHatST8bRrMLtWR33urzoL5ejoGUnOGfcXqYVm3hDyOdE0M5LEyfBpRuO4cvcg6VAtpcrUVM3/QJryfx5O0r3r7Ywg1Qh7PwPjTje7zaj/JAp8m1aCILBCtSg6Ztu2hDh2Oyqgebf8vVpA1672EmFHOEz+R4JXnigx68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773880893; c=relaxed/simple; bh=6fN6HSlQPLgxtLiGWYYOHD8nz9aPxmsGUHRnr4KGzRQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GE3aY9tWlyG4K0+PlGSLc864J/6xyPyWaQIM+bNIvTGuu2C0Wq60ZElFSTfQVri5sMQ6aPdhOc1PfyWLgX39MVBGTdFaVIp0aAHUnud6zBS1aDvVxbq/1Pjk0G02ZQSRS0YPS2x3RC1u7X7r9Xp3B5cSC67MYiZ3rchOE2gDzCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UzhqPD0t; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UzhqPD0t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB69FC19421; Thu, 19 Mar 2026 00:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773880893; bh=6fN6HSlQPLgxtLiGWYYOHD8nz9aPxmsGUHRnr4KGzRQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UzhqPD0tomoveoCbkp4SIO/owlhrfueGDTuf+vCNkOPiusKHE7Gqv/RpPjqeeMcdx syZZs6zbkwIsZlbWPuFafdO1RrjcowiX7aWm9hR9yIOg/zxr3eIfuaJswVSwyXV0JY ut/o5nNGtjbCAc4t9wslezhvADoaJ83kzzMWid2nl+hG7ftQCZ+cu3+przXKyBQlQI iRB7VqDCsHeJy22ptAwKgHUfIj3QC2TZqf9WSD82vWB8q8N76D+WH9hR1bsxxSN8va f+W7i0LWKWzDjvvTI7K3lpH9EAiFQWil360Arp0kf34N0x3PT/pJSb14MNajNn3jYt xY1ZSA6xfaElA== From: Sasha Levin To: stable@vger.kernel.org Cc: Breno Leitao , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.19.y] netconsole: fix sysdata_release_enabled_show checking wrong flag Date: Wed, 18 Mar 2026 20:41:31 -0400 Message-ID: <20260319004131.1853033-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <2026031740-salon-routine-26fd@gregkh> References: <2026031740-salon-routine-26fd@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Breno Leitao [ Upstream commit 5af6e8b54927f7a8d3c7fd02b1bdc09e93d5c079 ] sysdata_release_enabled_show() checks SYSDATA_TASKNAME instead of SYSDATA_RELEASE, causing the configfs release_enabled attribute to reflect the taskname feature state rather than the release feature state. This is a copy-paste error from the adjacent sysdata_taskname_enabled_show() function. The corresponding _store function already uses the correct SYSDATA_RELEASE flag. Fixes: 343f90227070 ("netconsole: implement configfs for release_enabled") Signed-off-by: Breno Leitao Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260302-sysdata_release_fix-v1-1-e5090f677c7c@debian.org Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/netconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index f418efb38508c..eb282b295da8b 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -508,7 +508,7 @@ static ssize_t sysdata_release_enabled_show(struct config_item *item, bool release_enabled; mutex_lock(&dynamic_netconsole_mutex); - release_enabled = !!(nt->sysdata_fields & SYSDATA_TASKNAME); + release_enabled = !!(nt->sysdata_fields & SYSDATA_RELEASE); mutex_unlock(&dynamic_netconsole_mutex); return sysfs_emit(buf, "%d\n", release_enabled); -- 2.51.0