Files
linux/fs
Christophe JAILLET 4d5e5a044b NFS: Fix an off by one in root_nfs_cat()
[ Upstream commit 698ad1a538da0b6bf969cfee630b4e3a026afb87 ]

The intent is to check if 'dest' is truncated or not. So, >= should be
used instead of >, because strlcat() returns the length of 'dest' and 'src'
excluding the trailing NULL.

Fixes: 56463e50d1 ("NFS: Use super.c for NFSROOT mount option parsing")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:56 -04:00
..
2024-02-05 20:12:58 +00:00
2024-03-01 13:26:30 +01:00
2023-09-13 09:43:05 +02:00
2024-02-23 09:12:45 +01:00
2023-09-23 11:11:10 +02:00
2024-03-26 18:20:28 -04:00
2023-08-30 16:11:10 +02:00