Skip to content

ksuinit: update dependencies and migrate to 2024#3088

Merged
aviraxp merged 4 commits into
tiann:mainfrom
CanerKaraca23:ksuinit
Dec 22, 2025
Merged

ksuinit: update dependencies and migrate to 2024#3088
aviraxp merged 4 commits into
tiann:mainfrom
CanerKaraca23:ksuinit

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Contributor

goblin version is too old, i recommend to upstream it since it's fork.
because of it, scroll cannot be updated.

Edits welcomed.

Copilot AI review requested due to automatic review settings December 21, 2025 21:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 migrates the ksuinit userspace component to Rust edition 2024, updates the syscalls dependency from version 0.6 to 0.7, and applies the new #[unsafe(no_mangle)] attribute syntax required by Rust 2024. The changes also include stylistic import reordering to follow alphabetical conventions.

  • Updates Rust edition from 2021 to 2024
  • Migrates #[no_mangle] to #[unsafe(no_mangle)] syntax for Rust 2024
  • Updates syscalls dependency from 0.6.15 to 0.7.0

Reviewed changes

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

Show a summary per file
File Description
userspace/ksuinit/src/main.rs Updates #[no_mangle] to #[unsafe(no_mangle)] attribute syntax required by Rust 2024 edition
userspace/ksuinit/src/loader.rs Reorders imports alphabetically (style-only change)
userspace/ksuinit/src/init.rs Reorders imports alphabetically (style-only change)
userspace/ksuinit/Cargo.toml Updates edition to 2024 and syscalls dependency to 0.7
userspace/ksuinit/Cargo.lock Updates all transitive dependencies to their latest versions
Comments suppressed due to low confidence (1)

userspace/ksuinit/src/main.rs:17

  • The unsafe block on line 15 is redundant. Since the main function is already declared as unsafe extern "C" on line 13, the entire function body is already in an unsafe context. The inner unsafe block can be removed and the execve call can be made directly.
    unsafe {
        execve(cstr!("/init"), argv, envp);
    }

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

@aviraxp aviraxp merged commit 6414061 into tiann:main Dec 22, 2025
18 checks passed
@aviraxp

aviraxp commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

goblin and kernlog can be updated to use upstream version. (kernlog needs to manually point to kstep/kernlog.rs@ff0b1bd)

@CanerKaraca23 CanerKaraca23 deleted the ksuinit branch December 22, 2025 18:26
yujincheng08 pushed a commit that referenced this pull request Dec 23, 2025
luyanci pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Dec 23, 2025
bklynali pushed a commit to bklynali/BK-KSU that referenced this pull request Dec 23, 2025
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
bklynali pushed a commit to bklynali/BK-KSU that referenced this pull request Dec 23, 2025
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 23, 2025
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 23, 2025
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Dec 25, 2025
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Dec 25, 2025
luyanci pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Dec 26, 2025
rifsxd pushed a commit to KernelSU-Next/KernelSU-Next that referenced this pull request Dec 28, 2025
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 2026
`goblin` version is too old, i recommend to upstream it since it's fork.
because of it, `scroll` cannot be updated.

Edits welcomed.
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