nfs-utils: fix memory usage problems in gssd
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nfs-utils: initialize fakeseed in prepare_krb5_rfc1964_bufferutils/ | +4 | 0 replies | |
| 2/3 | nfs-utils: NULL-terminate buffer after read in read_service_infoutils/ | +1 | 1 reply | |
| 3/3 | nfs-utils: free buffer allocated by gssd_k5_err_msgutils/ utils/ utils/ | +78 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)