From: Sasha Levin <sashal@kernel.org>
To: patches@lists.linux.dev, stable@vger.kernel.org
Cc: Steve French <stfrench@microsoft.com>,
Thomas Spear <speeddymon@gmail.com>,
Sasha Levin <sashal@kernel.org>,
sfrench@samba.org, linux-cifs@vger.kernel.org,
samba-technical@lists.samba.org
Subject: [PATCH AUTOSEL 6.17-6.1] cifs: fix typo in enable_gcm_256 module parameter
Date: Mon, 3 Nov 2025 13:02:22 -0500 [thread overview]
Message-ID: <20251103180246.4097432-9-sashal@kernel.org> (raw)
In-Reply-To: <20251103180246.4097432-1-sashal@kernel.org>
From: Steve French <stfrench@microsoft.com>
[ Upstream commit f765fdfcd8b5bce92c6aa1a517ff549529ddf590 ]
Fix typo in description of enable_gcm_256 module parameter
Suggested-by: Thomas Spear <speeddymon@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
LLM Generated explanations, may be completely bogus:
Based on my comprehensive analysis using semantic code analysis tools
and git history examination, here is my determination:
## **Backport Status: YES**
### Analysis Summary
**1. Semantic Code Analysis Findings:**
Using `mcp__semcode__grep_functions` and `mcp__semcode__find_function`,
I identified that `enable_gcm_256` is used in the `build_encrypt_ctxt`
function (fs/smb/client/smb2pdu.c:643), which controls SMB encryption
cipher negotiation. Using `mcp__semcode__find_callers`, I found this
function is called by `assemble_neg_contexts`, which is part of the SMB2
protocol negotiation path.
**2. Historical Context (Critical Finding):**
Through git history analysis, I discovered this is actually the **second
fix** for this documentation bug:
- **April 2021** (commit fee742b50289): Changed `enable_gcm_256` default
from `false` to `true`, but **forgot to update documentation** (left
as "Default: n/N/0")
- **June 2024** (commit 8bf0287528da1): **Partial fix** - changed
documentation from "n/N/0" to "y/Y/0"
- This commit was **explicitly tagged with `Cc:
stable@vger.kernel.org`**
- Included `Fixes: fee742b50289` tag
- **Was successfully backported to multiple stable trees**
- **October 2025** (commit f765fdfcd8b5b - the commit being analyzed):
**Completes the fix** - changes "y/Y/0" to "y/Y/1"
- Fixes the remaining typo left by the partial June 2024 fix
- Already appears to be in backporting pipeline (commit 66b5c330b9223)
**3. Why This Should Be Backported:**
1. **Precedent**: The June 2024 partial fix was deemed important enough
for stable backporting by maintainers, even though it was "just
documentation"
2. **Incomplete Fix in Stable Trees**: Stable trees that received the
June 2024 backport currently have **contradictory documentation**
stating "Default: y/Y/0" where "y/Y" suggests true but "0" suggests
false
3. **Security Context**: This affects user understanding of encryption
settings for CIFS/SMB mounts. The variable controls whether 256-bit
GCM encryption is offered during protocol negotiation
(fs/smb/client/smb2pdu.c:643-648)
4. **User Impact**: Users running `modinfo cifs` on stable kernels with
the partial fix see confusing/incorrect information about security-
related defaults
5. **Zero Risk**: Single character change in a MODULE_PARM_DESC string -
cannot cause regressions
6. **Completes Backported Work**: This is a continuation of fix
8bf0287528da1 that was already backported to stable
**4. Code Impact Analysis:**
- **Files Changed**: 1 (fs/smb/client/cifsfs.c)
- **Lines Changed**: 1 (documentation string only)
- **Functional Changes**: None (pure documentation)
- **Actual Code Default**: `bool enable_gcm_256 = true;` (line 68) -
unchanged since April 2021
### Recommendation
**YES - This commit should be backported** because it completes a
documentation fix that was already deemed worthy of stable backporting.
Stable trees currently have misleading documentation ("y/Y/0") that
contradicts itself, and this trivial, zero-risk change corrects user-
visible information about security-related module parameters. The
precedent for backporting documentation fixes for this specific
parameter was already established in June 2024.
fs/smb/client/cifsfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c
index e1848276bab41..984545cfe30b7 100644
--- a/fs/smb/client/cifsfs.c
+++ b/fs/smb/client/cifsfs.c
@@ -133,7 +133,7 @@ module_param(enable_oplocks, bool, 0644);
MODULE_PARM_DESC(enable_oplocks, "Enable or disable oplocks. Default: y/Y/1");
module_param(enable_gcm_256, bool, 0644);
-MODULE_PARM_DESC(enable_gcm_256, "Enable requesting strongest (256 bit) GCM encryption. Default: y/Y/0");
+MODULE_PARM_DESC(enable_gcm_256, "Enable requesting strongest (256 bit) GCM encryption. Default: y/Y/1");
module_param(require_gcm_256, bool, 0644);
MODULE_PARM_DESC(require_gcm_256, "Require strongest (256 bit) GCM encryption. Default: n/N/0");
--
2.51.0
next prev parent reply other threads:[~2025-11-03 18:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-03 18:02 [PATCH AUTOSEL 6.17-5.10] net: tls: Cancel RX async resync request on rcd_delta overflow Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] sched_ext: Allocate scx_kick_cpus_pnt_seqs lazily using kvzalloc() Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] perf/x86/intel/uncore: Add uncore PMU support for Wildcat Lake Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-6.12] net: tls: Change async resync helpers argument Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-6.1] bcma: don't register devices disabled in OF Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-6.12] blk-crypto: use BLK_STS_INVAL for alignment errors Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] drm/msm: Fix pgtable prealloc error path Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] ALSA: hda/realtek: Add quirk for Lenovo Yoga 7 2-in-1 14AKP10 Sasha Levin
2025-11-03 18:02 ` Sasha Levin [this message]
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] smb: client: handle lack of IPC in dfs_cache_refresh() Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] ASoC: rt721: fix prepare clock stop failed Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] sched_ext: defer queue_balance_callback() until after ops.dispatch Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-5.4] kconfig/nconf: Initialize the default locale at startup Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-5.10] scsi: core: Fix a regression triggered by scsi_host_busy() Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-5.15] selftests: net: use BASH for bareudp testing Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] ALSA: hda/realtek: Fix mute led for HP Victus 15-fa1xxx (MB 8C2D) Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-6.6] x86/microcode/AMD: Limit Entrysign signature checking to known generations Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] x86/CPU/AMD: Extend Zen6 model range Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17-5.4] kconfig/mconf: Initialize the default locale at startup Sasha Levin
2025-11-03 18:02 ` [PATCH AUTOSEL 6.17] selftests: cachestat: Fix warning on declaration under label Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251103180246.4097432-9-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.org \
--cc=speeddymon@gmail.com \
--cc=stable@vger.kernel.org \
--cc=stfrench@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).