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
You need to sign in or sign up before continuing.
  • linux
  • net
  • core
  • dev.c
Find file BlameHistoryPermalink
  • Eric Dumazet's avatar
    dpll: rely on rcu for netdev_dpll_pin() · 0d60d8df
    Eric Dumazet authored Feb 23, 2024
    This fixes a possible UAF in if_nlmsg_size(),
    which can run without RTNL.
    
    Add rcu protection to "struct dpll_pin"
    
    Move netdev_dpll_pin() from netdevice.h to dpll.h to
    decrease name pollution.
    
    Note: This looks possible to no longer acquire RTNL in
    netdev_dpll_pin_assign() later in net-next.
    
    v2: do not force rcu_read_lock() in rtnl_dpll_pin_size() (Jiri Pirko)
    
    Fixes: 5f184269
    
     ("netdev: expose DPLL pin handle for netdevice")
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Cc: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
    Cc: Vadim Fedorenko <vadim.fedorenko@linux.dev>
    Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
    Link: https://lore.kernel.org/r/20240223123208.3543319-1-edumazet@google.com
    
    
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    0d60d8df
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7