Questions tagged [kernel-modules]

Use this tag for questions about loading, configuring, or compiling them. See also /drivers for questions about which modules to use for specific hardware. A kernel module is a bit of code that can be added into the kernel by the administrator while the system is running, typically providing one feature such as a filesystem.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Lots of errors trying to update nvidia drivers with dnf update --refresh on Fedora 39

So about a week or two ago I tried updating my kernel which incidentally broke my NVIDIA Drivers somehow. Every startup I'd get the "NVIDIA Kernel module broken. Reverting to nouveau" ...
Lobster Roast's user avatar
0 votes
0 answers
18 views

How do I check if a kobject exists?

I'm following this guide on sysfs: https://embetronicx.com/tutorials/linux/device-drivers/sysfs-in-linux-kernel/ If I use kobject_create_and_add to add a new kobject, the function will fail if the ...
dlee1828's user avatar
0 votes
0 answers
31 views

Why are raid modules always loaded?

This is driving me seriously crazy: $ doas lsmod | fgrep raid | fgrep ' 0' raid10 73728 0 raid456 192512 0 raid1 57344 0 raid0 24576 ...
q.undertow's user avatar
0 votes
1 answer
29 views

How do I install the Ashmem and Binder kernel mods for Anbox?

So, I need a virtual Android environment for some work I'm doing and decided to install Anbox. Unfortunately, it won't run because Ashmem and Binder are not installed. I've tried alternatives like ...
Juancarlos Kai Shiro's user avatar
2 votes
0 answers
47 views

High resolution sleep in kernel thread?

What is the correct way to sleep to us resolution in a thread? I'm trying to write a device driver and I need to keep a pin high for a certain number of us after a GPIO interrupt. My plan is to create ...
FourierFlux's user avatar
0 votes
0 answers
13 views

Akmod Building Nvidia Modules on Every Boot (Fedora)

recently my system was suffering from really long boot times so I decided to investigate. systemd-analyze blame gives the following output: 3min 41.630s akmods.service 3min 39.318s plymouth-quit-wait....
Wali Waqar's user avatar
2 votes
0 answers
63 views

What's the expected overhead of a passthrough device mapper?

I'm trying to establish a baseline throughput overhead for a passthrough device mapper; i.e. a device mapper that does nothing. Roughly following benchmarking procedures from Cloudflare, I'm measuring ...
davidchuyaya's user avatar
0 votes
0 answers
10 views

How to get full mountpoint path name by the sturct fc_context

In my kernel module, I've implemented a syscall hook named fsconfig to manage operations related to remounting readonly mountpoints. For instance, if a user executes mount /dev/sda /tmp/mytest -o ...
hongyun's user avatar
0 votes
0 answers
72 views

How to make an unofficial Orange Pi 5 Mipi-DSI display work on an Orange Pi 5 Arch Linux system, given kernel driver source and .deb package?

For a while I've tried to make use of a display I ordered from Aliexpress to make it work with an unofficial 7Ji Arch Linux distribution for Orange Pi 5, to no avail. Perhaps against my better ...
nonsu_ki's user avatar
0 votes
1 answer
27 views

Should 'dpkg -i iptables' be installing the required kernel modules?

I'm in the process of installing iptables onto an embedded Debian 8.7 armhf machine that does not have access to the internet. My method has been to manually find the .deb package files from the ...
Izzo's user avatar
  • 961
1 vote
0 answers
46 views

Although all is correct, Linux kernel module signing fails strangely

I have a problem during signing kernel module, which is not able to sign microcodes only, other is going well. /playground/lin/linux$ make bindeb-pkg KBUILD_SIGN_PIN=1234 -j8 V=12 1> /dev/null 0&...
PICOPress's user avatar
0 votes
1 answer
244 views

Tried to update my Debian install from kernel 6.1.0-17 to 6.1.0-18, but it seems like it did not install correctly

I tried to update my Debian system like normal, and one of the updates was for the kernel, from 6.1.0-17 to 6.1.0-18. However, it seems like there is some incompatibility with the most recent nvidia ...
Yellow Elite's user avatar
1 vote
1 answer
106 views

How can I break at module_init()? This loadable kernel module is preventing SSH logins

I am porting the driver for a USB device to Rocky Linux 9.3. Once the module is inserted, new logins by ssh are unresponsive. Blacklisting the module and rebooting restores normal functionality. ...
William Dickerson's user avatar
0 votes
0 answers
18 views

Sporadic 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 ...
supmethods's user avatar
1 vote
2 answers
172 views

insmod fails - module does not match running kernel but module has been compiled against correct kernel

Moved from here since this is the correct StackExchange. Goal Recompile 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 module)...
Grant Curell's user avatar
0 votes
1 answer
50 views

Kernel 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 ...
seed's user avatar
  • 1
0 votes
0 answers
56 views

Poor performance on Linux compared to Windows when reading from certain USB 3 flash drives

The issue to which I refer has been talked about a bit elsewhere on the internet: https://www.reddit.com/r/linuxquestions/comments/sbpt23/usb_flash_drive_read_speed_much_slower_in_linux/ https://...
K. S.'s user avatar
  • 109
0 votes
1 answer
35 views

Should am I need a pysical Smart Card and its reader device to sign linux kernel module?

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 it. ...
PICOPress's user avatar
0 votes
1 answer
169 views

Where 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 ...
Markinson's user avatar
  • 103
0 votes
0 answers
29 views

writing to character device file is causing list_del or list_add corruption. How do I fix it?

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 ...
Aman's user avatar
  • 1
0 votes
0 answers
25 views

Can a single USB/IP export both gadgets and physical bus devices? If not, can 2 instances of USB/IP run simultaneously?

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) ...
sonicbhoc's user avatar
  • 101
2 votes
4 answers
4k views

Unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ when building kernel module

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 ...
Adam Sperry's user avatar
0 votes
0 answers
56 views

vmnet 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 ...
Arszilla's user avatar
0 votes
0 answers
67 views

How to register an interrupt handler for the ARM Generic Timer from a kernel module?

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 ...
ObiBabobi's user avatar
1 vote
1 answer
208 views

Reboot command doesn't invoke reboot system call?

OS is Debian. As per my question here: Is there a way to determine what process is rebooting a server? I wrote a kernel module to intercept the reboot syscall via modifying the syscall table. ...
cat pants's user avatar
  • 475
0 votes
1 answer
200 views

Issue with make and sudo make in Linux kernel module compilation

I am currently working on a simple Linux kernel module and have encountered an issue related to running make and sudo make commands. Here's the content of my Makefile: obj-m := main.o all: make -...
pro-codes's user avatar
0 votes
0 answers
466 views

Custom linux kernel module: ".gnu.linkonce.this_module section size must match the kernel's built struct module size at run time"

I'm trying to load a barebones Linux device driver module, but I keep getting hit with this in dmesg: module dummydriver: .gnu.linkonce.this_module section size must match the kernel's built struct ...
David Reidsma's user avatar
0 votes
1 answer
150 views

Why does nvidiafb module hang the entire system?

I have an older P5K asus mobo with: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 8400 GS Rev. 3] [10de:10c3] (rev a2) Subsystem: eVga.com. Corp. Device [3842:1302] ...
user3161924's user avatar
0 votes
0 answers
18 views

How do you find what module loaded by (e)udev is hanging the system?

I have two different kernels, one built with a bunch of device support and another with not as much device support. The one with less device support boots fine on an older P5K Pro motherboard, the ...
user3161924's user avatar
0 votes
0 answers
210 views

Modules have been signed but still prompt "insmod: ERROR: could not insert module ptusys.ko: Key was rejected by service"

My test environment: --OS: RHEL 9.2 I sign the kernel 6.2.0 what i build, it can be boot with secure boot enable. Then I try to sign a mod for secure boot, it apply fail. [root@localhost ptusys]# ...
Sec Bot's user avatar
4 votes
1 answer
500 views

Compiling external kernel module fails on Debian bookworm due to missing resolve_btfids

