Showing error while using losetup in ubuntu 18.04
sudo losetup /dev/loop0 floppy.imgI am using this command in my bash file. actually, I am trying to build a tiny Operating System.Error Message:losetup: floppy.img: failed to set up loop device: No...
View ArticleFaster alternatives too WINAPI ReadProcessMemory
I am making an application that reads a targets process memory. The memory that I read needs to be as much up to date as possible and the total memory read time preferably <1ms (right now im...
View Articlelinux kernel source tree in c include directive -- how it works
I am trying to check how include directive in c search linux source tree for including kernel header files. For example in my /usr/src/linux-header-5.7.0-kali-common folder which contains subdirectory...
View ArticleKernel died when loading a dataset in Python: why does it happen?
I am trying to load a dataset of 7000 .mat files in Python as a 7000-d tensor with each entry of shape 100 x 100 x 100 x 3. The whole dataset is less than 80 MB. I am using Spyder. The code is as...
View ArticleVisual Studio can not start debug session when debuging kernel driver
When I try to debug my KMDF driver from Visual Studio 2013, I get following errorWindows Debugging Extension for Visual Studio Could not start debug session, error 8004005: Unspecified errorBefore I...
View ArticleGDM won't starts in Arch Linux using Linux Clear Kernel without...
Is anyone able to help?When library xf86-video-intel isn't installed, Kernel Clear with Gnome won't starts GDM.gnome-shell[524]: Failed to create backend: No drm devices foundgnome-session-binary[515]:...
View ArticleLinux kernel: how to wait in multiple wait queues?
I know how to wait in Linux kernel queues using wait_event and how to wake them up.Now I need to figure out how to wait in multiple queues at once. I need to multiplex multiple event sources, basically...
View Articledir base swapping (Cr3) and Windows kernel
I have a hypervisor that virtualizes the currently running system ( OS in my case is Windows). I tried to run a code below and it works perfectly. The function is executed in VMX Root mode when vm-exit...
View ArticleSimple Bootloader to load bin
I am new to things like OS dev, but I would like to ask you if there is any simple bootloader or tutorial how to load bin file (which contains custom OS).I read lot of tutorials about bootloaders, but...
View ArticleUnderstanding Android Runtime (ART) internals [closed]
I've been tyring to research about Art (Android Runtime). I've read the first 2 pages from google, specially the Android's page about it. The best articles I found about ART only gives a simple...
View ArticleWriting to Linux pipe faster than file, but on a kernel level, why?
I am looking at speed of writing to file vs a pipe. Please look at this code, which writes to a file handle unless there is a command line argument, otherwise it writes to a pipe:#include...
View ArticleI added this "AW8738 High Performance 4W Smart Amplifier driver" but my...
Error: ../arch/arm64/boot/dts/qcom/msm8953-audio_rosy.dtsi:147.5-20 syntax errorFATAL ERROR: Unable to parse input treelines are140: qcom,wsa-max-devs = <2>;141: qcom,wsa-devs =...
View ArticleDoes the BIOS copy the 512-byte bootloader to 0x7c00
I am amidst writing a kernel; before writing such a complicated thing, I thought it'd, not only, be helpful but also imperitive to do some theoretical reading of kernels, bootloaders, registers, BIOS,...
View ArticleC - Linux create sound in kernel mode [closed]
I need o write a kernel mode driver that plays a note when a key is pressed. I can capture keystrokes but I have no idea how to play sound from kernel. What do I have to do to play a sound? I am brand...
View Articleset net.ipv4.tcp_timestamps=0 in Pod
I would like to set net.ipv4.tcp_timestamps=0 in Pods of my k8s cluster, However it gives me error:sysctl: cannot stat /proc/sys/net/ipv4/tcp_timestamps: No such file or directory"Same issue with...
View Article(WinDbg) How can I switch back to the kernel context after I've switched into...
Is there a way to switch back to the original context after I've switched to a process context with WinDbg?I've used these commands:To get the process address:!process 0 0 myprocess.exeand then to...
View ArticleWhat is the memory before 7c00H used for?
If the code for bootloader is stored from memory adrress 0x7c00, then what is stored in the preceding memory and what is it used for?I have just started learning about assembly and bootloader and found...
View ArticleRead a percpu_ref count without changing it to single shared atomic_t counter
Lets say I have a percpu_ref structure which I had initialized and have been using, you know put and get on it.Is it possible to do a read on the count? Something...
View ArticleHow can i track process that requests cma_alloc on linux kernel?
I constantly get alloc_contig_range: [x, x) PFNs busy messages in dmesg.As i searched it is related to Linux CMA framework, so i want to know which driver or process cause this problem.in other word i...
View ArticleBlock file copying from a folder in Windows 10
I develop software that is supposed to protect files located in "special" folders on the drive from being copied out (Windows 10). The user should be able to open the file with an application present...
View Article