Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-de
  • 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-de
  • Repository
Switch branch/tag
  • linux-de
  • net
  • core
  • neighbour.c
Find file BlameHistoryPermalink
  • David Ahern's avatar
    neighbor: gc_list changes should be protected by table lock · 8cc196d6
    David Ahern authored Dec 10, 2018
    Adding and removing neighbor entries to / from the gc_list need to be
    done while holding the table lock; a couple of places were missed in the
    original patch.
    
    Move the list_add_tail in neigh_alloc to ___neigh_create where the lock
    is already obtained. Since neighbor entries should rarely be moved
    to/from PERMANENT state, add lock/unlock around the gc_list changes in
    neigh_change_state rather than extending the lock hold around all
    neighbor updates.
    
    Fixes: 58956317
    
     ("neighbor: Improve garbage collection")
    Reported-by: default avatarAndrei Vagin <avagin@gmail.com>
    Reported-by: default avatar <syzbot+6cc2fd1d3bdd2e007363@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+35e87b87c00f386b041f@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+b354d1fb59091ea73c37@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+3ddead5619658537909b@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+424d47d5c456ce8b2bbe@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+e4d42eb35f6a27b0a628@syzkaller.appspotmail.com>
    Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8cc196d6