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

Unknown symbol in module [CentOS Linux release 7.6.1810 (Core)] #55

Closed
ilqvya opened this issue Jan 2, 2019 · 11 comments
Closed

Unknown symbol in module [CentOS Linux release 7.6.1810 (Core)] #55

ilqvya opened this issue Jan 2, 2019 · 11 comments

Comments

@ilqvya
Copy link

ilqvya commented Jan 2, 2019

[centos@WebLinux src]$ sudo insmod lime-3.10.0-957.1.3.el7.x86_64.ko "path=./DUMP format=raw"
[sudo] password for centos:
insmod: ERROR: could not insert module lime-3.10.0-957.1.3.el7.x86_64.ko: Unknown symbol in module


[centos@WebLinux src]$ uname -a
Linux WebLinux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


[centos@WebLinux src]$ ls /lib/modules
3.10.0-693.11.6.el7.x86_64  3.10.0-693.el7.x86_64  3.10.0-957.1.3.el7.x86_64  lime-3.10.0-957.1.3.el7.x86_64.ko


[centos@WebLinux src]$ ls -l /usr/src/kernels/$(uname -r)
total 4708
drwxr-xr-x.  32 root root    4096 Dec 29 16:31 arch
drwxr-xr-x.   3 root root    4096 Dec 29 16:31 block
drwxr-xr-x.   4 root root    4096 Dec 29 16:31 crypto
drwxr-xr-x. 119 root root    4096 Dec 29 16:31 drivers
drwxr-xr-x.   2 root root    4096 Dec 29 16:31 firmware
drwxr-xr-x.  75 root root    4096 Dec 29 16:31 fs
drwxr-xr-x.  28 root root    4096 Dec 29 16:31 include
drwxr-xr-x.   2 root root    4096 Dec 29 16:31 init
drwxr-xr-x.   2 root root    4096 Dec 29 16:31 ipc
-rw-r--r--.   1 root root     505 Nov 29 16:53 Kconfig
drwxr-xr-x.  13 root root    4096 Dec 29 16:31 kernel
drwxr-xr-x.  10 root root    4096 Dec 29 16:31 lib
-rw-r--r--.   1 root root   51296 Nov 29 16:53 Makefile
-rw-r--r--.   1 root root    2305 Nov 29 16:53 Makefile.qlock
drwxr-xr-x.   2 root root    4096 Dec 29 16:31 mm
-rw-r--r--.   1 root root 1123561 Nov 29 16:53 Module.symvers
drwxr-xr-x.  61 root root    4096 Dec 29 16:31 net
drwxr-xr-x.  15 root root    4096 Dec 29 16:31 samples
drwxr-xr-x.  13 root root    4096 Dec 29 16:31 scripts
drwxr-xr-x.   9 root root    4096 Dec 29 16:31 security
drwxr-xr-x.  24 root root    4096 Dec 29 16:31 sound
-rw-r--r--.   1 root root 3544010 Nov 29 16:53 System.map
drwxr-xr-x.  20 root root    4096 Dec 29 16:31 tools
drwxr-xr-x.   2 root root    4096 Dec 29 16:31 usr
drwxr-xr-x.   4 root root    4096 Dec 29 16:31 virt
-rw-r--r--.   1 root root      41 Nov 29 16:53 vmlinux.id


[centos@WebLinux src]$ ls -l /usr/src/kernels/
total 4
drwxr-xr-x. 22 root root 4096 Dec 29 16:31 3.10.0-957.1.3.el7.x86_64
@ilqvya
Copy link
Author

ilqvya commented Jan 2, 2019

it is the latest LiME, built directly on the machine

@kd8bny
Copy link
Collaborator

kd8bny commented Jan 2, 2019

Has the kernel been updated recently? Has the machine been updated since the update?

@ilqvya
Copy link
Author

ilqvya commented Jan 2, 2019

I don't know. It is VM. as i know, kernel was updated to the latest (that was published recently), recently.

@kd8bny
Copy link
Collaborator

kd8bny commented Jan 2, 2019

Restart the VM. That error happens when you compile a module that doesn't match the running kernel version. e.g. after a system update

@ilqvya
Copy link
Author

ilqvya commented Jan 2, 2019

