]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
binder: introduce transaction reports via netlink
authorLi Li <dualli@google.com>
Sun, 27 Jul 2025 18:29:06 +0000 (18:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:53:01 +0000 (12:53 +0200)
commit63740349eba78f242bcbf60d5244d7f2b2600853
tree6e04694e7703c607c093f5a1fb09725bf2c1b2e3
parent5cd0645b43c7edf55518272a6c69230a5c631729
binder: introduce transaction reports via netlink

Introduce a generic netlink multicast event to report binder transaction
failures to userspace. This allows subscribers to monitor these events
and take appropriate actions, such as stopping a misbehaving application
that is spamming a service with huge amount of transactions.

The multicast event contains full details of the failed transactions,
including the sender/target PIDs, payload size and specific error code.
This interface is defined using a YAML spec, from which the UAPI and
kernel headers and source are auto-generated.

Signed-off-by: Li Li <dualli@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250727182932.2499194-4-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/netlink/specs/binder.yaml [new file with mode: 0644]
MAINTAINERS
drivers/android/Kconfig
drivers/android/Makefile
drivers/android/binder.c
drivers/android/binder_netlink.c [new file with mode: 0644]
drivers/android/binder_netlink.h [new file with mode: 0644]
include/uapi/linux/android/binder_netlink.h [new file with mode: 0644]