android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hang Lu 2bfddf30aa BACKPORT: binder: tell userspace to dump current backtrace when detected oneway spamming
When async binder buffer got exhausted, some normal oneway transactions
will also be discarded and may cause system or application failures. By
that time, the binder debug information we dump may not be relevant to
the root cause. And this issue is difficult to debug if without the
backtrace of the thread sending spam.

This change will send BR_ONEWAY_SPAM_SUSPECT to userspace when oneway
spamming is detected, request to dump current backtrace. Oneway spamming
will be reported only once when exceeding the threshold (target process
dips below 80% of its oneway space, and current process is responsible
for either more than 50 transactions, or more than 50% of the oneway
space). And the detection will restart when the async buffer has
returned to a healthy state.

Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Hang Lu <hangl@codeaurora.org>
Link: https://lore.kernel.org/r/1617961246-4502-3-git-send-email-hangl@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 181190340
Change-Id: Id3d2526099bc89f04d8ad3ad6e48141b2a8f2515
(cherry picked from commit a7dc1e6f99df59799ab0128d9c4e47bbeceb934d)
Signed-off-by: Hang Lu <hangl@codeaurora.org>
[cmllamas: fix trivial merge issue]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-09-07 22:02:42 +00:00
..
acpi
asm-generic This is the 5.4.265 stable release 2023-12-21 12:17:30 +00:00
clocksource
crypto This is the 5.4.268 stable release 2024-01-26 02:15:05 +00:00
drm Merge 5.4.273 into android11-5.4-lts 2024-04-16 15:17:08 +00:00
dt-bindings
keys
kvm
linux Merge branch 'android11-5.4' into branch 'android11-5.4-lts' 2024-07-22 09:38:37 +00:00
math-emu
media Revert "media: rename VFL_TYPE_GRABBER to _VIDEO" 2024-04-17 16:49:02 +00:00
misc
net This is the 5.4.279 stable release 2024-07-08 13:55:50 +00:00
pcmcia
ras
rdma
scsi This is the 5.4.263 stable release 2023-12-11 12:08:17 +00:00
soc soc: fsl: qbman: Add CGR update function 2024-04-13 12:51:27 +02:00
sound BACKPORT: ALSA: compress: Allow pause and resume during draining 2023-12-06 01:50:50 +00:00
target
trace This is the 5.4.278 stable release 2024-06-18 14:18:49 +00:00
uapi BACKPORT: binder: tell userspace to dump current backtrace when detected oneway spamming 2024-09-07 22:02:42 +00:00
vdso
video
xen
OWNERS