Closed SaigyoujiYuyuko233 closed 7 months ago
After checking out a6f38f9b4a92dd43d78415796c034b54237049a1
, it works.
But after 29a32a7d9a00b06e7141fe0311926b651ff92b1b
, the issue start appearing
It works for me. Please show your dmesg
output after running insmod
It works for me. Please show your
dmesg
output after runninginsmod
Oh I forget to rename the PROCNAME. After doing that it works fine. Thanks!
same problem...
same problem...
rename your Makefile PROCNAME
same problem...
rename your Makefile
PROCNAME
''' COMPILER_OPTIONS := -Wall -DPROCNAME='"4396"' \ ''' I have already loaded another lkm, is it possible that this is the reason?
Please, use ascii a-z for the name, not numbers then try again
Please, use ascii a-z for the name, not numbers then try again
COMPILER_OPTIONS := -Wall -DPROCNAME='"idle"' \ still not work
make /usr/bin/as --64 src/persist.S -statistics -fatal-warnings \ -size-check=error -o src/persist.o /usr/bin/as: total time in assembly: 0.007993 frag chains:
0x561245935e50 .text 5 frags
0x561245935ee8 .data 2 frags
0x561245935f80 .bss 2 frags
fixups: 5 1 mini local symbols created, 0 converted /usr/bin/ld -Ttext 200000 --oformat binary -o src/persist src/persist.o make -C /lib/modules/5.4.0-152-generic/build M=/home/xx/.rm/KoviD-master modules make[1]: Entering directory '/usr/src/linux-headers-5.4.0-152-generic' CC [M] /home/xx/.rm/KoviD-master/src/kovid.o In file included from /home/xx/.rm/KoviD-master/src/kovid.c:26:0: /home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/pid.o In file included from /home/xx/.rm/KoviD-master/src/pid.c:17:0: /home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/fs.o
In file included from /home/xx/.rm/KoviD-master/src/fs.c:18:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_str_on_load[] = {
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_ps_on_load[] = {
^~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sys.o
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_bpf’: /home/xx/.rm/KoviD-master/src/sys.c:242:2: warning: #warning "Using old __bpf_map_get" [-Wcpp]
^~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_execve’:
/home/xx/.rm/KoviD-master/src/sys.c:34:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~
/home/xx/.rm/KoviD-master/src/sys.c:34:26: note: (near initialization for ‘argvx.ptr.native’)
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~
/home/xx/.rm/KoviD-master/src/sys.c: At top level:
/home/xx/.rm/KoviD-master/src/sys.c:454:9: note: #pragma message: tcp6_seq_show untested
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c:469:9: note: #pragma message: udp6_seq_show untested
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘_tty_write_log’:
/home/xx/.rm/KoviD-master/src/sys.c:621:5: warning: ISO C90 forbids variable length array ‘ttybuf’ [-Wvla]
char ttybuf[len+16];
^~~~
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
At top level:
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_str_on_load[] = {
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_ps_on_load[] = {
^~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sock.o
In file included from /home/xx/.rm/KoviD-master/src/sock.c:21:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_str_on_load[] = {
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_ps_on_load[] = {
^~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/util.o
In file included from /home/xx/.rm/KoviD-master/src/util.c:16:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_str_on_load[] = {
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_ps_on_load[] = {
^~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/vm.o
In file included from /home/xx/.rm/KoviD-master/src/vm.c:4:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_str_on_load[] = {
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char kv_hide_ps_on_load[] = {
^~~~~~
LD [M] /home/xx/.rm/KoviD-master/kovid.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/xx/.rm/KoviD-master/kovid.mod.o
LD [M] /home/xx/.rm/KoviD-master/kovid.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-152-generic'
no issues from the building I see, show your dmesg
when loading the module.
remember you need to kill
to activate the proc entry, after loading the module.
Describe the bug After
make all
, the kernel module failed to load with errorcould not insert module kovid.ko: Bad address
.To Reproduce Steps to reproduce the behavior:
master
cd KoviD
make all
git submodule update --init volundr
make -C volundr
insmod ./kovid.ko
Expected behavior
kovid.ko
loaded into kernel.Screenshots
Desktop (please complete the following information):
Additional context I tried branches such as
kvv1.0
andkvdev
, and they all failed duingmake
Any help would be appreciated!