android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marco Ballesio e658e9e4bc BACKPORT: FROMGIT: binder: BINDER_FREEZE ioctl
Frozen tasks can't process binder transactions, so a way is required to
inform transmitting ends of communication failures due to the frozen
state of their receiving counterparts. Additionally, races are possible
between transitions to frozen state and binder transactions enqueued to
a specific process.

Implement BINDER_FREEZE ioctl for user space to inform the binder driver
about the intention to freeze or unfreeze a process. When the ioctl is
called, block the caller until any pending binder transactions toward
the target process are flushed. Return an error to transactions to
processes marked as frozen.

Bug: 180989544
(cherry picked from commit 15949c3cdd97bccdcd45c0c0f6c31058520b6494
 git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing)
Co-developed-by: Todd Kjos <tkjos@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Marco Ballesio <balejs@google.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Li Li <dualli@google.com>
Link: https://lore.kernel.org/r/20210316011630.1121213-2-dualli@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ia1b5951cd99eeb98b59e06c3e27d59062dc725f6
2021-11-30 15:37:59 -08:00
..
acpi ACPI: fix NULL pointer dereference 2021-08-08 09:04:08 +02:00
asm-generic This is the 5.4.142 stable release 2021-08-27 16:27:13 +02:00
clocksource
crypto BACKPORT: crypto: blake2b - sync with blake2s implementation 2021-10-23 19:32:26 -07:00
drm This is the 5.4.136 stable release 2021-07-28 13:46:04 +02:00
dt-bindings
keys certs: Add EFI_CERT_X509_GUID support for dbx entries 2021-06-30 08:47:55 -04:00
kvm
linux BACKPORT: binder: use cred instead of task for getsecid 2021-11-19 16:59:18 -08:00
math-emu
media Revert "media: subdev: disallow ioctl for saa6588/davinci" 2021-07-20 11:32:59 +02:00
misc
net This is the 5.4.142 stable release 2021-08-27 16:27:13 +02:00
pcmcia
ras
rdma
scsi This is the 5.4.134 stable release 2021-07-20 16:30:12 +02:00
soc
sound
target
trace This is the 5.4.136 stable release 2021-07-28 13:46:04 +02:00
uapi BACKPORT: FROMGIT: binder: BINDER_FREEZE ioctl 2021-11-30 15:37:59 -08:00
vdso
video
xen
OWNERS ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS 2021-04-01 13:45:14 +00:00