GET WARNING: modpost: missing MODULE_LICENSE() when LKM is Compiled with...
I have a LKM named RtmNetlinkLKM.c and compiles and run fine. The moment I update its Makefile to compile with other src files, it starts giving warning:WARNING: modpost: missing MODULE_LICENSE()The...
View ArticleTo Check if a .exe File is an installer application or a normal windows...
I need to write a c/c++/kernel driver program where I can check if an .exe file is an installer or an normal application (For Example: If I have an .exe file which is chorme.exe then it is an normal...
View ArticleHow to detect memory leak in linux kernel
I have configured kmemleak in linux kernel 5.4 with the following details in menuconfig:(*)kernel memory leak detector(16000)kmemleak memory pool size.Through boot logs I'm getting:kmemleak: kernel...
View ArticleHow to log something to pstore in the linux kernel with C code?
The pstore is a mechanism for logging things that is persistent, so it's used a lot in Android phones.I want to use this to log things in the kernel, since my phone is hard to debug. Is there some code...
View ArticleI installed the iso image of android-86x and put it in VirtualBox, but an...
I installed the iso image of android-86x and put it in VirtualBox, but an error pops up at startupenter image description heree-lunev@debian10-macmini:/sbin$ sudo /sbin/vboxconfig vboxdrv.sh: Stopping...
View ArticleTo Determine if a .exe file is an setup file
I need to write a c/c++/kernel driver program where I can check if an .exe file is an Setup file where I can install new application in my computer (Like an .MSI file) or an normal application (For...
View ArticleHow clear flag in DEVICE OBJECT
Are these two Code equal?(clear flag)ClearFlag(NewDeviceObject->Flags, DO_DEVICE_INITIALIZING);NewDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
View ArticleLinux-ftrace: why code profiling is achieved through mcount function (gcc...
With this question I aim to do a survey about instrumentation techniques used by linux ftrace.According with ftrace.txt:If CONFIG_DYNAMIC_FTRACE is set, the system will run withvirtually no overhead...
View ArticleHow to reset kcov buffer
In kcov, how can I safely reset the *cover buffer where is stored the coverage? I want to do something like thiswhile(1){ //kcov setup stuff... ioctl(fd, KCOV_ENABLE, KCOV_TRACE_PC) //syscall that...
View ArticleHow does the kernel's Makefile knows I'm building a defconfig .config file...
I'm trying to understand how the Makefile knows that we want to build the .config file and not the kernel itself.For example, on https://github.com/MoonBase-Project/MSM-4.19-MiBengal/ I domake O=out...
View ArticleIs there any places to get a better understanding of how D3D9/OPENGL sends...
From what i understand hardware accelerated graphics eventually have to go to dxgkrnl. Is there any place to better understand how D3D or OPENGL does this if I wanted to create my own API(I don't want...
View ArticleWhere/how does the kernel loads statically linked modules?
Looking at init/main.c#start_kernel it's not clear where the statically linked kernel modules are loaded, neither how the kernel gets a list of them.So, where are the statically linked kernel modules...
View Articlemake vendor/phone_defconfig won´t work, generated .config does not have some...
On https://github.com/MoonBase-Project/MSM-4.19-MiBengal/ I had to domake CONFIG_HAVE_KVM=y CONFIG_KVM=y CONFIG_KVM_ARM_HOST=y O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu-...
View ArticleCopy large array from userspace to kernel
I'm developing a userspace application and corresponding kernel driver.I need to pass a huge byte array from userspace to the driver.copy_from_user has a limit of 16K, but the array is much larger than...
View ArticleWhat does attribute WCHAR Name[1] means in Windows Kernel?
I was wondering what does this structure meanstypedef struct _VOLSNAP_NAME { USHORT NameLength; WCHAR Name[1];} VOLSNAP_NAME, *PVOLSNAP_NAME;I'm not understanding why the structure has a NameLength...
View ArticleHow To Overclock Android Kernel CPU, GPU, RAM?
with title like above, how to overclock with android kernel in linux with qualcomm, exynos, mtk, spd? which file to edit in kernel source code (dtsi or dts...)? currently I'm using two samsung phones...
View ArticleHow to provide interrupt generating GPIOs from a kernel module
I've written a (working) kernel module which uses returns a gpio_chip instance to specify how reads and writes (using the module-provided GPIOs) should be handled.static struct gpio_chip template_chip...
View Articlelinux kernel .config file variable and its corresponding source code
I understand how to recompile a kernel for myself. Firstly, I run make menuconfig or xconfig to generate a .config file. And I also understand the variables in .config file are like switches to...
View ArticleBlock Mouse + Keyboard From Games Only
Hi I was wondering how to block mouse + keyboard from games only examples Fortnite, Warzone, Apex Legends any help would be appreciated.
View ArticlePrinting to 0xb8000 not working correctly - osdev
I am trying to create a simple kernel and when I print to 0xb8000 in video memory using this code:void screenPrintString(const char *str, uint_8 color, int x, int y){ uint_16 position =...
View Article