Skip to content
Advertisement

Tag: kernel

Generate raw binary from C code in Linux

I have been implementing just for fun a simple operating system for x86 architecture from scratch. I implemented the assembly code for the bootloader that loads the kernel from disk and enters in 32-bit mode. The kernel code that is loaded is written in C, so in order to be executed the idea is to generate the raw binary from

“Linux aio” and “Linux native aio” are the same thing?

I’m recently digging into linux io model, and I frequently hear that like windows IOCP, linux has its own aio model implementation: Glibc aio and kernel aio. Question: (1) when people say “linux native aio”, which model is indicated? (2) I hear 2 different terms, “linux aio” and “linux native aio”. Are they the same thing, or indicating different implementations?

Security concerns around KSM

When using KSM (Kernel Same-page Mapping), if two completely identical pages of memory are owned by two completely isolated processes, for example, two virtual machines, will those pages be merged? Or will they remain separate due to the fact that each process is isolated from each other? I’m confused because the VMs boil down to a single process on the

Each process has its own kernel stack, right?

I saw some SO questions come with a conclusion: Each process has its own kernel stack. But how about this code? Or how about this one? Whether does this program also have a corresponding kernel stack? More: For the 1st code above, I tested it like below. Press Ctrl+C to stop it, and see that system time is less than

sys/types.h: No such file or directory

I am trying to compile module but get this error. Here is my module file headers And my Makefile I have tried to search for this file Here are results I tried to set it as #include “/usr/include/sys/types.h” but got following error I am using Kali Linux(Debian) AMD64 platform What is wrong ? Thanks SOLVED Sorry this was my fault,

Advertisement