Cross-compiling c kernel from x64 system to x32 binary
I'm trying to create an OS kernel in educational purposes.Using this guide I've written a bootloader in fasm:use16org 0x7c00start: jmp kernel_startKERNEL_OFFSET equ 0x1000gdt_start:gdt_null: dd 0x0 dd...
View Articlegrubby fatal error: unable to find a suitable template
So I upgraded kernel yum -y update kernel on my AWS EC2 base image, and I get the following:Running Transaction Installing : kernel-2.6.32-504.3.3.el6.x86_64grubby fatal error: unable to find a...
View ArticleDual Boot Linux onto Mac [closed]
TLDR; I've created a bootable Ubuntu 16.04 drive on a USB stick, and installed rEFInd onto my mac, but am getting a 'kernel abort' message when I try installing ubuntu. Maybe I chose the wrong distro,...
View ArticleHow can i manually trigger kernel Null pointer dereference error?
I am working on an application for which I need to trigger a kernel null pointer de-reference error and check that in logs.I'm not familiar as to how to do that.
View ArticleSoftware Security Testing of Existing Kernel Module - How To?
Let's say that i found the codebase for a specific Kernel module.I would like to perform software checks, i.e., from a security standpoint of said module.Q1:Should i compile the module from scratch and...
View Articlewhy preempt_disable before calling do_softirq in ksoftirqd
I am confused by preempt_disable/preempt_enable in the following code from ksoftirqd. It is a kernel thread, but why preempt must been disabled during do_softirq()?for(;;) {...
View Articlewhy does ld linker work with pointer and array in different ways
I have such asm code:format ELFpublic _startextrn _kernel_mainsection ".text" executable_start: movzx edx, dl push edx push esi push ebx call _kernel_main @@: jmp @b;section ".data" writableand such ld...
View Articlelaravel set schedule for run command in kernel
im using laravel 6 and i want to set a schedule to run a command file. i already create command code and jobs. but i still confuse how to set schedule for run it.I want the schedule to run with...
View ArticleTensorflow: ImportError: No module named 'win32api'
I installed already all the packages required to run tensorflow but still I get this error in jupyter notebook kernel. How can I resolve this issue?Traceback (most recent call last): File...
View ArticleImpact of kernel on system call
I have two different machines:Machine 1:# unameLinux# uname -r2.6.34.15-WR4.3.fp_x86_64_standard-00239-g7934205Machine 2: # unameLinux# uname -r4.4.217-pc64-distro.git-v2.102-3-rcA process "X" is...
View ArticleHow are virtual addresses corresponding to kernel stack mapped?
Each process's virtual address space comprises of user space and kernel space. As pointed out by many articles, the kernel space of all processes is mapped to same physical address in memory i.e. there...
View ArticleWindows Driver: prevent context switch while executing critical piece of code
I am currently working on a simple driver that is communicating over a serial port. This communication takes only very short time but it cannot be disturbed by anything until its over because there is...
View ArticleIlluminate\Database\QueryException SQLSTATE[23000]:
** Integrity constraint violation: 1048 Column 'NomComplet' cannot be null (SQL: insert into reclamation (NomComplet, Email, Message) values (?, ?, ?))**Form :enter image description hereRoute : enter...
View Articleopenwrt 19.07 intel mips kernel 4.9.218 boot hang and then reboot after or...
My board with openwrt 19.07 intel mips kernel 4.9.218 boot hang and then reboot after or when /etc/rc.d/S10boot sometimes, folowing is the console logs.I am not sure who cause the reboot, and how to...
View ArticleIt seems that "hrtimer" soft interrupts increased rapidly when...
I found that the count of "hrtimer" soft interrupts increased rapidly (thousands times per second) when std::waitfor(&cv, 100ns) is loop invoked, which could be identified by cat...
View ArticleHow to specify exact release for the package for apt-get install command?
Could you please advise how can I specify package release with apt-get install command on Ubuntu OS?For example, I can install the exact version of kernel with the command apt-get install...
View ArticleHow to resolve this error: LLVM ERROR: Error parsing inline asm
I am getting the following error during build process:CC hal/mmu.o<inline asm>:1:2: error: instruction requires: armv6t2 WFI ^LLVM ERROR: Error parsing inline asm{standard input}: Assembler...
View ArticleBuildroot and Qemu
I'm using buildroot to compile a minimalistic linux with a 4.19-rt kernel. It is supposed to run on a raspberry pi 3b (arm processor). Additionally I want to run it on a x86_64 linux computer and found...
View ArticleDynamic memory allocation in XV6 kernel
I want to implement a Queue struct (using Node struct, similiral to the C code here) in files Queue.c and Queue.h in order to store processes in proc.c in XV6 kernel.I don't know how to to do it, since...
View ArticleThorlabs Kinesis killing Jupyter kernel
I am trying to use a Python script in a Jupyter notebook to control a Thorlabs Kinesis Position Aligner. My colleague wrote the script and it works fine on their computer, but when I run it, the kernel...
View Article