kernel-hacking-2024-linux-s.../net/sunrpc/auth_gss
Trond Myklebust 9d3a2260f0 SUNRPC: Fix buffer overflow checking in gss_encode_v0_msg/gss_encode_v1_msg
In gss_encode_v1_msg, it is pointless to BUG() after the overflow has
happened. Replace the existing sprintf()-based code with scnprintf(),
and warn if an overflow is ever triggered.

In gss_encode_v0_msg, replace the runtime BUG_ON() with an appropriate
compile-time BUILD_BUG_ON.

Reported-by: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2013-10-28 18:53:21 -04:00
..
auth_gss.c SUNRPC: Fix buffer overflow checking in gss_encode_v0_msg/gss_encode_v1_msg 2013-10-28 18:53:21 -04:00
gss_generic_token.c
gss_krb5_crypto.c
gss_krb5_keys.c
gss_krb5_mech.c
gss_krb5_seal.c
gss_krb5_seqnum.c
gss_krb5_unseal.c
gss_krb5_wrap.c
gss_mech_switch.c svcrpc: store gss mech in svc_cred 2013-07-01 17:23:06 -04:00
gss_rpc_upcall.c rpc: let xdr layer allocate gssproxy receieve pages 2013-09-06 11:45:58 -04:00
gss_rpc_upcall.h
gss_rpc_xdr.c rpc: fix huge kmalloc's in gss-proxy 2013-09-06 11:45:58 -04:00
gss_rpc_xdr.h rpc: fix huge kmalloc's in gss-proxy 2013-09-06 11:45:58 -04:00
Makefile
svcauth_gss.c svcrpc: set cr_gss_mech from gss-proxy as well as legacy upcall 2013-08-01 08:42:01 -04:00