]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix leak of krb5p encode pages
authorChuck Lever <chuck.lever@oracle.com>
Fri, 30 Nov 2018 20:39:57 +0000 (15:39 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 2 Dec 2018 14:43:56 +0000 (09:43 -0500)
commit2a531e5c4bc7cc3c2ab1c76c6f1c9cf93abf25c8
tree4a9fd027ef08f3903bf31a47dc16b0ae3e59a4e1
parent4068e746207eef9a57ca5f3a107dc16fef5928ed
SUNRPC: Fix leak of krb5p encode pages

call_encode can be invoked more than once per RPC call. Ensure that
each call to gss_wrap_req_priv does not overwrite pointers to
previously allocated memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth_gss/auth_gss.c