-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix ksud build, take 4 #2846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix ksud build, take 4 #2846
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove init_driver_fd function for non-linux/android targets
Ylarod
approved these changes
Nov 1, 2025
Ylarod
pushed a commit
to Ylarod/KernelSU
that referenced
this pull request
Nov 1, 2025
Remove init_driver_fd function for non-linux/android targets
Ylarod
pushed a commit
that referenced
this pull request
Nov 1, 2025
Remove init_driver_fd function for non-linux/android targets
KOWX712
pushed a commit
to KOWX712/KernelSU
that referenced
this pull request
Nov 2, 2025
Remove init_driver_fd function for non-linux/android targets
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Nov 2, 2025
* refactor: replace throne tracker with ksud token * use snprintf * refactor: new supercall impl - Import the sukisu command * disable seccomp for supercall users * kernel: fmt clear * kernel: Enable macro protection for sulog - Only enabled on kernel versions greater than 5.10.245 * kernel: Refactor kprobe hooks and implement LSM hooks for improved security handling * debug mode * kernel: Add functionality to generate and validate authentication tokens for cmd_su * kernel: Simplified manual SU command processing for code * kernel: replace renameat hook with fsnotify * Revert "refactor: replace throne tracker with ksud token" This reverts commit aa2cbbf. * kernel: fix compile * kernel: fix compile below 6.0 * Fix compile err; Add become_manager * kernel: install fd for manager automaticlly - extend to import the corresponding command * manager: new supercall impl * temp changes for ksud * ksud: fix compile * fix wrong opcode * kernel: fix compile * kernel: Fixed hook type and KPM status retrieval errors * kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10 When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end. Signed-off-by: ShirkNeko <[email protected]> * ksud: fix cargo check * manager: Fixed an issue where the KSUD release and user-mode scanning switch failed to function correctly. - kernel: fix spin lock mutual kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10 When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end. kernel: try introduce like susfs's method to fix prctl delay * seccomp: allow reboot * use u32 * update clang-format * 4 spaces save the world * ksud: Fix build on macOS * manager: bump minimal supported kernel. - When get_hook_type is empty, display “Unknown”. * Fix ksud build (tiann#2841) * try fix ksud * fix for macos * remove any * Fix ksud build, take 3 * try fix allowlist * bring lsm hook back * fix: a lot again * Fix ksud build, take 4 (tiann#2846) Remove init_driver_fd function for non-linux/android targets * manager: Return to the native method via KSUd installation * Merge with susfs-mian format --------- Signed-off-by: ShirkNeko <[email protected]> Co-authored-by: Ylarod <[email protected]> Co-authored-by: weishu <[email protected]> Co-authored-by: AlexLiuDev233 <[email protected]> Co-authored-by: Wang Han <[email protected]>
KOWX712
pushed a commit
to KOWX712/KernelSU
that referenced
this pull request
Nov 3, 2025
Remove init_driver_fd function for non-linux/android targets
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Nov 7, 2025
* refactor: replace throne tracker with ksud token * use snprintf * refactor: new supercall impl - Import the sukisu command * disable seccomp for supercall users * kernel: fmt clear * kernel: Enable macro protection for sulog - Only enabled on kernel versions greater than 5.10.245 * kernel: Refactor kprobe hooks and implement LSM hooks for improved security handling * debug mode * kernel: Add functionality to generate and validate authentication tokens for cmd_su * kernel: Simplified manual SU command processing for code * kernel: replace renameat hook with fsnotify * Revert "refactor: replace throne tracker with ksud token" This reverts commit aa2cbbf. * kernel: fix compile * kernel: fix compile below 6.0 * Fix compile err; Add become_manager * kernel: install fd for manager automaticlly - extend to import the corresponding command * manager: new supercall impl * temp changes for ksud * ksud: fix compile * fix wrong opcode * kernel: fix compile * kernel: Fixed hook type and KPM status retrieval errors * kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10 When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end. Signed-off-by: ShirkNeko <[email protected]> * ksud: fix cargo check * manager: Fixed an issue where the KSUD release and user-mode scanning switch failed to function correctly. - kernel: fix spin lock mutual kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10 When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end. kernel: try introduce like susfs's method to fix prctl delay * seccomp: allow reboot * use u32 * update clang-format * 4 spaces save the world * ksud: Fix build on macOS * manager: bump minimal supported kernel. - When get_hook_type is empty, display “Unknown”. * Fix ksud build (tiann#2841) * try fix ksud * fix for macos * remove any * Fix ksud build, take 3 * try fix allowlist * bring lsm hook back * fix: a lot again * Fix ksud build, take 4 (tiann#2846) Remove init_driver_fd function for non-linux/android targets * manager: Return to the native method via KSUd installation * Merge with susfs-mian format --------- Signed-off-by: ShirkNeko <[email protected]> Co-authored-by: Ylarod <[email protected]> Co-authored-by: weishu <[email protected]> Co-authored-by: AlexLiuDev233 <[email protected]> Co-authored-by: Wang Han <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove init_driver_fd function for non-linux/android targets