diff options
| author | 2021-04-21 16:42:26 +0000 | |
|---|---|---|
| committer | 2021-04-21 16:42:26 +0000 | |
| commit | 77e3f9fac4e3035f5ba1de88ec0ba3625bdbebcc (patch) | |
| tree | 007e9793876614514662a01e8d19e105a9c27c7f /libs/binder/IPCThreadState.cpp | |
| parent | 40c3c0411c1fd631f9ee08ebd416fad89ea90b22 (diff) | |
| parent | b185ac061645654f330543e6053dab2d77191747 (diff) | |
Merge "libbinder: support BR_ONEWAY_SPAM_SUSPECT"
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 406bd54e6f..6fb1227f63 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -90,6 +90,8 @@ static const char *kReturnStrings[] = { "BR_DEAD_BINDER", "BR_CLEAR_DEATH_NOTIFICATION_DONE", "BR_FAILED_REPLY", + "BR_FROZEN_REPLY", + "BR_ONEWAY_SPAM_SUSPECT", "BR_TRANSACTION_SEC_CTX", }; @@ -894,6 +896,11 @@ status_t IPCThreadState::waitForResponse(Parcel *reply, status_t *acquireResult) } switch (cmd) { + case BR_ONEWAY_SPAM_SUSPECT: + ALOGE("Process seems to be sending too many oneway calls."); + CallStack::logStack("oneway spamming", CallStack::getCurrent().get(), + ANDROID_LOG_ERROR); + [[fallthrough]]; case BR_TRANSACTION_COMPLETE: if (!reply && !acquireResult) goto finish; break; |