diff options
author | Tim Gardner | 2013-02-13 16:40:16 +0100 |
---|---|---|
committer | J. Bruce Fields | 2013-02-15 17:29:38 +0100 |
commit | f25cc71e634edcf8a15bc60a48f2b5f3ec9fbb1d (patch) | |
tree | b66f98dacd1c095dfded8ee673290230366dd8c8 /include/crypto/serpent.h | |
parent | nfsd: enable NFSv4 state in containers (diff) | |
download | kernel-qcow2-linux-f25cc71e634edcf8a15bc60a48f2b5f3ec9fbb1d.tar.gz kernel-qcow2-linux-f25cc71e634edcf8a15bc60a48f2b5f3ec9fbb1d.tar.xz kernel-qcow2-linux-f25cc71e634edcf8a15bc60a48f2b5f3ec9fbb1d.zip |
lockd: nlmclnt_reclaim(): avoid stack overflow
Even though nlmclnt_reclaim() is only one call into the stack frame,
928 bytes on the stack seems like a lot. Recode to dynamically
allocate the request structure once from within the reclaimer task,
then pass this pointer into nlmclnt_reclaim() for reuse on
subsequent calls.
smatch analysis:
fs/lockd/clntproc.c:620 nlmclnt_reclaim() warn: 'reqst' puts
928 bytes on stack
Also remove redundant assignment of 0 after memset.
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/crypto/serpent.h')
0 files changed, 0 insertions, 0 deletions