kernel: Explicitly check zygote start in execve hook (https://github.com/tiann/KernelSU/pull/3113)#1038
Merged
Merged
Conversation
…3113) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
pershoot
pushed a commit
that referenced
this pull request
Jan 1, 2026
…3113) (#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
maxsteeel
pushed a commit
to maxsteeel/KernelSU-Next
that referenced
this pull request
Feb 1, 2026
…3113) (KernelSU-Next#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
maxsteeel
pushed a commit
to maxsteeel/KernelSU-Next
that referenced
this pull request
Feb 1, 2026
…3113) (KernelSU-Next#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
rifsxd
pushed a commit
that referenced
this pull request
Feb 2, 2026
…3113) (#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
hakuna77
pushed a commit
to hakuna77/KernelSU-Next
that referenced
this pull request
Feb 3, 2026
…3113) (KernelSU-Next#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
ThRE-Team
pushed a commit
to ThRE-Team/KernelSU-Next
that referenced
this pull request
Feb 12, 2026
…3113) (KernelSU-Next#1038) The assumption that first app_process is zygote is fragile. Take the following scernio into account: 1) User updates from KSU 1.0 to 3.0, with lsposed installed 2) User doesn't know how to install lkm via manager, find a friend to patch init boot for him 3) Next boot, old ksud reports post-fs-data done with prctl, new kernel doesn't know it, so throne tracker is not triggered 4) app_process logic gets triggered when lsposed executes lspd 5) Task work is bound to lspd's parent, which is a sh instead of init, and it has already exited 6) User has no root While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.
Mr-Morat
added a commit
to Mr-Morat/KernelSU-Next
that referenced
this pull request
Feb 17, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
slipzryzens
pushed a commit
to slipzryzens/KernelSU-Next
that referenced
this pull request
Feb 17, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
ahmedhanbal
added a commit
to ahmedhanbal/KernelSU-Next
that referenced
this pull request
Feb 24, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
Mr-Morat
added a commit
to Mr-Morat/KernelSU-Next
that referenced
this pull request
Feb 26, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
Mr-Morat
added a commit
to Mr-Morat/KernelSU-Next
that referenced
this pull request
Feb 28, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
rifsxd
added a commit
that referenced
this pull request
Mar 3, 2026
…ernelSU#3113) (#1038)" This reverts commit 21058f7.
rifsxd
added a commit
that referenced
this pull request
Mar 3, 2026
…ernelSU#3113) (#1038)" This reverts commit 21058f7.
ThRE-Team
pushed a commit
to ThRE-Team/KernelSU-Next
that referenced
this pull request
Mar 5, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
slipzryzens
pushed a commit
to slipzryzens/KernelSU-Next
that referenced
this pull request
Mar 7, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
Mr-Morat
added a commit
to Mr-Morat/KernelSU-Next
that referenced
this pull request
Mar 24, 2026
…ernelSU#3113) (KernelSU-Next#1038)" This reverts commit 21058f7.
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
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.
kernel: Explicitly check zygote start in execve hook (tiann/KernelSU#3113)
Author: Wang Han 416810799@qq.com (aviraxp)
Date: Thu Jan 1 20:26:25 2026 +0800
The assumption that first app_process is zygote is fragile. Take the following scernio into account:
While this commit can fix it, it is strictly recommend that ksud version should be greater than or equal to kernel version.