SUNRPC: Fix crasher in gss_unwrap_resp_integ()
authorChuck Lever <chuck.lever@oracle.com>
Sat, 8 Oct 2022 18:58:29 +0000 (14:58 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 27 Oct 2022 19:52:10 +0000 (15:52 -0400)
commit8a0fa3ff3b606b55c4edc71ad133e61529b64549
tree4340786d8bb6651705bf9ab0da446ea3d48ec8c3
parentf5ea16137a3fa2858620dc9084466491c128535f
SUNRPC: Fix crasher in gss_unwrap_resp_integ()

If a zero length is passed to kmalloc() it returns 0x10, which is
not a valid address. gss_unwrap_resp_integ() subsequently crashes
when it attempts to dereference that pointer.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/auth_gss/auth_gss.c