Tagged Questions
0
votes
1answer
9 views
SystemTap failed with error “WARNING: kbuild exited with status: 2”
I built a custom kernel 3.2-41, required kernel-debuginfo-common and kernel-debuginfo packages. I installed these packages on CentOS System with kernel 2.6.32-358. System booted fine with new kernel. ...
2
votes
2answers
36 views
How to send a “signal” from kernel module to user-space application?
I have a Linux kernel module which contains the interrupt handler, and would like to somehow notify the user-space application after the interrupt was handled. Please tell me, how to do it?
0
votes
0answers
22 views
netfilter amended packet get “no route to host ” error
I had a module which echo back UDP packets to client.
hooked by a NF_INET_PRE_ROUTING netfilter hooks.
iph = ip_hdr(skb);
iptmp = iph->saddr;
iph->saddr = iph->daddr;
iph->daddr = iptmp;
...
0
votes
0answers
16 views
When to use SysFs interface
I have requirement to provide the user space API for a Kernel module. Where the kernel module is interacting with devices on I2C, SPI interface. I have implemented kernel module which exposes the ...
0
votes
1answer
36 views
Kernel module with multiple files - unknown symbol
Hello stackoverflowers :)
For the last several hours I've been trying to compile+load a multiple file module. The compilation emits a strange warning and the module fails to load. Here are the ...
0
votes
1answer
400 views
insmod: init_module failed (Exec format error)
I'm able to compile kernel module for Galaxy S4 Kernel 3.4.xx but I get following errors during module insertion. could someone please shed some light on what's missing here.
The kernel module is a ...
0
votes
1answer
78 views
C - Linux - kernel module - TCP header
I'm trying to create linux kernel module, that will inspect incoming packets. At the moment, I'm in process of extracting TCP header of packet and reading source and destination port -> However I'm ...
-1
votes
0answers
32 views
How to read thread context from kernel module
I can intercept pagefaults in my kernel module(linux). I need to read ESP register, which the process had before switching the context. How can i do it?
I tried current->thread.sp, but it doesn't ...
-1
votes
1answer
20 views
Permission denied for module.h [closed]
/usr/src/kernels/2.6.32-358.6.1.el6.x86_64/include/linux/module.h
when i am trying to run this command as a root user its showing following error
bash: ...
-3
votes
1answer
51 views
removing from the output of NETSTAT
I am new here.
So I am developing a Linux Kernel Module, and want to hide an open socket on a specific port number from the output of sudo netstat -nap
What is the approach that I should take? I ...
0
votes
1answer
25 views
Unknown symbol dentry_path
I'm using the method dentry_path in my kernel module, compilation work fine but when loading the kernel module I go the error message:
Error: could not insert module my_mod.ko: Unknown symbol in ...
3
votes
2answers
321 views
Export kernel module headers to userspace
I am writing a Linux kernel module which need to export some header files to userspace.
I am wondering if there is any standard method which use Kernel package to do required sanitation of headers ...
2
votes
2answers
312 views
Linux' hrtimer - microsecond precision?
Is it possible to execute tasks on a Linux host with microsecond precision? I.e., I'd like to execute a task at a specific instant of time. I know, Linux is no real-time system but I'm searching for ...
1
vote
1answer
128 views
Reading block_device from kernel (3.7) module: segfault in submit_bio, bd_disk is missing
Hello stackoverflow.
Wondering what I got wrong trying to access a block-device directly from a kernel module. (Kernel 3.7 on amd64)
I get the (struct gendisk*) of the device using get_gendisk(). ...
0
votes
0answers
21 views
wrmsrl hangs system on unix kernel 2.6.32
I create a kernel module, in which I want to hook syscall, so I can insert some instructions before syscall.
Here is what I did:
#define system_call_address 0xffffffff8100b020 // the address is get ...