Skip to content
Commit 43c1031f authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.2: Fix a memory stomp in decode_attr_security_label



We must not change the value of label->len if it is zero, since that
indicates we stored a label.

Fixes: b4487b93 ("nfs: Fix getxattr kernel panic and memory overflow")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent c8a62f44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment