Intercept Process Access using a Windows MiniFilter Driver
I am developing a security application which should monitor activity by any process. I successfully managed to intercept file access by installing a MiniFilter driver, thanks to the MiniFilter sample...
View ArticleEven python3 environment is activated, JupyterLab cannot be launched properly
When I activate my ipykernel_py3 environment and try to launch Jupyter Lab in terminal, I get the repeated error messages as follows: Macintosh-8:~ yuenfannie$ source activate ipykernel_py3...
View ArticleDriver debugging on a local machine
Why there is no GUI kernel debugger like SoftICE, which allows to debug kernel driver on a local machine nowadays? Why remote machine is obligatory for driver debugging in Windows 7 and higher?
View ArticleWhat is the relationship between global_allocator and exchange_malloc?
In a no_std environment, you can define the global heap allocator via #[global_allocator]. However language items such as exchange_malloc and box_free also exist as described in this answer here. What...
View ArticleO_PATH equivalent in Linux kernel before 2.6.39?
In latest kernel I use the following code to operate the inode of a symlink file: file = filp_open(filename, O_PATH | O_NOFOLLOW, 0); If I don't add O_PATH, filp_open would fail with -ELOOP. On Linux...
View ArticleLooking for books or tutorials for network socket, protocol stack and Kernel...
Now I want to study on some topics like network socket, protocols and their actual mechanisms in hardware level of the computer. There is no such a class in our university. Could anyone recommend me...
View ArticleIssues using kernel framework in Xcode
I try to use the kernel framework to modify the MSR-register within my system. The issue is that the linker does not find some headers which are in the framework itself. I'm using Xcode 11.1 and the...
View ArticleVfs_write returning EINVAL?
I'm trying to write a driver with a Linux kernel module. I created a special file, with mknod, called "newfile". I'm executed chmod on that file to enable writing permission, and I put 777. I'm trying...
View ArticleReset ipython kernel
I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset but that doesn't seem to clear the...
View ArticleWrite data from kernel to file
I know that we should avoid writing into a file from the kernel. But out of curiosity, I'm still trying to write data but the kernel is crashing. int file_write(char *filename, unsigned long long...
View Articlemmap failure after changing kernel start address
I'm using Linux 32bit v4.1.8 on PowerPC p4080DS CPU and external GPU. Until now with "regular" (some pre-defined settings and device tree) I managed to create a shared memory region between the CPU...
View Articleinsmod: ERROR: could not insert module hello.ko: Required key not available
I'm having trouble loading my own module to the linux kernel. Once I execute: $ sudo ./insmod hello.ko I get the error: insmod: ERROR: could not insert module hello.ko: Required key not available. The...
View ArticleIs it necessary for a kernel function to have a corresponding feature map?
I have read about linear kernels, polynomial kernels, etc. Then I wondered whether if it's needed to for a kernel function to have a feature map.
View ArticleHow to implement class and method in C? (e.g. Linux Kernel) [duplicate]
This question already has an answer here: What does dot (.) mean in a struct initializer? 3 answers I am watching Linux kernel code, and found some C codes that behaves like classes in objected...
View ArticleInterrupt on one core and tasklet schedule on different core [duplicate]
This question is an exact duplicate of: How tasklet can be attached on other core which is not getting interrupt? I am not able to address the below issue: Suppose, i am getting interrupt on core-1...
View Articlels reading directory invalid argument
I've got mounted remote location on linux used command for this $ sudo mount.cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share and it successful, but when i'm displaying...
View ArticleComputer Architecture and Design
if ax+b *c / g is input from the keyboard;trace the path of execution from the keyboard to the final output onto the printer which uses bidirectional I/O interface, using your knowledge in computer...
View ArticleNMI watchdog messages, ie. 'Shutting down hard lockup detector on all cpus'
When NMI watchdog has been "disabled" it is still chatty. Does anyone know where the docs for these messages live? I'd like to see what is actually happening. For example, verified that it is...
View ArticleWhy linux disables kernel preemption after the kernel code holds a spinlock?
I am new to Linux and am reading Linux device drivers book by Rubini & Corbet. I am confused at one statement related to spinlocks; the book states If a nonpreemptive uniprocessor system ever went...
View ArticleChoosing bandwidth and size window for gaussian kernel smoother
I want to calculate the derivative dY/dt but for that I need to smooth my input data (Y(t)) to get a coherent derivative. I use the Gaussian kernel smoother because from what I have read for what I am...
View Article