-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Don't warning build non Kprobes #463
Conversation
KernelSU work without Kprobes Tested on kernel xiaomi linux 4.19
@@ -56,7 +58,7 @@ int __init kernelsu_init(void) | |||
#ifdef CONFIG_KPROBES | |||
ksu_enable_sucompat(); | |||
ksu_enable_ksud(); | |||
#else | |||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the condition, and make the warning
a info
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya bro.. maybe that's better..
I tried on linux
- 4.9.x
- 4.14.x
- 4.19.x
without kprobes, and KSU runs normally too
And this method will help kernels that have corrupted kprobes to run KSU without kprobes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.9 and 4.14 should also work without kprobes, so we shouldn't warn them, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya bro...
I will close this since it is stale, welcome to make another PR in any time! |
KernelSU work without Kprobes
Tested on kernel xiaomi linux 4.19