Jann Horn 5b0af8e4c7 filelock: Fix fcntl/close race recovery compat path
commit f8138f2ad2f745b9a1c696a05b749eabe44337ea upstream.

When I wrote commit 3cad1bc01041 ("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: c293621bbf67 ("[PATCH] stale POSIX lock handling")
Cc: stable@kernel.org
Link: https://bugs.chromium.org/p/project-zero/issues/detail?id=2563
Signed-off-by: Jann Horn <jannh@google.com>
Link: https://lore.kernel.org/r/20240723-fs-lock-recover-compatfix-v1-1-148096719529@google.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-27 11:36:19 +02:00
..
2024-01-11 20:11:35 -08:00
2024-03-27 13:17:15 +01:00
2024-03-12 13:17:36 -07:00
\n
2024-03-13 14:30:58 -07:00
2023-12-29 11:58:34 -08:00
2024-03-11 09:38:17 -07:00
2024-07-27 11:36:15 +02:00
2024-03-12 14:27:37 -07:00
2024-07-27 11:36:15 +02:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-04-06 09:14:18 -07:00
2024-03-12 20:03:34 -07:00
2024-03-11 10:07:03 -07:00
2024-03-06 10:52:12 +01:00
2024-05-30 09:44:56 +02:00
2024-03-11 10:07:03 -07:00
2024-03-12 20:03:34 -07:00
2024-03-15 09:00:09 -07:00
2024-03-13 12:53:53 -07:00
2024-05-30 09:44:06 +02:00
2024-03-11 10:21:06 -07:00
2024-03-13 12:53:53 -07:00
2024-07-05 09:38:16 +02:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2024-03-12 20:03:34 -07:00
2024-01-08 10:57:34 -08:00
2024-02-15 23:43:47 -05:00