From ebb095adcc65f596f75b85f54e32591cda5d5cde Mon Sep 17 00:00:00 2001
From: Jeff Layton <jeff.layton@primarydata.com>
Date: Sat, 21 Mar 2015 09:20:53 -0400
Subject: [PATCH] nfsd: poison so_owner.data before freeing it
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
---
fs/nfsd/nfs4state.c | 1 +
1 file changed, 1 insertion(+)
@@ -913,6 +913,7 @@ static void nfs4_put_stateowner(struct nfs4_stateowner *sop)
return;
sop->so_ops->so_unhash(sop);
spin_unlock(&clp->cl_lock);
+ memset(sop->so_owner.data, 0x7c, sop->so_owner.len);
kfree(sop->so_owner.data);
sop->so_ops->so_free(sop);
}
--
2.1.0