diff options
author | Olga Kornievskaia <okorniev@redhat.com> | 2024-12-19 23:12:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-20 11:18:29 +0300 |
commit | 510332159998ae41579020f0cc952330eb038e7c (patch) | |
tree | d66d59c70b3a29d4766d9be5ad0062164e57a6df /rust/helpers/build_bug.c | |
parent | cedfb73c5cc97c96b0c4053578f6110b55f6c045 (diff) | |
download | linux-510332159998ae41579020f0cc952330eb038e7c.tar.xz |
NFSD: fix decoding in nfs4_xdr_dec_cb_getattr
commit 1b3e26a5ccbfc2f85bda1930cc278e313165e353 upstream.
If a client were to send an error to a CB_GETATTR call, the code
erronously continues to try decode past the error code. It ends
up returning BAD_XDR error to the rpc layer and then in turn
trigger a WARN_ONCE in nfsd4_cb_done() function.
Fixes: 6487a13b5c6b ("NFSD: add support for CB_GETATTR callback")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions