Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-vm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-vm
  • Repository
Switch branch/tag
  • linux-vm
  • drivers
  • net
  • bonding
  • bond_main.c
Find file BlameHistoryPermalink
  • Veaceslav Falico's avatar
    bonding: fix bond_arp_rcv() race of curr_active_slave · 010d3c39
    Veaceslav Falico authored Feb 20, 2014
    
    
    bond->curr_active_slave can be changed between its deferences, even to
    NULL, and thus we might panic.
    
    We're always holding the rcu (rx_handler->bond_handle_frame()->bond_arp_rcv())
    so fix this by rcu_dereferencing() it and using the saved.
    
    Reported-by: default avatarDing Tianhong <dingtianhong@huawei.com>
    Fixes: aeea64ac
    
     ("bonding: don't trust arp requests unless active slave really works")
    CC: Jay Vosburgh <fubar@us.ibm.com>
    CC: Andy Gospodarek <andy@greyhouse.net>
    Signed-off-by: default avatarVeaceslav Falico <vfalico@redhat.com>
    Acked-by: default avatarDing Tianhong <dingtianhong@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    010d3c39