I am new to linux and I am trying to compile an external kernel module on a Debian bookworm virtualization (UTM). Makefile obj-m += hello_world.o PWD := $(CURDIR) all: make -C /lib/modules/`...
giannisl9's user avatar
1 vote
1 answer
66 views

Rescan for matching kernel modules

So normaly during boot or when a device is hotplugged Linux loads kernel modules for hardware based on modaliases. Is there a way to manually trigger this for a specific device or a general "...
Matombo's user avatar
  • 43
0 votes
0 answers
41 views

Am i suppose to write/read file during kernel module init/exit?

I want to saving my kernel module variable when unloading the module, then read the saved data when the module loading next time. What I am thinking is that reading the variable when calling ...
lkj0096's user avatar
0 votes
1 answer
165 views

No /sys/module/hid_apple directory

In my /etc/mkinitcpio.conf, I have added the hid_apple module, see the output of head /etc/mkinitcpio.conf below: # vim:set ft=sh # MODULES # The following modules are loaded before any boot hooks are ...
J86's user avatar
  • 383
1 vote
1 answer
49 views

Is there any benefit in disabling kvm module on bare metal that won't ever run kvm guests?

Somewhere along the line, the nested kvm kernel module became enabled by default. As hard as it may be to believe in this day and age, not everyone in the world had a need to run kvms on every host ...
guzzijason's user avatar
1 vote
1 answer
492 views

modprobe fuse doesn't seem to load module

I'm trying to load the fuse kernel module but for some reason it seems like it's not getting loaded. But I also don't get any error message. Can someone explain to me what's going on? root@my-host:~# ...
MoRe's user avatar
  • 113
1 vote
0 answers
37 views

Option Intel (R) PRO/1000 PCI-Express Gigabit Ethernet support cannot be set to y?

I tailored my system using the Linux 6.4.0 kernel and used the Intel I210 network card, but ifconfig -a was unable to recognize it. I searched online and said that I can set option Intel(R) PRO/1000 ...
just a student's user avatar
0 votes
1 answer
92 views

Linux header and extra modules on ubuntu container from an open suse micro os host with mismatch kernel versions

I have an Open SUSE micro OS host with kernel 6.5.9-1-default and an Ubuntu 22.04 distrobox container. I need to install the linux-headers-$(uname -r) and linux-modules-extra-$(uname -r) packages and ...
ademar111190's user avatar
1 vote
1 answer
99 views

Custom Kernel requirements for BTRFS root volume

I'm trying to compile a custom kernel with BTRFS support under Ubuntu 18.04. When I compile and install 4.20.70-generic everything's fine and the system starts without any problem. Btw, I can't use ...
Dude's user avatar
  • 83
0 votes
0 answers
104 views

Upgrading NVIDIA L4T (Linux 4 Tegra) GPU modules from 3.10 to Something Newer (Like 4.19 LTS)

I'm an owner of an ARM (armv7h) ChromeBook, in particular, it is the Acer ChromeBook 13 with an NVIDIA Tegra K1 GPU. I've recently have been successfully able to run Ubuntu 22.04 (Jammy Jellyfish) ...
NVIDIALinuxUser's user avatar
0 votes
0 answers
68 views

Can you remove nvidia_modeset without removing the rest of the driver?

I'm trying to prevent nvidia driver from modesetting as an integrated GPU (i915) is doing it. I'm only using this nvidia card on linux for rendering (PRIME), no modesetting. I've tried blacklisting ...
Daniel Krajnik's user avatar
0 votes
0 answers
195 views

Modprobe blacklisting using kernel command line

I have two boot configurations which more or less look like this: modprobe.blacklist=nouveau modprobe.blacklist=nvidia,<and other nvidia modules> Which serve to dynamically use the open source ...
redxef's user avatar
  • 161
0 votes
0 answers
29 views

Aver M780 ngene firmware no longer creating /dev/dvb

After a sudden restart of my server by a power failure (that my battery backup didn't catch), my tv tuner cards are no longer working. The /dev/dvb is not being automatically created. Everything has ...
ParadiseStudios's user avatar
0 votes
0 answers
40 views

Linux Kernel SKB with empty ARP bytes set to zero

I am registering a netdevice notifier in kernel using: netdev_rx_handler_register(dev, my_handler, data) Upon receiving network SKBs I check them, and if ethertype is set to ETH_P_ARP I print skb->...
Sam______'s user avatar
0 votes
1 answer
158 views

How to backport the panfrost driver on the ARM Chromebook from kernel 5.15 to kernel 5.4

I've almost completed my project : to virtualize FreeBSD on top of Linux with qemu-kvm on the ARM Chromebook. Everything works great. Even the network on the vm. One last task needs to be accomplished....
Marietto's user avatar
  • 531
0 votes
1 answer
67 views

“binutils”/Kernel 6.5.X - “Invalid –compress-debug-sections option: `zstd’”

I'm trying to build a driver for a USB to HDMI adapter... Bus 001 Device 010: ID 534d:6021 MacroSilicon VGA Display Adapter NOTE: "lsusb" output. ... but this error is occurring... Fatal ...
Eduardo Lucio's user avatar
0 votes
0 answers
83 views

Using the lp command triggers rcu_sched self-detected stall on CPU

When I use an old printer via the lp module, and after having loaded the module modprobe lp, if I output characters to the lp0 module, echo 1>lp0, my computer desktop gets stuck, (but connecting to ...
O SCAR's user avatar
  • 1
0 votes
0 answers
317 views

How can I fix my USB WiFi device not being detected after boot unless I replug it and load the driver module manually?

Preamble After searching the web and trying several troubleshhoting steps, I now require your help to my quite specific issue with an USB WiFi device: # lsusb Bus 001 Device 005: ID 0bda:8176 Realtek ...
randmin's user avatar
  • 101
1 vote
0 answers
152 views

How 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 ...
plznobug's user avatar
0 votes
0 answers
86 views

How do make install and make modules_install affect the existing kernel installed?

I installed Ubuntu 23.04 from a live USB, then obtained the source for Linux 6.5.5 and built a new kernel with some settings changed (mainly for some RT kernel experiments). I did make install but am ...
fisherdog1's user avatar

1
2 3 4 5
25