Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • android
  • binder_alloc.c
Find file BlameHistoryPermalink
  • Hang Lu's avatar
    binder: tell userspace to dump current backtrace when detected oneway spamming · a7dc1e6f
    Hang Lu authored Apr 09, 2021
    
    
    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: default avatarTodd Kjos <tkjos@google.com>
    Signed-off-by: default avatarHang Lu <hangl@codeaurora.org>
    Link: https://lore.kernel.org/r/1617961246-4502-3-git-send-email-hangl@codeaurora.org
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    a7dc1e6f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7