Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O OSKernel2026-不让内核死机
  • 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
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 不让内核死机
  • OSKernel2026-不让内核死机
  • Merge requests
  • !1

feat(ext4): read competition test scripts from EXT4 image

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged 不让内核死机 requested to merge feature/ext4 into main May 18, 2026
  • Overview 0
  • Commits 8
  • Pipelines 0
  • Changes 11

Summary

  • Parse EXT4 superblock and group descriptors
  • Load arbitrary inode across block groups
  • Parse extent header
  • Traverse root, glibc, and musl directories
  • Locate *_testcode.sh
  • Read regular file contents from extents
  • Preview /glibc/basic_testcode.sh and /musl/basic_testcode.sh

Verified

  • cargo check
  • make kernel-rv
  • QEMU boot success
  • /glibc/basic_testcode.sh readable
  • /musl/basic_testcode.sh readable

Key Logs

  • name = basic_testcode.sh
  • name = busybox_testcode.sh
  • file content preview = ./busybox echo "#### OS COMP TEST GROUP START basic-glibc ####"
  • file content preview = ./busybox echo "#### OS COMP TEST GROUP START basic-musl ####"

Risk

  • EXT4 support is read-only
  • Only extent depth = 0 is verified
  • No syscall/openat integration yet

Next

  • Stabilize ext4_read_file(path)
  • Connect runner to EXT4 script loading
  • Support syscall openat/read integration
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/ext4