Commit f8138f2
filelock: Fix fcntl/close race recovery compat path
When I wrote commit 3cad1bc ("filelock: Remove locks reliably when
fcntl/close race is detected"), I missed that there are two copies of the
code I was patching: The normal version, and the version for 64-bit offsets
on 32-bit kernels.
Thanks to Greg KH for stumbling over this while doing the stable
backport...
Apply exactly the same fix to the compat path for 32-bit kernels.
Fixes: c293621 ("[PATCH] stale POSIX lock handling")
Cc: [email protected]
Link: https://bugs.chromium.org/p/project-zero/issues/detail?id=2563
Signed-off-by: Jann Horn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>1 parent 8eac535 commit f8138f2
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2570 | 2570 | | |
2571 | 2571 | | |
2572 | 2572 | | |
2573 | | - | |
2574 | | - | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
2575 | 2576 | | |
2576 | 2577 | | |
2577 | 2578 | | |
| |||
2586 | 2587 | | |
2587 | 2588 | | |
2588 | 2589 | | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
| 2590 | + | |
2592 | 2591 | | |
2593 | 2592 | | |
2594 | 2593 | | |
| |||
0 commit comments