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
  • net
  • core
  • dev.c
Find file BlameHistoryPermalink
  • Jakub Kicinski's avatar
    net: make sure we never create ifindex = 0 · ceaac91d
    Jakub Kicinski authored Jul 31, 2023
    Instead of allocating from 1 use proper xa_init flag,
    to protect ourselves from IDs wrapping back to 0.
    
    Fixes: 759ab1ed
    
     ("net: store netdevs in an xarray")
    Reported-by: default avatarStephen Hemminger <stephen@networkplumber.org>
    Link: https://lore.kernel.org/all/20230728162350.2a6d4979@hermes.local/
    
    
    Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
    Link: https://lore.kernel.org/r/20230731171159.988962-1-kuba@kernel.org
    
    
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    ceaac91d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7