Files
kernel_xiaomi_sm8250/fs
Long Li a1177ea83d filelock: Correct the filelock owner in fcntl_setlk/fcntl_setlk64
The locks_remove_posix() function in fcntl_setlk/fcntl_setlk64 is designed
to reliably remove locks when an fcntl/close race is detected. However, it
was passing in the wrong filelock owner, it looks like a mistake and
resulting in a failure to remove locks. More critically, if the lock
removal fails, it could lead to a uaf issue while traversing the locks.

This problem occurs only in the 4.19/5.4 stable version.

Fixes: a561145f3a ("filelock: Fix fcntl/close race recovery compat path")
Fixes: d30ff33040 ("filelock: Remove locks reliably when fcntl/close race is detected")
Cc: stable@vger.kernel.org
Signed-off-by: Long Li <leo.lilong@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:13:07 +02:00
..
2021-09-22 11:48:02 +02:00
2024-09-04 13:13:01 +02:00
2023-09-23 10:48:17 +02:00
2022-06-14 16:59:24 +02:00
2024-07-05 09:00:35 +02:00
2023-01-18 11:30:40 +01:00
2021-12-14 10:18:07 +01:00