Questions tagged [linux-kernel]
Questions about Linux kernel and Linux kernel related topics eg. implementation details such as system calls, kernel customization, etc. For Linux user space topics which do not involve kernel details, [linux] or distribution tag are more suitable.
3,736 questions
0
votes
0
answers
6
views
Launching I2C communication from within ISR
I have an external I2C device that signals when data is ready using a pin.
I want my Linux SBC to trigger I2C transfer routine after GPIO interrupt triggers. How would this be done within kernel space?...
6
votes
1
answer
894
views
Are Linux kernels compiled with UBSAN turned on?
For those who don't know, UBSAN is Undefined Behavior Address Sanitizer, and it places a whole bunch of checks in a compiled piece of code to detect mistakes, such as out-of-bounds access and various ...
0
votes
0
answers
28
views
Linux kernel “BUG: Bad page state / Bad page cache in process python” during PyTorch distributed training (NVidia 5090 + Ubuntu 22.04) [closed]
I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads .
The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
1
vote
2
answers
58
views
How to capture boot steps
I have a linux-box.
My hdd is nvme, hence boot is fast. I need to analyze each line of after grub.
Can I pass a kernel parameter to capture my boot lines?
1
vote
0
answers
30
views
Why does Linux CFS need a periodic timer interrupt more frequent than the time slice?
OSTEP says
Note that CFS utilizes a periodic timer interrupt, which means it can only make decisions at fixed time intervals. This interrupt goes off frequently (e.g., every 1 ms), giving CFS a chance ...
1
vote
0
answers
41
views
How to use dm-mirror, or 'dm-raid raid1', with dmsetup only (no LVM automation)?
The goal is to create a mirror (aka raid1) device from two devices (to be mirrored), and (if needed) a third device that serves as the dirty region log / metadata / whatever. That, without using LVM ...
1
vote
1
answer
65
views
file-nr keeps increasing forever
I have a cloud VM running linux-yocto 6.17 and a few daemon processes--postfix, dovecot, rspamd, nginx, sshd, fail2ban and redis.
Ever since upgrading from 6.11 to 6.17, I've noticed that /proc/sys/fs/...
0
votes
1
answer
49
views
Is there any way to trace how a keypress is processed from beginning to end in Linux?
I would like to find out why my power button press isn't handled correctly. I've set power manager in XFCE4 to 'ask' me, but all that happens is I'm getting logged out of my session. I have contacted ...
2
votes
1
answer
34
views
systemd-networkd drop-in files for configuring network adaptors
The Issue
I am reading this systemd documentation
I have the following files:
/usr/lib/systemd/network/80-wired.network
[Match]
eth0
[Network]
Address=192.168.3.40/22
Gateway=192.168.0.1
/usr/lib/...
0
votes
0
answers
19
views
initramfs images gzip compressed on Oracle Linux 8 UEK6 systems but not UEK7
I'm troubleshooting /boot usage differences between Oracle Linux 8 systems that use different UEK kernel streams.
On some hosts, the initramfs images are gzip-compressed, while others produce ...
1
vote
1
answer
394
views
Can I deny the root access to the user keys in the Kernel key retention service?
I know the Linux kernel has a key retention service even though I haven't used it myself.
I'm constructing a system where anybody with root cannot check the keys in that service that were registered ...
0
votes
0
answers
28
views
Linux boot on Verdin iMX8MP stops after “Freeing unused kernel memory” when booting via TFTP
I am experiencing a problem when booting Linux on the Verdin Dahlia Carrier Board, where the boot log only goes up to:
#################################################################
###########...
1
vote
1
answer
38
views
Alpine linux failed kernel upgrade and unresponsive keyboard in recovery shell
I tried to upgrade my alpine linux kernel version from linux-lts to linux-stable because support for a device I am installing was added in a newer kernel version.
I changed the apk repositories from ...
1
vote
1
answer
59
views
Why is there a discrepancy between the stack address in /proc/PID/maps vs. /proc/PID/stat?
Why does there appear to be a discrepancy between a process stack address within /proc/PID/maps compared to the stack start address within /proc/PID/stat, where the latter is a smaller subset of the ...
0
votes
1
answer
108
views
Intel Core Ultra 9 275HX throttles to ~1.8 GHz under sustained load on Linux (Lenovo Legion 7)
Hardware / OS:
Laptop: Lenovo Legion 7 16IAX10
BIOS: RXCN23WW (from sudo dmidecode -s bios-version)
CPU: Intel(R) Core™ Ultra 9 275HX (from lscpu)
Distro + kernel: EndeavourOS / Linux 6.17.2-arch1-1
...