diff options
| author | Aldo Ariel Panzardo <qwe.aldo@gmail.com> | 2026-09-15 09:56:36 -0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:11:45 -0400 |
| commit | cfcfe0b38a66bbc4122c78a2b75e1b97b3534761 (patch) | |
| tree | 7890c9666819e4c822b36bd57b3c84b7b3e46a66 /rust/kernel/alloc/kvec/errors.rs | |
| parent | b64d21116374688c33302a6704387c27d1156d72 (diff) | |
nfsd: propagate SETXATTR value decode errors
nfsd4_decode_setxattr() stores the status returned while assembling a
non-empty attribute value, but then unconditionally returns nfs_ok. An
allocation failure can therefore leave a NULL value buffer paired with a
non-zero length and allow compound processing to continue.
Return the decoder status so that the operation stops on the original
error.
Fixes: 23e50fe3a5e6 ("nfsd: implement the xattr functions and en/decode logic")
Cc: stable@vger.kernel.org
Signed-off-by: Aldo Ariel Panzardo <qwe.aldo@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260915125636.2849626-1-qwe.aldo@gmail.com
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
