remote-android / redroid-modules

redroid kernel modules (binderfs, ashmem etc.)
GNU General Public License v2.0
87 stars 58 forks source link

workaround for 5.7+ kernels (`kallsyms_lookup_name` not exported any more) #4

Closed zhouziyang closed 1 year ago

zhouziyang commented 3 years ago

https://github.com/zizzu0/LinuxKernelModules/blob/main/FindKallsymsLookupName.c

JayDoubleu commented 3 years ago

This seems to be now fixed via fork : https://github.com/choff/anbox-modules

tonykcn commented 2 years ago

Hi @zhouziyang , has this issue been resolved?
Most of the current popular kernels are 5.7+, and this "redroid-modules" can't be installed if this issue can't be resolved.

Any suggestions on how to resolve this issue will be appreciated. Thanks.

zhouziyang commented 2 years ago

please check links above, you can solve via kprobe. please be noted that these modules depend on unstable kernel APIs, and you may need adjust for different kernel versions. BTW, some OS (ubuntu 20.04+ etc.) already bundle these modules; and some OS (aliyun linux etc.) allow modules to link against kallsyms_lookup_name.

zhouziyang commented 1 year ago

Strongly suggest to use Linux distros with built-in binderfs support. The out of tree binderfs module possible not stable, and might need much extra work to compatible with the running Linux kernel.

NO plan to fix this issue here.