Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Browsing all 12291 articles
Browse latest View live

Is it possible to run programs without any non-executable segment protection...

I'm dabbling in Cyber Security, particularly the topic of buffer overflows. To this end, I'm considering an example in which a buffer overflow allows an attacker to execute arbitrary code from within a...

View Article


Crash tool analysis : Debug out of tree modules

I'm working on a kernel module that extends the functionality of an existing module, such as ufs.ko. When I encounter a crash in my driver, I get a vmcore file, which I load into the crash tool....

View Article


Kernel freeze : How to debug it?

I have an embedded board with a kernel module of thousands of lines which freeze on random and complexe use case with random time. What are the solution for me to try to debug it ?I have already try...

View Article

How are some Linux device drivers automatically loaded/unloaded?

With regards to Linux device drivers, my understanding (obtained from reading this excellent DIY article) is that there are essentially six events/parts of a device driver "lifecycle":Load - the...

View Article

How do I apply changes to my fork from the main repository? [closed]

enter image description hereThe author of the repository is constantly making changes to the branch and I want to apply them in my fork, but clicking the "Sync fork" button does not bring the desired...

View Article


Is there a list of Linux driver APIs abd the breaking changes between kernel...

new to kernel development and have recently learned that Linux does not have a stable ABI for kernel calls.If I want to write shims for the various kernel versions, is there a list of changes between...

View Article

Image may be NSFW.
Clik here to view.

How to forcefully change program counter in linux kernel

For educational purposes, I have to inject fault into a linux kernel. The current setup is:A system call, which injects the fault. In my case, I'm jumping to some random address that is probably...

View Article

Image may be NSFW.
Clik here to view.

How to crash (and reboot) the linux kernel by changing program counter

For educational purposes, I have to inject fault into a linux kernel. The current setup is:A system call, which injects the fault. In my case, I'm jumping to some random address that is probably...

View Article


Image may be NSFW.
Clik here to view.

Ubuntu won't boot after updating firmware and kernel [closed]

I updated firmware from version 1.15 to version 1.22(I don't update Ubuntu too often, because it always causes some complications and wasting time, and it's also my work laptop).I updated the kernel...

View Article


Syscall argument in kprobe with wrong value libbpf

I'm trying to use libbpf to trace calls to the kill syscall. Here is my eBPF program:SEC("kprobe/__x64_sys_kill")int BPF_KPROBE(__x64_sys_kill, pid_t pid, int sig){ bpf_printk("Pid = %i\n", pid);...

View Article

How to fix "Error: selected processor does not support..." during Linux...

I'm trying to compile the LicheePi Zero linux kernel by following different pages but so far I haven't succeeded. I'm using the Ubuntu WSL console on Windows11.When I run the following command makemake...

View Article

Unable to install kernel module ax99100x.ko for Asix parallel port PCIe card

I downloaded the driver for the card from the Asix website and followed the installation instructions provided by Asix. I was able to compile the driver without any issues by executing "make". But...

View Article

Linux kernel on Android. What does it mean [closed]

I work on Android framework. I had this doubt since a long time. When we say that Android is built on Linux kernel. What does it actually mean. I understand that Android doesn't have it's own process...

View Article


copy_from_user and copy_to_user overhead

I’ve been diving into the overhead of copy_from_user and copy_to_user, but I’m having a hard time getting a clear understanding of how much more expensive they are compared to a simple memcpy.I’ve gone...

View Article

Raspberry Pi 5 - linux-headers kept back

I don't have any packages on hold, but doing apt-get update and upgrade shows the following output, are these packages being held back from the OS itself? thanks.pamanes@rpi5:~ $ sudo apt-get...

View Article


Linux Process stuck in 'D' state

On one of my Linux servers, many processes get stuck in the 'D' state.Here is the process stack[<0>] __do_page_fault+0x373/0x450[<0>] do_page_fault+0x37/0x130[<0>]...

View Article

Interrupt handling in linux and Pending interrupt

Basic question about linux interrupt handlingIn my driver i disable the interrupt line of a peripheral and do some processing, during this time peripheral is sending interrupt. when i enable the...

View Article


How to generate CFG for non executable binary files

I want to generate a control-flow graph for non-executable binary files. The objective is to perform static analysis on the generated binary files of Linux kernel. Is there any tool which can do this?...

View Article

ftrace ftrace_set_filter_ip/ftrace_set_filter return EINVAL

I have asked a question about hooking functions in Linux kernel. Now I'm learning about ftrace.I wrote a sample program that you can see below, it worked fine on Linux 5.x and 6.x 66-bit as well as...

View Article

Is it safe to retrieve userspace PID using current->pid in Linux Driver?

I would like to retrieve caller process' PID (Userspace) in Linux Driver.At first, I could find pid attribute so easy from the struct task_struct in Linux Source Code (include/linux/sched.h) I used...

View Article
Browsing all 12291 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>