Skip to content

kernelcache fixes #250

Merged
rooootdev merged 4 commits into
rooootdev:mainfrom
forestg10:main
May 16, 2026
Merged

kernelcache fixes #250
rooootdev merged 4 commits into
rooootdev:mainfrom
forestg10:main

Conversation

@rooootdev
Copy link
Copy Markdown
Owner

on behalf of @forestg10.

Copilot AI review requested due to automatic review settings May 16, 2026 13:32
@rooootdev rooootdev merged commit 3c8cd4b into rooootdev:main May 16, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the kernelcache/offsets flow by ensuring offsets are only marked present when they’ve actually been resolved from a valid kernelcache, hardening the kernelcache fetch routine, and refining iPad model detection used during offsets initialization.

Changes:

  • Update the UI “Fetch Kernelcache” flow to resolve offsets (dlkcache()) after a successful fetch, and set hasOffsets based on that result.
  • Harden fetchkcache() with readiness guards, robust read/write loops, and a basic output validity check before accepting the fetched kernelcache.
  • Avoid misclassifying certain A-series iPads as M-series in offsets_init() by excluding known A-series identifiers.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lara/views/app/settings/SettingsView.swift Sets hasOffsets based on dlkcache() result after a successful kernelcache fetch.
lara/views/app/ContentView.swift Mirrors the Settings flow: hasOffsets reflects whether offsets resolution succeeded.
lara/kexploit/offsets.m Refines M-series iPad detection by excluding known A-series iPad identifiers.
lara/funcs/fetchkcache.swift Adds readiness checks, robust IO, and validates kernelcache output before reporting success.
lara/classes/laramgr.swift Requires hasOffsets before allowing VFS init / sandbox escape to start.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants