Commit 9084ed7
lsm,nfs: fix memory leak of lsm_context
commit b530104 ("lsm: lsm_context in security_dentry_init_security")
did not preserve the lsm id for subsequent release calls, which results
in a memory leak. Fix it by saving the lsm id in the nfs4_label and
providing it on the subsequent release call.
Fixes: b530104 ("lsm: lsm_context in security_dentry_init_security")
Signed-off-by: Stephen Smalley <[email protected]>
Acked-by: Paul Moore <[email protected]>
Acked-by: Casey Schaufler <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>1 parent 1f7a4f9 commit 9084ed7
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
6272 | 6273 | | |
6273 | 6274 | | |
6274 | 6275 | | |
6275 | | - | |
| 6276 | + | |
6276 | 6277 | | |
6277 | 6278 | | |
6278 | 6279 | | |
| |||
6377 | 6378 | | |
6378 | 6379 | | |
6379 | 6380 | | |
6380 | | - | |
| 6381 | + | |
6381 | 6382 | | |
6382 | 6383 | | |
6383 | 6384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments