This is a note to let you know that I've just added the patch titled nfsd4: session needs room for following op to error out to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: nfsd4-session-needs-room-for-following-op-to-error-out.patch and it can be found in the queue-3.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 4c69d5855a16f7378648c5733632628fa10431db Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" <bfields@xxxxxxxxxx> Date: Tue, 28 Jan 2014 16:01:04 -0500 Subject: nfsd4: session needs room for following op to error out From: "J. Bruce Fields" <bfields@xxxxxxxxxx> commit 4c69d5855a16f7378648c5733632628fa10431db upstream. Signed-off-by: J. Bruce Fields <bfields@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/nfsd/nfs4proc.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1359,6 +1359,12 @@ nfsd4_proc_compound(struct svc_rqst *rqs /* If op is non-idempotent */ if (opdesc->op_flags & OP_MODIFIES_SOMETHING) { plen = opdesc->op_rsize_bop(rqstp, op); + /* + * If there's still another operation, make sure + * we'll have space to at least encode an error: + */ + if (resp->opcnt < args->opcnt) + plen += COMPOUND_ERR_SLACK_SPACE; op->status = nfsd4_check_resp_size(resp, plen); } Patches currently in stable-queue which might be from bfields@xxxxxxxxxx are queue-3.14/nfsd4-fix-test_stateid-error-reply-encoding.patch queue-3.14/nfsd4-leave-reply-buffer-space-for-failed-setattr.patch queue-3.14/nfsd4-session-needs-room-for-following-op-to-error-out.patch queue-3.14/nfsd4-buffer-length-check-for-suppattr_exclcreat.patch queue-3.14/nfsd-revert-v2-half-of-nfsd-don-t-return-high-mode-bits.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html