Skip to content

nfs-utils: fix memory usage problems in gssd

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfs-utils: initialize fakeseed in prepare_krb5_rfc1964_bufferutils/gssd/context_lucid.c+4 -20 replies
2/3nfs-utils: NULL-terminate buffer after read in read_service_infoutils/gssd/gssd_proc.c+1 -01 reply
3/3nfs-utils: free buffer allocated by gssd_k5_err_msgutils/gssd/context_heimdal.c utils/gssd/krb5_util.c utils/gssd/krb5_util.h+78 -550 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nfs-utils: fix memory usage problems in gssd

This patchset fixes a compiler warning and some problems noticed while running gssd under valgrind. With this, valgrind now reports no warnings or significant memory leaks when run under a simple test that repeatedly mounts and unmounts an export with sec=krb5.

Jeff Layton (3):
nfs-utils: initialize fakeseed in prepare_krb5_rfc1964_buffer
nfs-utils: NULL-terminate buffer after read in read_service_info
nfs-utils: free buffer allocated by gssd_k5_err_msg

 utils/gssd/context_heimdal.c |   25 ++++++----
 utils/gssd/context_lucid.c   |    6 ++-
 utils/gssd/gssd_proc.c       |    1 +
 utils/gssd/krb5_util.c       |  105 +++++++++++++++++++++++++-----------------
 utils/gssd/krb5_util.h       |    3 +-
 5 files changed, 83 insertions(+), 57 deletions(-)