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
  • linux
  • filter.h
Find file BlameHistoryPermalink
  • Daniel Borkmann's avatar
    bpf: Avoid setting bpf insns pages read-only when prog is jited · e1608f3f
    Daniel Borkmann authored Nov 29, 2019
    
    
    For the case where the interpreter is compiled out or when the prog is jited
    it is completely unnecessary to set the BPF insn pages as read-only. In fact,
    on frequent churn of BPF programs, it could lead to performance degradation of
    the system over time since it would break the direct map down to 4k pages when
    calling set_memory_ro() for the insn buffer on x86-64 / arm64 and there is no
    reverse operation. Thus, avoid breaking up large pages for data maps, and only
    limit this to the module range used by the JIT where it is necessary to set
    the image read-only and executable.
    
    Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20191129222911.3710-1-daniel@iogearbox.net
    e1608f3f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7