kernel_samsung_a53x/net/sunrpc
Christophe JAILLET c766596d9e net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
[ Upstream commit d6f4de70f73a106986ee315d7d512539f2f3303a ]

The intent is to check if the strings' are truncated or not. So, >= should
be used instead of >, because strlcat() and snprintf() return the length of
the output, excluding the trailing NULL.

Fixes: a02d69261134 ("SUNRPC: Provide functions for managing universal addresses")
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-11-19 08:44:57 +01:00
..
auth_gss SUNRPC: fix some memleaks in gssx_dec_option_array 2024-11-19 08:44:47 +01:00
xprtrdma Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
addr.c net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr() 2024-11-19 08:44:57 +01:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_null.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_unix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
backchannel_rqst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clnt.c SUNRPC: Fix RPC client cleaned up the freed pipefs dentries 2024-11-18 11:43:19 +01:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netns.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpc_pipe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpcb_clnt.c SUNRPC: Add an IS_ERR() check back to where it was 2024-11-18 11:43:19 +01:00
sched.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socklib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socklib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunrpc_syms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svc_xprt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svcauth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svcauth_unix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svcsock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xprt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xprtmultipath.c SUNRPC: Fix a suspicious RCU usage warning 2024-11-18 12:13:10 +01:00
xprtsock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00