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
  • Edward Cree's avatar
    net: core: fix uses-after-free in list processing · 8c057efa
    Edward Cree authored Jul 09, 2018
    In netif_receive_skb_list_internal(), all of skb_defer_rx_timestamp(),
     do_xdp_generic() and enqueue_to_backlog() can lead to kfree(skb).  Thus,
     we cannot wait until after they return to remove the skb from the list;
     instead, we remove it first and, in the pass case, add it to a sublist
     afterwards.
    In the case of enqueue_to_backlog() we have already decided not to pass
     when we call the function, so we do not need a sublist.
    
    Fixes: 7da517a3
    
     ("net: core: Another step of skb receive list processing")
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8c057efa
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7