Commit abbb086
committed
NFSv4.2: Fix a memory stomp in decode_attr_security_label
jira LE-1907
Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2
commit-author Trond Myklebust <trond.myklebust@hammerspace.com>
commit 43c1031
We must not change the value of label->len if it is zero, since that
indicates we stored a label.
Fixes: b4487b9 ("nfs: Fix getxattr kernel panic and memory overflow")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
(cherry picked from commit 43c1031)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 99ccc78 commit abbb086
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4219 | 4219 | | |
4220 | 4220 | | |
4221 | 4221 | | |
4222 | | - | |
4223 | | - | |
4224 | | - | |
4225 | | - | |
4226 | | - | |
4227 | | - | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
4228 | 4226 | | |
4229 | 4227 | | |
4230 | 4228 | | |
| |||
0 commit comments