How does MMU translates kernel virtual address while the cr3 is set to a...
I am sure it is similar to the Linux kernel but on Windows, For example, when a user process issue syscall, the CPU enters kernel-mode and processes necessary operations.While the operations are...
View ArticleHow to load userland with grub in this case?
I learn usermode by tutorial.In the tutorial they built kernel image by this code:nasm -f bin -o boot.bin boot.asmnasm -f bin -o loader.bin loader.asmnasm -f elf64 -o kernel.o kernel.asmnasm -f elf64...
View ArticleTrying To Print Out All The Names Of The Processes And Their PID In Kernel Mode
I am trying to print all the names of the processes and their PID.But when I print the PID it doesn't print it.It does print all the other stuff and everything else is workingI think the problem is...
View Articleerrors with wifi on Linux [closed]
I'm a Linux newbie and while learning everything has been fun, using Linux is essentially costing me a stable WiFi connection. I can hardly even pinpoint the problem. WiFi was perfect while on...
View ArticleHow to display an image in kernel using assembly or c? [closed]
I am making an operating system in protected mode. I have finally got to the point where I want to put a background image in my operating system.I have tried finding resources on creating a video...
View ArticleSysinternals DebugView cmdline - disable Force Carriage Returns option
Unfortunately, when I launch DebugView via cmdline (dbgview.exe /accepteula /t /k /l log.txt) the Force Carriage Returns option is enabled, which splits my log-lines and breaks my log-parsing logic.Is...
View Articleload seccomp_export_bpf generated code into the kernel
http://man7.org/linux/man-pages/man3/seccomp_export_bpf.3.html how can I load the generated code into kernel? Which are possible use cases for this function?
View Article"An error ocurred while starting the kernel". Could anyone guide within the...
I've preinstalled TensorFlow 2.5.0, CUDA 11.2 and cuDNn 8.1 (according to official tensorflow, and all the checks of the system worked (gtx 1650), windows10. But when I started to load my CNN code,...
View ArticleWhich resources are available to me to help me create a simple ARM...
I've found in the past that when it comes to learning about different concepts in Computer Science, I pick them up better when I get down on my hands and knees and implement whatever I'm learning...
View ArticleWhy linux sys_unlinkat get param dfd/dirfd always -100?
Can't get fd or dirfd from params, always be -100.The kernel module is developed under centos8.3, linux kernel version 4.18.The result is -100I am a little confused why this will happen.The reason why...
View ArticleFailed to start the kernel on jupyter notebook
I have python versions 3.6.5_1 and 3.7.0installed via Homebrew.jupyter needs python3.6 for launching. It wouldn't start if I switch to python3.7.After launching, it fails to start the kernel. Giving...
View ArticleHow can I really delete a dkms module in (arch) linux?
I have a dkms module I do not need anymore and I wanted to remove it. I did sudo dkms remove ... and it removed it. But when I updatet to a newer kernel, my package manager tried to build that module...
View Articleubuntu modules and kernel disabling module loading - Security question
i am not sure about the security-aspect of loading all required modules for my ubuntu at boot time by writing the required modules in /etc/modules and blocking all other module-loading by enabling the...
View ArticleWhere and When Linux Kernel Setup GDT?
I have some doubt regarding GDT in linux. I try to get GDT info in kernel space (Ring0), and my test code called in system call context. In the test code, I try to print ss register (Segment Selector),...
View ArticleHow does the kernel use task_struct?
I am a student doing research involving Linux processes, and I need to learn more about them to proceed with my experiment. In reading a couple books and things online, I've come across task_struct,...
View ArticleInitialization and Cleanup are swapped around in Kernel Module
Currently studying kernel modules, and we tasked with writing a small Hello World / Bye World kernel module (in C). Got the idea pretty quick and had a rough idea of what I should do.Needed to make the...
View ArticleWhat Kernel Threads are Responsible For Sending Network Packets in the Linux...
I am reading the source code of Linux kernel trying to figure out how the Linux kernel sends the network packets, after many hours, I can only see the flow of network packets walking through TCP Layer,...
View ArticleGPIO names on motherboard
How to find GPIO on my motherboard. I want describe gpio in device tree like this:&gpio { status = "okay"; gpio-line-names = /*A0-A7*/ "BMC_CPLD_FPGA_SEL","","","","","","","", /*B0-B7*/...
View ArticleLinux kernel modules with no __init function
I'm reading through the book Linux Device Drivers, by Corbet, Rubini & Kroah-Hartman,p.31 "The use of module_init is mandatory." This is all well and good but when I look at the source code for...
View Articlesetting stack limit with ulimit in kernel 5.x
Found a very weird situation.setting ulimit with ulimit command:ulimit -s 5100000ulimit -c 1000000ulimit -n 4096checking ulimit - all good[lt@lt-hkg1-tsr01 ~]$ ulimit -acore file size (blocks, -c)...
View Article