commit | 6f384464b9a37795f2cbfd99d2f6ffebe01b6ead | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Tue Oct 18 18:21:14 2022 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jan 07 12:07:18 2023 +0100 |
tree | 6318ce9e02226d89c67b35e9e1e1040d424be2ac | |
parent | 2b6a8a1a32746981044e7ab06649c804acb4068a [diff] |
NFSv4.2: Fix a memory stomp in decode_attr_security_label [ Upstream commit 43c1031f7110967c240cb6e922adcfc4b8899183 ] We must not change the value of label->len if it is zero, since that indicates we stored a label. Fixes: b4487b935452 ("nfs: Fix getxattr kernel panic and memory overflow") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>