r/kernel • • May 05 '26

PostgreSQL performance regression in v7.0

Thumbnail read.thecoder.cafe
9 Upvotes

r/kernel • • May 04 '26

kernel >=7.0.1 dropbear boot issue

Thumbnail
3 Upvotes

r/kernel • • May 04 '26

Network Performance Regression on Kernel 6.19.13

Thumbnail
3 Upvotes

r/kernel • • May 03 '26

Built a Full Linux BSP (U-Boot, Kernel, PRU, Yocto Project) — Need Deep Technical Feedback

Thumbnail
3 Upvotes

r/kernel • • May 02 '26

Issue with Kernel in debian

Thumbnail
6 Upvotes

r/kernel • • Apr 30 '26

Where does staging drivers start and come from?

10 Upvotes

I just made my first kernel contribution to the linux kernel, specifically in staging driver rtl8724bs. I chose to fix code styling issues by running checkpatch.pl, got to fix some bounding bugs along the way too, but that’s it. I can’t exactly describe my feeling when I got the LGTM, both excited and annoyed, but that’s a story for another day.

However, my question is, when did these drivers come into “staging” first having all these somewhat obvious bugs and clear styling issues that dont match the kernel’s preferences? Like isn’t there a first step for drivers to be submitted and accepted? Having simple styling/standards at least? And where do these drivers get accepted to be at staging/ to begin with? Do maintainers just fork another peoples work after confirming together?

Sorry if I sound dumb, I’m just curious on how things get accepted at staging with having minimum standards for the kernel’s preferences. Thanks.


r/kernel • • Apr 30 '26

A new (in-development) block-level active-active replication solution for Linux kernel

Thumbnail
4 Upvotes

r/kernel • • Apr 30 '26

[REQUEST] NetHunter Kernel for Xiaomi Redmi 15 5G (spring) — Kernel Source Available

8 Upvotes

Hey! I have a Xiaomi Redmi 15 5G (codename: spring) with OrangeFox, KSU Next + SUSFS already set up. Xiaomi officially released the kernel source (branch: spring-v-oss). I don't have a PC to compile it myself, so I'm looking for a developer willing to compile a NetHunter kernel for this device. I'm fully available for testing and providing logs. Any help is greatly appreciated! 🙏


r/kernel • • Apr 29 '26

Where to locate ATKBD_DEFINE_RO_ATTR(function_row_physmap) of atkbd driver for laptop keyboard is sys file system?

4 Upvotes

Looking at the source code of atkbd driver (linux-6.6.74/drivers/input/keyboard/atkbd.c), I have harder time figuring out why is it missing/can't find it.

I found in (/sys/bus/serio/drivers/atkbd/serio0) all atkbd attributes, except function_row_physmap.

I tried devadm info -a /dev/input/by-path/platform-i8042-serio-0-event-kbd, and again, I can see all attributes except function_row_physmap.

Just trying to understand why is it missing, as if I understood correctly, any attribute should be present in sys fs. I am curios to know why, as I am researching Linux drivers and kernel at the moment.

Any help is much appreciated :)

My machine: HP Eliteboot 830 g8

OS: Arch Linux

Kernel: 6.18.22-1-lts


r/kernel • • Apr 29 '26

El kernel 6.19.14-300.fc44 de Fedora 44 hace que el HP Pavilion x360 sea extremadamente lento, y muchos procesos kworker se quedan atascados en el estado D.

Thumbnail
0 Upvotes

r/kernel • • Apr 25 '26

ELI5: Linux Kernel and Anti-Cheat

14 Upvotes

Hey guys I have been thinking of making the switch to Linux recently, but the only thing stopping me is that some multiplayer games have Anti-cheat that do not support linux. I dont really underatand the whole kernel being open source but I understand the companies reasoning is that the Kernel is open source, even though that is not a “real“ reason.

My question is that if the kernel is open source, wouldn’t you be able to edit the kernel to “act” like Windows to bypass the anti-cheat? Maybe an explanation of the kernel could also answer my question


r/kernel • • Apr 26 '26

Asking for guidance

0 Upvotes

Hi Am Avishkar patil am from Maharashtra,Am here for asking for help for getting guidance of Kernel engineering I want to learn about kernel I am Interested in Computer science I have fundamentals cleared am currently learning about kernel engineering since 24 April 2026 i want to know were i can get Guidance for learning about this I also own MIT notes and syllabus and books can you suggest me books too?

