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
  • include
  • net
  • switchdev.h
Find file BlameHistoryPermalink
  • Vladimir Oltean's avatar
    net: switchdev: add reminder near struct switchdev_notifier_fdb_info · 3eb4a4c3
    Vladimir Oltean authored Jun 28, 2022
    br_switchdev_fdb_notify() creates an on-stack FDB info variable, and
    initializes it member by member. As such, newly added fields which are
    not initialized by br_switchdev_fdb_notify() will contain junk bytes
    from the stack.
    
    Other uses of struct switchdev_notifier_fdb_info have a struct
    initializer which should put zeroes in the uninitialized fields.
    
    Add a reminder above the structure for future developers. Recently
    discussed during review.
    
    Link: https://patchwork.kernel.org/project/netdevbpf/patch/20220524152144.40527-2-schultz.hans+netdev@gmail.com/#24877698
    Link: https://patchwork.kernel.org/project/netdevbpf/patch/20220524152144.40527-3-schultz.hans+netdev@gmail.com/#24912269
    
    
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Link: https://lore.kernel.org/r/20220628100831.2899434-1-vladimir.oltean@nxp.com
    
    
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    3eb4a4c3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7