python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Linux Kernel Module Development "module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1"
I am currently trying to develop a simple linux kernel module. It should just log something, its 1:1 copied from the internet.
I have the following files:
lkm_example.c
#include <linux/init.h>
#...
Stevie
Votes: 0
Answers: 1
insmod error, invalid module format, fedora 35
I'm attempting to learn about kernel modules and followed along with a simple hello world example. My computer is running fedora 35. When I run sudo insmod mymodule.ko i get the error insmod: ERROR: c...
McArthur
Votes: 0
Answers: 1
How to correctly intercept system calls in the Linux kernel 5.*?
There was a need to write a kernel module, with a hook for exec. I found a way with sys_calls_table and lsm. As I understand it, sys_calls_table is more of a hack than a correct solution, and I did no...
Антон Мамедов
Votes: 0
Answers: 1
calling mprotect in kernel module
I have a kernel module where I need to call mprotect for the current user process. I was thinking of making a direct call to do_mprotect_pkey but the function is marked as static. If not, is there any...
ruke
Votes: 0
Answers: 0