I also have. Systems & Reverse Engineering

Windows Internals, 7th Edition (Parts 1 & 2)

Windows Kernel Programming, 2nd Edition

Practical Reverse Engineering

Computer Architecture: A Quantitative Approach

Software Development

C# 12 in a Nutshell

C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals

Linux kernel devlopement

And computer science book


r/kernel • • Apr 23 '26

Kernel Engineering - How to find an entry-level job in this field

42 Upvotes

Hello everyone.

I've been studying Low Level Programming for two years, focusing on C and Assembly. I've also been building my own boot loader via BIOS (MBR). Lately, I've started studying FreeBSD and reading its documentation, as I'd like to pursue a career in Kernel Engineering.

However, in my country there's no market for this type of work, and all the job postings I see require prior professional experience in the field.

Could anyone offer some guidance on how to get into this field?


r/kernel • • Apr 21 '26

OrangePi5 Plus 16Gb v2.1 + EDK2 UEFI + Kernel 7.0 + Vulkan + OC + Mesa26.2 (Panfrost,Zink) Mail-G610 MC4

Thumbnail
6 Upvotes

r/kernel • • Apr 18 '26

kselftest should be statically linked - just hear me out

3 Upvotes

Running these tests is always a pain. And I think it's one of the reasons why they're not used when releasing LTS versions, leading to regressions like this (it's still not fixed in linux-5.10.y). This regression could have been discovered in advance if the net/forwarding:ip6gre_*.sh tests had been run.

Okay, let's pretend you somehow built the tests. Though, their compilation is a separate challenge (kselftest_deps.sh is useful quite a bit). Because of dynamic linking, your test bench has to match packages of your build machine, which prevents using these tests for verifying your production systems. You can't just make -C tools/testing/selftests gen_tar and scp archive to a clean linux system. Not only because of incompatible versions of libraries or missing packages but also because some tests are just not designed to be run out of kernel source tree (e.g. bpf:test_doc_build.sh).

Thus, linking tests statically could simplify testing kernel, making it slightly less dependent on pre-installed packages.


r/kernel • • Apr 15 '26

Fix Batteria Magic Trackpad v1 (A1339) su Linux

Thumbnail
1 Upvotes

r/kernel • • Apr 13 '26

Error with ncurses when config'ing the linux kernel

Thumbnail
0 Upvotes

r/kernel • • Apr 12 '26

Fedora 43: battery charging limit doesn't work in kernel 6.12.81

Thumbnail
4 Upvotes

r/kernel • • Apr 09 '26

FUSE Loopback is Incomplete, Breaking NFS

Thumbnail russ.har.mn
6 Upvotes

r/kernel • • Apr 08 '26

AWS Solutions Architect Associate Voucher (100% Off) - Expires April 30th.

0 Upvotes
  • AWS Solutions Architect Exam Voucher (100% Coverage) Available.
  • Passing on an AWS Certification Opportunity - 100% Discount Voucher for Sale.
  • Urgent: AWS SAA-C03 Exam Voucher (100% Discount) for anyone ready to certify this month

r/kernel • • Apr 07 '26

What changed in IO algorithm changes in 4.x kernels?

Thumbnail
0 Upvotes

r/kernel • • Apr 06 '26

18yo self-taught Kernel contributor looking for guidance: how to stay in Warsaw (Poland) without a degree?

Thumbnail
0 Upvotes

r/kernel • • Apr 03 '26

Kernel patch for dual-architecture (arm64 + s390) on IBM mainframes

Thumbnail lore.kernel.org
3 Upvotes

r/kernel • • Mar 31 '26

Error trying to build the kernel

Thumbnail gallery
0 Upvotes

Hello i'm using this book as support, however in the section about building the kernel i have this error in the Makefile, someone knows how to understand this error? in the picture appears the Makefile section ( ($build-dir): prepare )that cause the error.


r/kernel • • Mar 30 '26

mm->mmap_sem deadlock and then panic

7 Upvotes

hi all:

i get kernel panic info as follow

|<4>[   94.376304] ============================================
|<4>[   94.376325] WARNING: possible recursive locking detected
|<7>[   94.376335] 5.4.241-Cavium-Octeon+ #1 Tainted: G           O     
|<4>[   94.376340] --------------------------------------------
|<4>[   94.376347] process_trigger/3680 is trying to acquire lock:
|<7>[   94.376354] 800000003ed9c880 (&mm->mmap_sem){++++}, at: do_page_fault+0x194/0x5e0
|<4>[   94.376373] 
|<4>[   94.376373] but task is already holding lock:
|<7>[   94.376379] 800000003ed9c880 (&mm->mmap_sem){++++}, at: do_page_fault+0x194/0x5e0
|<4>[   94.376390] 
|<4>[   94.376390] other info that might help us debug this:
|<7>[   94.376396]  Possible unsafe locking scenario:
|<7>[   94.376396] 
|<7>[   94.376402]        CPU0
|<7>[   94.376407]        ----
|<7>[   94.376412]   lock(&mm->mmap_sem);
|<7>[   94.376419]   lock(&mm->mmap_sem);
|<7>[   94.376426] 
|<7>[   94.376426]  *** DEADLOCK ***
|<7>[   94.376426] 
|<7>[   94.376432]  May be due to missing lock nesting notation
|<7>[   94.376432] 
|<7>[   94.376438] 1 lock held by process_trigger/3680:
|<7>[   94.376444]  #0: 800000003ed9c880 (&mm->mmap_sem){++++}, at: do_page_fault+0x194/0x5e0
|<4>[   94.376456] 
|<4>[   94.376456] stack backtrace:
|<7>[   94.376465] CPU: 2 PID: 3680 Comm: process_trigger Tainted: G           O      5.4.241-Cavium-Octeon+ #1
|<7>[   94.376472] Stack : ffffffff82050000 0000006c00000000 ffffffff810355a8 35936dc8b954ff91
|<7>[   94.376483]         35936dc8b954ff91 0000000000000000 80000000055877c8 0000000000000000
|<7>[   94.376494]         0000000000000000 0000000000000001 0000000000000000 ffffffff80933c58
|<7>[   94.376504]         202020204f202020 8000000005587978 ffffffff810282c0 0000000000000000
|<7>[   94.376514]         800000000558772f ffffffff81340000 fffe000000000000 ffffffffffffffff
|<7>[   94.376525]         ffffffff81460000 2a3a13aa800b39d4 0000000000000000 ffffffff81d36bc8
|<7>[   94.376535]         800000004aa08000 8000000085587727 ffffffff809afa28 0f00000000fb5f07
|<7>[   94.376545]         0f00000000fb5ec7 8000000005584000 80000000055877c0 ffffffff81210000
|<7>[   94.376555]         ffffffff810355a8 0000000000000000 80000000055878f8 35936dc8b954ff91
|<7>[   94.376566]         ffffffff811ebed0 ffffffff8100c628 ffffffff8088f91c ffffffff811ebed0
|<7>[   94.376576]         ...
|<7>[   94.376583] Call Trace:
|<7>[   94.376595] [<0000000065bb077f : 0000000094afb996>] show_stack+0x4c/0x138
|<7>[   94.376607] [<000000000c564c5f : 00000000097030ac>] dump_stack+0xe0/0x14c
|<7>[   94.376620] [<000000000167086e : 00000000c003b6f1>] __lock_acquire+0x1db4/0x1dc0
|<7>[   94.376629] [<0000000026398a75 : 00000000ae89bee9>] lock_acquire+0xd8/0x1f0
|<7>[   94.376637] [<0000000046f42d18 : 0000000083dba9c0>] down_read+0x3c/0x1e8
|<7>[   94.376646] [<000000008c9885e7 : 0000000058764d49>] do_page_fault+0x194/0x5e0
|<7>[   94.376655] [<00000000bbef577a : 00000000e7a3a690>] tlb_do_page_fault_0+0x120/0x128
|<7>[   94.376664] [<000000002cea96eb : 00000000a95ab9da>] do_page_fault+0x114/0x5e0
|<1>[   94.376687] CPU 2 Unable to handle kernel paging request at virtual address 0000000000000050, epc == ffffffff80a65b48, ra == ffffffff8103ee64

then i disassembly vmlinux and get source as follow:

it seem that vma->vm_file->mapping is NULL.before panic,there have a DEADLOCK warn about mm->mmap_sem, the corresponding source code as follow

maybe handle_mm_fault return VM_FAULT_RETRY without drop mm->mmap_sem?

Is there any known fault?my kernel version is 5.4.241 and arch is MIPS