Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L llvm-project
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Morello
  • llvm-project
  • Issues
  • #43
Closed
Open
Created Jan 24, 2022 by Jessica Clarke@jrtc27Developer

Wrong permissions for non-STT_FUNC symbols in executable sections

The Morello-specific getPermissions in lld/ELF/Arch/Cheri.cpp, used by both MorelloCapRelocsSection and getMorelloSizeAndPermissions, bogusly uses SHF_EXECINSTR of the containing section to determine whether or not a non-STT_FUNC symbol should be made executable. This is wrong and deviates from the correct semantics provided by the existing CHERI LLVM CheriCapRelocsSection; only STT_FUNC symbols should be executable, data (which conservatively includes STT_NOTYPE) should not be, even if in .text, as that makes constant pools executable.

Edited Jan 24, 2022 by Jessica Clarke
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking