module: x86/modules: Skipping invalid relocation target
I tried to compile a module on Debian 10 (v4l2loopback) like this:sudo apt-get install linux-headers-$(uname -r)git clone https://github.com/umlaeute/v4l2loopback.gitcd v4l2loopback/make -j4sudo make...
View ArticleHow to register an interrupt handler for the ARM Generic Timer from a kernel...
I am currently trying to register a custom handler for one of the timers of the Generic Timer on my Raspberry Pi 5 and unfortunately cannot get it to work.So what I've done so far is to look into the...
View Articlevmnet kernel module blacklist not working
I am trying to uninstall VMware Workstation completely to re-install it on my Debian system (due to an issue I faced regarding vmnet, preventing my NAT or bridge networks from attaching to my VMs). I...
View ArticleUnrecognized command-line option ‘-ftrivial-auto-var-init=zero’ when building...
I have very little experience with kernel module development. Despite this I have been tasked with maintaining an old driver for a Sensoray 626 DAQ card. I am using a very simple dkms setup to build...
View ArticleCan a single USB/IP export both gadgets and physical bus devices? If not, can...
I need to create USB gadgets for a keyboard and mouse and attach them to a client using USB/IP. I also need to attach a few other devices.USB/IP can run in Device Mode (using the -e or --device flag)...
View Articlewriting to character device file is causing list_del or list_add corruption....
I am following LDD3. I have implemented the read and write functionality for the scull module. whenever I run echo hello > /dev/scull0 to test the write function, I get list_add / list_del...
View ArticleWhere do built-in kernel modules reside?
I am confused by how built-in kernel modules work. As per my understanding, one can embed a kernel module when compiling the Linux kernel by setting kconfig option to MODULE_NAME=y. Then, it doesn't...
View ArticleWhy I can't access current->nsproxy->mnt_ns->list?
I'm writing a kernel module that needs to get the list of all existing VFS mounts.I'm using kernel version 6.1.68.By reading kernel sources, I figured out that I need to use...
View ArticleShould am I need a pysical Smart Card and its reader device to sign linux...
I build and test a linux kernel source(rolling-stable) for fun, these days, I would like to sign a kernel module with self-created key, then I got the engine pkcs#11 on openssl is used to sign...
View ArticleHow to make Realtek nic use r8168 driver
I've been trying (unsuccessfully) for the last few days to make my Realtek ethernet card to work. I have no problems with my wireless connection: only the ethernet connection doesn't work.I have Ubuntu...
View ArticleAutomatic module signing for distribution in Linux
I'm new to writing Linux modules (drivers) and digital signatures, so please correct me if any of my understanding is incorrect.When I run make modules_install on my module, I get the following error...
View ArticleHow do I get VirtualBox to run on Arch?
When I try to start up a Windows 7 VM, I get 2 popup error windows. The first says:Failed to open a session for the virtual machine Windows7Box.The virtual machine 'Windows7Box' has terminated...
View ArticlePoor performance on Linux compared to Windows when reading from certain USB 3...
The issue to which I refer has been talked about a bit elsewhere on the...
View ArticleCompiling kernel with specified parameter
You can easily change kernel parameters with sysctl and then make it persistent with /etc/sysctl.d but is there a fast way to change default kernel parameters like default vm.swappiness = 60 at the...
View ArticleKernel hangs after loading custom module
I have a simple kernel module that essentially printks a message on each packet for a given interface (code below). Regardless of a kernel I compile it for and run it on, my system hangs a few seconds...
View ArticleWhere are Kernel global variables stored?
I am currently writing a Linux kernel module. I am aware that in case of userspace programs, uninitialized global variables (exported to other modules using EXPORT_SYMBOL) are stored in BSS segment and...
View Articleinsmod fails - module does not match running kernel but module has been...
Copied from here since this is the correct StackExchange.GoalRecompile the NVMe driver on Rocky Linux 9 without any changes (I want to make some but right now I'm just trying to get a working...
View ArticleHow to write a program to trigger memory direct reclaim?
First of all, I would like to kindly ask for your assistance in teaching me how to write a program that can trigger direct memory reclamation.I wrote a program that utilizes mmap to allocate memory as...
View ArticleError! Your kernel headers for kernel 5.8.0-rc3-microsoft-standard cannot be...
I'm trying to install usb network gate on ubuntu 20.04 on WSL2 with this kernel version installed on :root@DESKTOP-N9UN2H3:~/Desktop# uname -aLinux DESKTOP-N9UN2H3 5.8.0-rc3-microsoft-standard #2 SMP...
View ArticleSporadic zombie and D state processes on server
I'm writing to seek your expert advice regarding a critical issue affecting my ThinkSystem SR630 V2 server running AlmaLinux 8.9 (kernel 4.18.0-513.9.1.el8_9.x86_64). It hosts two virtual machines on...
View Article