Why there is a huge CPU percentage usage in kernel_task process?
I got a MacBook Pro (2010). There is this problem that after 5 minutes of using it, the computer starts lagging and, when I check the task manager, I can see a huge CPU percentage usage of...
View ArticleIOLockWakeup and IOLockSleep
i am curious about the event parameter that gets passed to IOLockWakeup and IOLockSleep{Deadline}.i understand that the event is an address that gets passed to both functions. i am assuming this...
View ArticleHow to set a custom R installation for using rpy2 in Jupyter?
I have a conda environment which I made available as a kernel to my Jupyter instance by running:python -m ipykernel install --user --name my-env-name --display-name "Python (my-env-name)"With this...
View ArticleGDB a PIE that moved itself
I'm writing a kernel which is compiled as a PIE. After boot the kernel maps itself into 64-bit high mem, specifically the NULL page moves to 0x1FFFF << 0x2F, and then jumps there however in doing...
View ArticleWhat is the equivalent of PACKET_MMAP for kernel 4.x
Guys, We upgraded from 2.6 to 4.9 recently, lots of new stuff to catch up with. Anyway, we found the libpcap is obviously slower than previous version running on 2.6, first thing I am thinking about is...
View ArticleSpoofing hard disk serial number via a driver
I modified a windows driver that spoofs hard disk number by generating a random serial, I modified it to spoof a pre-known serial, now when it get loaded and query for the first time via wmi for the...
View ArticleHow to normalize Kernel Density Estimation using min-max normalization?
I am using gaussian_kde for Kernel Density Estimation.After that, I would like to compare between multi Density plots.In this case, Should I normalize each Density plot using min-max normalization?And...
View ArticleWhy is in R function kde2d H divided by 4?
I'm trying to replicate kde2d function, which performs bivariate kernel density estimation, just to understand how it really works, but I can't figure out how is bandwith implemented in code. Here is...
View ArticleHow to find the LLC size and BW peak from the Linux kernel
I need to know the size of the system's Last Level Cache from a kernel module as well as the capacity of the Bandwidth in between L3 and Main Memory. Does any struct store such information within the...
View ArticleFailed to get kernel data using copy_to_user not working with debugfs
I am trying to implement simple debugfs interface module. Code attached for reference. To write data I'm using echo 'string'> /sys/kernel/debug/debugexercise/text and its working as expected data...
View ArticleConnect the windows kernel driver to physical serial port (COM1) in windows
I need to connect my kernel driver in windows to com port (COM1) and I want to write some data on COM1, How can I do it? Need suggestions.
View ArticleIs it possible to run 16 bit code in an operating system that supports Intel...
In the Intel 64 & IA-32 architecutures manual vol 3A, Chapter 9 Processor Management and Initialization, I found the the following:Compatibility mode execution is selected on a code-segment basis....
View ArticleShould I call ExitBootServices before taking the ownership over the ACPI and...
My question first is, would it be a violation if I take the ownership of the ACPI firmware before I call EFI's ExitBootServices?The second question is, how do I take the ownership over the ACPI...
View ArticleIs there a way, to receive data in a kernel module without using a callback...
I am currently writing a Linux kernel module, where I have to send requests to a user-space application out of a callback function.So what I need in my module is something like this:int...
View ArticleHow to release memory, allocated by RtlQueryRegistryValues in Windows kernel...
Function RtlQueryRegistryValues can allocate memory for returning REG_SZ result.Everything works nicely, but I cannot guess how to release that memory.Code fragment:UNICODE_STRING...
View ArticleJupyter notebook python3 kernel not connecting on some files only
I freshly reinstalled anaconda.When I try to open a new blank file, the kernel connects and no import error occurs.But when I try to open a bigger file that others can open, the kernel never connects,...
View ArticleRuntimeWarning: invalid value encountered in log """Entry point for launching...
I had this expression: RuntimeWarning: invalid value encountered in log """Entry point for launching an IPython kernel.while trying this:IN1:import numpy as npimport pandas as pdfrom pandas_datareader...
View ArticleSymfony\Component\ErrorHandler\Error\ClassNotFoundError #223 when symfony...
I'm currently working with my friend on a Symfony project. Everything was working great but one day after y pull the master branch and his work my project doesn't work anymore and display this error...
View ArticleAllocate page with execution privileges at an arbitrary currently unused...
I'm writing a kernel mode driver (Windows 10 64-bit) where I require code execution at a virtual address in another driver's virtual address space that is currently unused(MmIsAddressValid returns...
View ArticleNanoPI NEO / NEO AIR I2S DAudio WS2812 DeviceTree Issues
I'm trying to get the WS2812 LED's via I2S bus to work, using a NanoPI NEO AIRI found a nice library which utilizes ALSA-Audio for pushing data to the WS2812.The library is quite old and uses a 3.4.113...
View Article