Commit 56325e8
landlock: fix splats from iput() after it started calling might_sleep()
At this point it is guaranteed this is not the last reference.
However, a recent addition of might_sleep() at top of iput() started
generating false-positives as it was executing for all values.
Remedy the problem by using the newly introduced iput_not_last().
Reported-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 2ef435a ("fs: add might_sleep() annotation to iput() and more")
Signed-off-by: Mateusz Guzik <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Mickaël Salaün <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>1 parent 1274162 commit 56325e8
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
| 1338 | + | |
| 1339 | + | |
1341 | 1340 | | |
1342 | | - | |
| 1341 | + | |
1343 | 1342 | | |
1344 | 1343 | | |
1345 | 1344 | | |
| |||
0 commit comments