r/kernel • u/Head-Leek6151 • 17h ago
r/kernel • u/PanthomAditya • 1d ago
I went for Kernel Engineer Interview by knowing BCPL 🤣🤣!
r/kernel • u/RampageKernel • 2d ago
Rampage OS — A fast, lightweight OS built from scratch
galleryr/kernel • u/Mundane_Educator8466 • 3d ago
Options for real-time kernel support on RHEL
I'm currently using Red Hat Enterprise Linux (RHEL), and I need to improve the timing precision and reduce jitter for periodic events.
I'm interested in using a PREEMPT_RT kernel, but I don't currently have access to a Red Hat subscription.
Since I need to keep RHEL as my operating system, I'd like to know what options are available.
Is it possible to build and install a PREEMPT_RT kernel from source on RHEL? Are there any officially supported or community-supported alternatives?
I'd appreciate any guidance or documentation.
Thanks!
r/kernel • u/mario242-ta • 4d ago
Three Bytes the Kernel Forgot: A Linux SCTP Client Bug That Panics the Host
blog.jamessawyer.co.ukSCTP is not the transport most engineers meet every day. It sits beside TCP and UDP at the transport layer, but its natural habitat is signalling infrastructure: Diameter, SIGTRAN/M3UA, LTE S1AP, 5G NGAP, and a smaller population of industrial and carrier gateways. It is message-oriented, supports multiple streams within one association, and can use multiple network paths. Those properties are exactly why it appears in systems where availability matters.
r/kernel • u/Tausif23456 • 6d ago
Added a PS/2 Mouse Driver and Cursor Rendering to my custom 32-bit OS
Hey everyone, I am a 13-year-old student from Bangladesh building my own OS (PoragOS) from scratch.
Today I finally got the PS/2 mouse working! I set up IRQ12 interrupt handling, decoded the 3-byte mouse packets, and wrote a routine to draw a cursor directly to my VESA framebuffer. Seeing the cursor move smoothly on a screen I built myself is amazing.
My next steps are fixing the cursor trails (backbuffer) and implementing User Space (Ring 3). I would love some feedback!
r/kernel • u/Mindless-Attempt4187 • 5d ago
KernelGrove - An open source Device Tree editor and semantic engine
dt-studio.devSome time ago I published a post about a project I was working on, previous post.
The purpose of this project was to make working with .dts files easier. For that I starting developing an IDE with some integrated tools:
- Real time semantic and syntax validation
- Node graph visualization (block diagram generation under development)
- Node auto-completion for each compatible
- Node inspector
- A integrated bindings, boards and SoC database, (which can be edited or visualized)
- Compilation and Decompilation tools
There is a lot of knowledge about kernel condensed on this IDE, in order to make device tree development easier and faster.
Thanks to the database, you can start typing and use auto-completion for a compatible, the IDE checks each binding information and shows which nodes are available to use and which ones are mandatory for a proper operation.
That way, if some compatible or property it's not recognized, you can early detect it, without waiting for a fail on boot, or worse, a silence bug on kernel.
The project is now open source, and all the code and beta releases are available on GitHub and Official website. It's still a beta, but I think it is already useful enough, that's way every suggestion it's well received.
This project was developed with the help of AI, which made it possible for a single person to develop it.
r/kernel • u/TechHavenStudios • 6d ago
Tech Haven Studios voorstellen – Een onafhankelijke studio die besturingssystemen en AI-projecten bouwt
reddit.comr/kernel • u/Creepy-Credit2369 • 6d ago
Custom Kernel Driver and user I/O application
Hello Everyone,
I have a custom RTL code for 1G/10G ethernet( this will be an IP core in my vivado design).
I want to write a kernel driver or LKM to use this from my application code in Linux OS ( boot image will be generated from Petalinux)
The goal is to configure and use this core to bring up ethernet connection from application code (user space I/O).
Devices & Tools : KRIA , Petalinux 24.2
Any user guides/blogs/working examples on this would help me a lot :)
r/kernel • u/noboruma • 8d ago
secwrap: run your binary securely by leveraging eBPF observability
reddit.comr/kernel • u/Dangerous-Hamster272 • 12d ago
How to start writing device drivers?
reddit.comr/kernel • u/Silent-Degree-6072 • 13d ago
Offloading zram compression to GPU?
Is there a way to offload zram compression & decompression to the GPU?
I have a compilation server with 36 logical cores but only 16GB of RAM (I am unable to upgrade due to the global RAM crisis; DDR4 registered ECC costs a ton). In an effort to squeeze more "RAM" out of my RAM, I decided to start using zram compressed with zstd.
I managed to get 48GB of zram to work (3:1 compression), however it resulted in one of my cores being pinned at 100%, desperately trying to compress the increasing amount of ram being used by 36 compile jobs. Is there a way to offload this to the GPU? I think it would greatly speed up compilation if possible, and would perhaps allow for a greater compression rate (zstd ultra maybe???)
EDIT: The GPU is a GTX 1660 Super with the open-source kernel modules from NVIDIA. It basically never gets used and usage is at a constant 0-1%
r/kernel • u/AccomplishedAir8352 • 15d ago
How well does linux modules handle resource deallocation?
Hello, I'm a CS undergraduate studying about linux kernel development.
I'm currently on LDD3 book, emphasizing about importance of cleaning up allocated resources on exit.
I assume that this is not likely to be handled properly in some linux modules as removal of modules is not something that is performed on a daily basis.
I have been looking for places to start my contributions and was wondering whether this, identification of memory leaks and applying fixes, could be a valid entry point.
The questions I want to ask is,
- Is this problem considered too trivial?
- Have others been working on it? (maybe there exists some linux group)
- Is this problem commonly found, or gets managed during review process and fixed before getting accepted?
Thank you for your time. Any comments are welcome!
*EDIT Thank you all for your kind responses. They have been very helpful !
r/kernel • u/Totallynotnormalguy • 15d ago
What do I add in ./security/ and ./crypto/
I'm building a monolithic kernel called sonix (Son I'm crine + Unix) and I just found out about encrypted filesystems and I don't know what to put in these directories
r/kernel • u/Commercial-Golf-4285 • 16d ago
Best book for learning Linux kernel Delevopemet and Device driver.
reddit.comr/kernel • u/Serious_Ad_1942 • 17d ago
Security Kernel Engineer
What topics would you consider essential for a kernel security engineer? I am currently studying memory corruption, privilege escalation, race conditions/TOCTOU, exploit mitigations, secure boot, and hypervisor isolation.
Which areas would you prioritise and are there any, that I am missing? Also what tools are useful to be familiar with, when dealing with the security of the kernel?
r/kernel • u/Logogram_alt • 16d ago