About linux process mpt/0 and mpt_poll_0 [closed]
What's the purpose of these two processes?mpt/0mpt_poll_0OS: CentOS release 6.2 (Kernel: 2.6.32-220.el6.x86_64)
View ArticleIf I build linux kernel from source, does it contain initramfs inside by...
I thought I have to use busybox to populate init filesystem and use cpio to make initramfs image and add it to the linux kernel source tree (like in arch/arm64/boot ?) before I build the kernel. But if...
View ArticleHow to call system call in kernel space?
I'm trying to trigger system call in kernel space and it works fine if the system call does not take arguments such as getpid().The method how I do it:get the address of system tablestatic void...
View ArticleElevating go code to root? Best practices?
I have a Go web app on Linux that needs to manipulate the networking stack. The code to do the manipulation is in a Go package and needs to be run with root privileges - e.g. if it's not sudo'd, it...
View Articlewhy system call use specific stack?
Here is a question about the details happening during system call.However, one thing surprises me that the TSS maintains different stacks for different priviliges. That is, codes running in user mode...
View Articlewhen i install python 3.9 on chromebook with linux penguin i still see the...
I am not a linux user, so this might be a basic question.I am trying to upgrade python version from 3.5 to 3.9 on a chromebook.The chrome book runs linux penguin (i type uname -a to get the...
View Articlehow to map which external monitor is seen as which DVI plug ? for...
4 external monitors go into : a hub of 4 DisplayLink-branded external videocards. (HDMI to USB)Let's call it a dock. The dock goes into my laptop through one USB(-C).I already made a udev rule, that...
View ArticleWhy do system calls use a different stack?
Here is a question about the details happening during system call.However, one thing surprises me that the TSS maintains different stacks for different priviliges. That is, codes running in user mode...
View ArticleLatest linux kernel installation issue(rm: invalid option -- '0')
I have clone the latest linux source from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gitAnd compile this kernel using (make O=/usr/local/kernel).But when i install the kernel the...
View ArticleCreating a TUN device on Ubuntu VM doesn't seem to work
I wrote a script that would create and print the name of a new TUN interface on an ubuntu VM using python.import fcntlimport structimport osimport subprocess#from scapy.all import *TUNSETIFF =...
View ArticleWhy is my hello-1.c and Makefile not producing .ko files?
I am following the Linux Kernel Module Programming Guide's hello world programming examples (pg 8-9): https://tldp.org/LDP/lkmpg/2.6/lkmpg.pdfI have the following hello-1.c as described in the guide:/*...
View Articlegdb target remote:1234 connection timeout linux
I want to debug linux kernel, which is running on qemu using gdb. i ran the kernel on qemu using below command.qemu-system-i386 -kernel ../bzimage -initrd ... / *.image -nographic --append "console...
View ArticleTest hid-playstation driver in Pop!_OS(Ubuntu)
I need some guidance as to how to install the driver for the Dualsense Controller found here. I have already created the hid-playstation.c file using the patch file, however, i have been unable to...
View ArticleGet argv from bprm_check_security in linux kernel. Is the documentation wrong?
According to Linux Kernel's doc:bprm_check_security:This hook mediates the point when a search for a binary handler willbegin. It allows a check against the bprm->cred->security valuewhich was...
View ArticleCan I create a SpiDev device with spi-gpio?
I'm trying to setup a spidev device with the spi-gpio driver but I can't make it work.I created a spi-gpio device in the device tree as following: spi4 {compatible = "spi-gpio";pinctrl-names =...
View ArticleHow to do brcmfmac driver backporting?
I have downloaded new code from here(https://backports.wiki.kernel.org/index.php/Releases). Now after extracting the downloaded code, I am suppose to replace my old code files with the new one and then...
View ArticleHow does linux bootloaders load vmlinux file to memory when elf file is...
I'm confused. When I see /boot/grub/grub.cfg on my x86_64 ubuntu machine, the grub uses vmlinuz-4.15-..-generic file as kernel image. vmlinuz will be a compressed file of vmlinux and vmlinux is elf...
View ArticleHow to change tast_struct current into specific task_struct in x86?
In high level, I tried to de-couple system call into two parts and my question occurs in kernel part. I tried to invoke function stored in system call table. Before invoking it, I need to switch...
View ArticleAbnormally large drivers/modules directories when building a custom kernel on...
I'm currently tiptoeing into custom kernel building.I first started on a VM in VirtualBox, installing a fresh distribution of Ubuntu Server 20.04.I followed the following procedure:# getting the...
View ArticleHash loaded kernel module from kernel
Is it possible and is it a good (ish) idea to hash a kernel module after it has been loaded to match a pre-calculated hash?Why am I trying to do this? There is a good non-good explanation. It is to...
View Article