Open noche-x opened 3 years ago
tell me ur kernel versionnnnnnnnn
5.11.11-arch1-1
The "patch" that I did resulted in this message in dmesg:
[51429.873131] cartographer_module: module is marked as livepatch module, but livepatch support is disabled
After disabling the livepatch of the source file:
[51500.274637] cartographer_module: Cartographer Loading complete.
So I tried a command but:
Cartographer : master ✘ :✹ ᐅ sudo echo "settarget libtestsfaa.so" > /proc/cartographer
zsh: permission denied: /proc/cartographer
But when I used sudo su
to do the command it succeeded and the example command works!
I could open a pull request but my knowledge about linux driver development is limited, if I knew the cause of this I would've made a pull request.
Anyways my patch is:
in cartographer.c change FTRACE_OPS_FL_RECURSION_SAFE
to FTRACE_OPS_FL_RECURSION
,
add struct pt_regs *regs = ftrace_get_regs(fregs);
to the function ftrace_thunk
and change the parameter from pt_regs* regs
to ftrace_regs* fregs
in kallsyms.c change it to kprobes instead of livepatch aka copy and paste the kallsyms_kp.c from h33p's repo.
Yeah i'm on 5.10 and it still works, something probably changed but it looks like you figured it out.
But when I used sudo su to do the command it succeeded and the example command works!
yeah ur supposed to use | sudo tee or something like that to redirect it.
I'll probably get around to it when I update distro, thanks for the info. Also I didn't even know this was on the AUR lol.
remove module cartographer-dkms-git/r16.78a704a for kernel 5.11.11-arch1-1:
oops brainlet moment, was up for like 24 hours lol
Hello, I wanted to check this out and firstly I tried to install from AUR but it kept failing with [code block 1]
So I tried to compile it myself and the same errors occured. I swapped FTRACE_OPS_FL_RECURSION_SAFE with FTRACE_OPS_FL_RECURSION, changed ftrace_thunk's last parameters type from
pt_regs regs
toftrace_regs fregs
and addedstruct pt_regs *regs = ftrace_get_regs(fregs);
(solution from) and lastly I changed h33p's kallsyms thing from livepatch to kprobes. It compiled successfully but when I tried to insmod it, I gotinvalid module format
I can successfully compile and insmod h33p's kallsyms-mod.
The build error at /var/lib is: