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

Since Kernel 5.7 kallsyms_lookup_name is not longer exported so the module won't compile #10

Open
spielkind opened this issue Sep 14, 2021 · 3 comments

Comments

@spielkind
Copy link

Since Kernel 5.7 kallsyms_lookup_name is not longer exported so the module won't compile
torvalds/linux@0bd476e

❯ make
make CONFIG_TOA=m  -C /lib/modules/`uname -r`/build M=`pwd` modules EXTRA_CFLAGS="-DTOA_IPV6_ENABLE"
make[1]: Entering directory '/usr/lib/modules/5.14.3-arch1-1/build'
  CC [M]  /home/keutterling/dtag/git/github/TCP_option_address/src/toa.o
  MODPOST /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/home/keutterling/dtag/git/github/TCP_option_address/src/toa.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:150: /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers] Error 1
make[2]: *** Deleting file '/home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers'
make[1]: *** [Makefile:1766: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.14.3-arch1-1/build'
make: *** [Makefile:8: default] Error 2
@netw0rm
Copy link

netw0rm commented Jul 3, 2022

have you installed linux-headers.

@hallelujah-shih
Copy link

Since Kernel 5.7 kallsyms_lookup_name is not longer exported so the module won't compile torvalds/linux@0bd476e

❯ make
make CONFIG_TOA=m  -C /lib/modules/`uname -r`/build M=`pwd` modules EXTRA_CFLAGS="-DTOA_IPV6_ENABLE"
make[1]: Entering directory '/usr/lib/modules/5.14.3-arch1-1/build'
  CC [M]  /home/keutterling/dtag/git/github/TCP_option_address/src/toa.o
  MODPOST /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/home/keutterling/dtag/git/github/TCP_option_address/src/toa.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:150: /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers] Error 1
make[2]: *** Deleting file '/home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers'
make[1]: *** [Makefile:1766: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.14.3-arch1-1/build'
make: *** [Makefile:8: default] Error 2

https://lwn.net/Articles/813350/
看这意思,就是为了堵住这个口子,老哥解决了吗?

@Lxy12138
Copy link

Lxy12138 commented Jun 6, 2023

Since Kernel 5.7 kallsyms_lookup_name is not longer exported so the module won't compile torvalds/linux@0bd476e

❯ make
make CONFIG_TOA=m  -C /lib/modules/`uname -r`/build M=`pwd` modules EXTRA_CFLAGS="-DTOA_IPV6_ENABLE"
make[1]: Entering directory '/usr/lib/modules/5.14.3-arch1-1/build'
  CC [M]  /home/keutterling/dtag/git/github/TCP_option_address/src/toa.o
  MODPOST /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/home/keutterling/dtag/git/github/TCP_option_address/src/toa.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:150: /home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers] Error 1
make[2]: *** Deleting file '/home/keutterling/dtag/git/github/TCP_option_address/src/Module.symvers'
make[1]: *** [Makefile:1766: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.14.3-arch1-1/build'
make: *** [Makefile:8: default] Error 2

https://lwn.net/Articles/813350/ 看这意思,就是为了堵住这个口子,老哥解决了吗?

可以参考这个项目,https://github.com/4ltern4te/kallsyms_lookup_name_finder/blob/main/kallsyms_lookup_name_finder.c

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

No branches or pull requests

4 participants