Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O OSKernel2025-SC7
  • 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
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 智核速启队
  • OSKernel2025-SC7
  • Merge requests
  • !82

[feat] 新增mprotect系统调用实现

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed 智核速启队 requested to merge SC7 into master Jun 17, 2025
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 15
  1. mprotect为修改用户态映射的权限,使用exprem设置 [fix] 修复映射边界问题,修正mmap实现
  2. 报错panic:[vma.c:114] pa is null!,va:0x000000000021b000,观察知为映射的最后一页对齐问题
  3. alloc_vma中需要添加p->sz = PGROUNDUP(p->sz);让sz对齐
  4. 修复mmap使用vfs_ext4_lseek修改偏移量,在之后读取部分清空结尾空白 [bug]
  5. 动态链接时已经映射部分出现15 usertrap ,为store页异常,暂时解决方法为在uvmalloc1中添加写权限PTE_W
  6. rv动态链接时先加载ld-linux-riscv64-lp64d.so.1,之后出现bad addr = 0x000000010000036e, bad instruction = 0x000000000012084e, core dumped.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: SC7