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
  • kernel
  • bpf
  • devmap.c
Find file BlameHistoryPermalink
  • Taehee Yoo's avatar
    bpf: devmap: fix wrong interface selection in notifier_call · f592f804
    Taehee Yoo authored Oct 24, 2018
    The dev_map_notification() removes interface in devmap if
    unregistering interface's ifindex is same.
    But only checking ifindex is not enough because other netns can have
    same ifindex. so that wrong interface selection could occurred.
    Hence netdev pointer comparison code is added.
    
    v2: compare netdev pointer instead of using net_eq() (Daniel Borkmann)
    v1: Initial patch
    
    Fixes: 2ddf71e2
    
     ("net: add notifier hooks for devmap bpf map")
    Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
    Acked-by: default avatarSong Liu <songliubraving@fb.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    f592f804
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7