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
  • drivers
  • net
  • netdevsim
  • netdevsim.h
Find file BlameHistoryPermalink
  • Toke Høiland-Jørgensen's avatar
    netdevsim: Add debugfs toggle to reject BPF programs in verifier · e4ff5aa4
    Toke Høiland-Jørgensen authored Dec 09, 2020
    This adds a new debugfs toggle ('bpf_bind_verifier_accept') that can be
    used to make netdevsim reject BPF programs from being accepted by the
    verifier. If this toggle (which defaults to true) is set to false,
    nsim_bpf_verify_insn() will return EOPNOTSUPP on the last
    instruction (after outputting the 'Hello from netdevsim' verifier message).
    
    This makes it possible to check the verification callback in the driver
    from test_offload.py in selftests, since the verifier now clears the
    verifier log on a successful load, hiding the message from the driver.
    
    Fixes: 6f8a57cc
    
     ("bpf: Make verifier log more relevant by default")
    Signed-off-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
    Link: https://lore.kernel.org/bpf/160752225964.110217.12584017165318065332.stgit@toke.dk
    e4ff5aa4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7