anbox-modules/ashmem
Christian Hoff 4af9d5d591 Fix compilation of binder and ashmem on kernel 5.7 and later
On kernel 5.7 and later, kallsyms_lookup_name() can no longer be called from a kernel
module for reasons described here: https://lwn.net/Articles/813350/
As binder really needs to use kallsysms_lookup_name() to access some kernel
functions that otherwise wouldn't be accessible, KProbes are used on later
kernels to get the address of kallsysms_lookup_name(). The function is
afterwards used just as before. This is a very dirty hack though and the much
better solution would be if all the functions that are currently resolved
with kallsysms_lookup_name() would get an EXPORT_SYMBOL() annotation to
make them directly accessible to kernel modules.
2021-03-08 20:19:16 +01:00
..
uapi Import kernel module source from original Anbox repository 2018-06-08 17:20:21 +02:00
Makefile Fix build on vzkernel 3.10 2018-09-06 07:30:17 -04:00
ashmem.c Fix build on vzkernel 3.10 2018-09-06 07:30:17 -04:00
ashmem.h Import kernel module source from original Anbox repository 2018-06-08 17:20:21 +02:00
deps.c Fix compilation of binder and ashmem on kernel 5.7 and later 2021-03-08 20:19:16 +01:00
dkms.conf Import kernel module source from original Anbox repository 2018-06-08 17:20:21 +02:00