[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175441827954.101751.4073328601137228327.b4-ty@oracle.com>
Date: Tue, 5 Aug 2025 14:24:45 -0400
From: Chuck Lever <cel@...nel.org>
To: Jeff Layton <jlayton@...nel.org>,
NeilBrown <neil@...wn.name>,
Olga Kornievskaia <okorniev@...hat.com>,
Dai Ngo <Dai.Ngo@...cle.com>,
Tom Talpey <tom@...pey.com>,
Thorsten Blum <thorsten.blum@...ux.dev>
Cc: Chuck Lever <chuck.lever@...cle.com>,
stable@...r.kernel.org,
linux-nfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] NFSD: Fix destination buffer size in nfsd4_ssc_setup_dul()
From: Chuck Lever <chuck.lever@...cle.com>
On Tue, 05 Aug 2025 19:53:02 +0200, Thorsten Blum wrote:
> Commit 5304877936c0 ("NFSD: Fix strncpy() fortify warning") replaced
> strncpy(,, sizeof(..)) with strlcpy(,, sizeof(..) - 1), but strlcpy()
> already guaranteed NUL-termination of the destination buffer and
> subtracting one byte potentially truncated the source string.
>
> The incorrect size was then carried over in commit 72f78ae00a8e ("NFSD:
> move from strlcpy with unused retval to strscpy") when switching from
> strlcpy() to strscpy().
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] NFSD: Fix destination buffer size in nfsd4_ssc_setup_dul()
commit: 5486ae619bff16a8c885afab7f40b10c69030344
--
Chuck Lever
Powered by blists - more mailing lists