]> git.ipfire.org Git - thirdparty/linux.git/commit
rust_binder: report freeze notification only when fully frozen
authorAlice Ryhl <aliceryhl@google.com>
Tue, 7 Oct 2025 09:39:53 +0000 (09:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 09:06:20 +0000 (11:06 +0200)
commitb5ce7a5cc50f4c283d0bfa5cc24fe864cb9a3400
treed75cb41665726d11a715c8e8ace9d85bd28fd586
parent99559e5bb4c6795824b6531ad61519c1d9500079
rust_binder: report freeze notification only when fully frozen

Binder only sends out freeze notifications when ioctl_freeze() completes
and the process has become fully frozen. However, if a freeze
notification is registered during the freeze operation, then it
registers an initial state of 'frozen'. This is a problem because if
the freeze operation fails, then the listener is not told about that
state change, leading to lost updates.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder/freeze.rs
drivers/android/binder/process.rs
drivers/android/binder/transaction.rs