Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

diphons
Copy link
Contributor

@diphons diphons commented May 5, 2023

KernelSU work without Kprobes
Tested on kernel xiaomi linux 4.19

KernelSU work without Kprobes
Tested on kernel xiaomi linux 4.19
kernel/ksu.c Show resolved Hide resolved
@tiann tiann enabled auto-merge (squash) May 11, 2023 13:12
@@ -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)
Copy link
Owner

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?

Copy link
Contributor Author

@diphons diphons May 13, 2023

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

Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya bro...

@tiann
Copy link
Owner

tiann commented May 20, 2023

I will close this since it is stale, welcome to make another PR in any time!

@tiann tiann closed this May 20, 2023
auto-merge was automatically disabled May 20, 2023 03:35

Pull request was closed

@diphons diphons deleted the patch-3 branch March 19, 2024 02:05
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.

None yet

2 participants