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
  • Sebastian Andrzej Siewior's avatar
    tun: Assign missing bpf_net_context. · fecef4cd
    Sebastian Andrzej Siewior authored Jul 04, 2024
    
    
    During the introduction of struct bpf_net_context handling for
    XDP-redirect, the tun driver has been missed.
    Jakub also pointed out that there is another call chain to
    do_xdp_generic() originating from netif_receive_skb() and drivers may
    use it outside from the NAPI context.
    
    Set the bpf_net_context before invoking BPF XDP program within the TUN
    driver. Set the bpf_net_context also in do_xdp_generic() if a xdp
    program is available.
    
    Reported-by: default avatar <syzbot+0b5c75599f1d872bea6f@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+5ae46b237278e2369cac@syzkaller.appspotmail.com>
    Reported-by: default avatar <syzbot+c1e04a422bbc0f0f2921@syzkaller.appspotmail.com>
    Fixes: 401cb7da
    
     ("net: Reference bpf_redirect_info via task_struct on PREEMPT_RT.")
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Link: https://patch.msgid.link/20240704144815.j8xQda5r@linutronix.de
    
    
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    fecef4cd
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7