kernel-fxtec-pro1x/drivers/android
Martijn Coenen 3b165ab697 FROMGIT: binder: print warnings when detecting oneway spamming.
The most common cause of the binder transaction buffer filling up is a
client rapidly firing oneway transactions into a process, before it has
a chance to handle them. Yet the root cause of this is often hard to
debug, because either the system or the app will stop, and by that time
binder debug information we dump in bugreports is no longer relevant.

This change warns as soon as a process dips below 80% of its oneway
space (less than 100kB available in the configuration), when any one
process is responsible for either more than 50 transactions, or more
than 50% of the oneway space.

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Martijn Coenen <maco@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20200821122544.1277051-1-maco@android.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 261e7818f06ec51e488e007f787ccd7e77272918
git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/
char-misc-next)
Signed-off-by: Martijn Coenen <maco@android.com>

Bug: 147795659
Change-Id: Idc2b03ddc779880ca4716fdae47a70df43211f25
2020-09-10 16:54:59 +00:00
..
binder.c FROMGIT: binder: print warnings when detecting oneway spamming. 2020-09-10 16:54:59 +00:00
binder_alloc.c FROMGIT: binder: print warnings when detecting oneway spamming. 2020-09-10 16:54:59 +00:00
binder_alloc.h FROMGIT: binder: print warnings when detecting oneway spamming. 2020-09-10 16:54:59 +00:00
binder_alloc_selftest.c FROMGIT: binder: print warnings when detecting oneway spamming. 2020-09-10 16:54:59 +00:00
binder_internal.h UPSTREAM: binder: prevent UAF for binderfs devices II 2020-03-09 19:48:21 +00:00
binder_trace.h
binderfs.c UPSTREAM: binder: prevent UAF for binderfs devices II 2020-03-09 19:48:21 +00:00
Kconfig
Makefile