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
  • Ilya Leoshkevich's avatar
    bpf: Support doubleword alignment in bpf_jit_binary_alloc · b7b3fc8d
    Ilya Leoshkevich authored Nov 15, 2019
    
    
    Currently passing alignment greater than 4 to bpf_jit_binary_alloc does
    not work: in such cases it silently aligns only to 4 bytes.
    
    On s390, in order to load a constant from memory in a large (>512k) BPF
    program, one must use lgrl instruction, whose memory operand must be
    aligned on an 8-byte boundary.
    
    This patch makes it possible to request 8-byte alignment from
    bpf_jit_binary_alloc, and also makes it issue a warning when an
    unsupported alignment is requested.
    
    Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Link: https://lore.kernel.org/bpf/20191115123722.58462-1-iii@linux.ibm.com
    b7b3fc8d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7