Well, i've restarted my VM, and it doesn't help =(

[centos@WebLinux dev]$ cd LiME                                                                                 
[centos@WebLinux LiME]$ cd src/                                                                                
[centos@WebLinux src]$ make clean                                                                              
rm -f *.o *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d                     
rm -rf \.tmp_versions                                                                                          
[centos@WebLinux src]$ ls                                                                                      
disk.c  lime-3.10.0-957.1.3.el7.x86_64.ko  lime.h  main.c  Makefile  Makefile.sample  tcp.c                    
[centos@WebLinux src]$ rm lime-3.10.0-957.1.3.el7.x86_64.ko                                                    
[centos@WebLinux src]$ ls                                                                                      
disk.c  lime.h  main.c  Makefile  Makefile.sample  tcp.c                                                       
[centos@WebLinux src]$ make                                                                                    
make -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build M=/home/centos/dev/LiME/src modules                       
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'                                       
  CC [M]  /home/centos/dev/LiME/src/tcp.o                                                                      
  CC [M]  /home/centos/dev/LiME/src/disk.o                                                                     
  CC [M]  /home/centos/dev/LiME/src/main.o                                                                     
  LD [M]  /home/centos/dev/LiME/src/lime.o                                                                     
  Building modules, stage 2.                                                                                   
  MODPOST 1 modules                                                                                            
  CC      /home/centos/dev/LiME/src/lime.mod.o                                                                 
  LD [M]  /home/centos/dev/LiME/src/lime.ko                                                                    
make[1]: Leaving directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'                                        
strip --strip-unneeded lime.ko                                                                                 
mv lime.ko lime-3.10.0-957.1.3.el7.x86_64.ko                                                                   
[centos@WebLinux src]$ ls                                                                                      
disk.c  lime-3.10.0-957.1.3.el7.x86_64.ko  lime.mod.c  lime.o  main.o    Makefile.sample  Module.symvers  tcp.o
disk.o  lime.h                             lime.mod.o  main.c  Makefile  modules.order    tcp.c                

[centos@WebLinux src]$ sudo insmod lime-3.10.0-957.1.3.el7.x86_64.ko  "patch ./Dump format=raw"   
insmod: ERROR: could not insert module lime-3.10.0-957.1.3.el7.x86_64.ko: Unknown symbol in module
[centos@WebLinux src]$ last reboot                                                                
reboot   system boot  3.10.0-957.1.3.e Wed Jan  2 23:17 - 23:26  (00:09)                          
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 10:08 - 23:26 (2+13:18)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 10:01 - 23:26 (2+13:25)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:59 - 23:26 (2+13:26)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:58 - 23:26 (2+13:28)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:55 - 23:26 (2+13:31)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:53 - 23:26 (2+13:33)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:38 - 23:26 (2+13:48)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:26 - 23:26 (2+14:00)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:13 - 23:26 (2+14:13)                         
reboot   system boot  3.10.0-957.1.3.e Mon Dec 31 09:03 - 23:26 (2+14:23)                         
reboot   system boot  3.10.0-957.1.3.e Sun Dec 30 22:58 - 23:26 (3+00:28)                         
reboot   system boot  3.10.0-957.1.3.e Sat Dec 29 16:22 - 23:26 (4+07:04)                         
reboot   system boot  3.10.0-957.1.3.e Sat Dec 22 19:25 - 19:26  (00:01)                          
reboot   system boot  3.10.0-693.11.6. Sat Dec 22 19:18 - 19:26  (00:08)                          
reboot   system boot  3.10.0-693.11.6. Sat Dec 22 18:44 - 19:26  (00:42)                          
reboot   system boot  3.10.0-693.11.6. Fri Dec 21 11:52 - 19:26 (1+07:34)                         
reboot   system boot  3.10.0-693.11.6. Fri Dec 21 11:47 - 19:26 (1+07:39)                         
reboot   system boot  3.10.0-693.11.6. Thu Mar 22 10:21 - 11:29 (274+01:07)                       
reboot   system boot  3.10.0-693.11.6. Thu Mar 22 10:19 - 11:29 (274+01:09)                       
reboot   system boot  3.10.0-693.11.6. Thu Jan 18 08:53 - 11:29 (337+02:36)                       
reboot   system boot  3.10.0-693.el7.x Wed Jan 17 22:21 - 11:29 (337+13:08)                       
reboot   system boot  3.10.0-693.el7.x Wed Jan 17 21:39 - 22:20  (00:41)                          
                                                                                                  
wtmp begins Wed Jan 17 21:39:01 2018                                                              
[centos@WebLinux src]$  

@kd8bny
Copy link
Collaborator

kd8bny commented Jan 3, 2019

after running insmod, run dmesg. What does the error state there?

@kd8bny
Copy link
Collaborator

kd8bny commented Jan 9, 2019

So on this one the last line of dmesg says there is an invalid parameter.

[ 2617.795741] lime: Unknown parameter `patch'

Your insmod has the following.

sudo insmod lime-3.10.0-957.1.3.el7.x86_64.ko "patch ./Dump format=raw"

It should say

sudo insmod lime-3.10.0-957.1.3.el7.x86_64.ko "path=./Dump format=raw"

I don't believe this was you're original issue though

Also I only need the last 20 lines or so :)

@ilqvya
Copy link
Author

ilqvya commented Jan 15, 2019

I don't known how, but the issue has gone away. Can't reproduce it even from previous snapshot

@ilqvya
Copy link
Author

ilqvya commented Jan 15, 2019

I've ctrl-v from top up command line, and it doesn't reproduce at all+(

[centos@WebLinux src]$ sudo insmod lime-3.10.0-957.1.3.el7.x86_64.ko "path=./DUMP format=raw"
[sudo] password for centos:
insmod: ERROR: could not insert module lime-3.10.0-957.1.3.el7.x86_64.ko: Unknown symbol in module

now, it processes without errors.

@kd8bny
Copy link
Collaborator

kd8bny commented Jan 15, 2019

@effolkronium So LiME is working and you can create an image of the RAM?

@ilqvya
Copy link
Author

ilqvya commented Jan 17, 2019

Yep, i've no idea, what that was, maybe typo in arg string, but now all works like a charm

@ilqvya ilqvya closed this as completed Jan 17, 2019
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

2 participants