Skip to content
Advertisement

Tag: linux-kernel

Explain Linux commit message that patches/secures POP SS followed by a #BP interrupt (INT3)

This is in reference to CVE-2018-8897 (which appears related to CVE-2018-1087), described as follows: A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer’s Manual (SDM) was mishandled in the development of some or all operating-system kernels, resulting in unexpected behavior for #DB exceptions that are deferred by MOV SS or POP SS, as

Add syscalls to linux kernel

I’m new in working with kernel. I want to add a linked list to my kernel, and I try to fix it like this link : Linux Kernel Programming–Linked List here is code’s that I added to sys.c : syscall defenition: and my struct for linked list: and when I compile the kernel, I saw this error: thanks for your

How to estimate the time for spinlock holing/waiting time?

I’m doing a research on spinlock in Linux kernel. And I need to estimate the time for lock holding and lock waiting. To do that, I first tried to modify the spinlock function (arch_spin_lock()) but I could not modify that function because I could not build the kernel. This function was originally an inline function, but I think it was

Is running `sync` necessary after writing a disk image?

Common way to write an image to disk looks like: After this command, is it necessary to run sync? sync(2) explains it only flushes filesystem caches. Since dd command is not related to any filesystem, I think it is not necessary to run sync. However, block layer is complex and in doubt, most people prefers to run sync. Does anyone

(deleted) file creating issue on Linux

My process reads a files and deletes it. This activity happens more than 2000 times. When I check the file in /proc/PID/fd, I see the file there and I see at the end of each line as (deleted). But I see 1024 records, with 1020 being the (deleted) entries. Later the new file operation from this PID fails. To overcome

V4L2: What happens when the queue is full

In video capture mode, what happens when the queue is full and a new frame comes in? Does the kernel drop frames? If so, does the newest frame (just arrived) get dropped or the oldest one in the queue gets dropped? Answer Yes if the queue becomes full kernel drops the buffer newest frame which just arrived, if no more

Advertisement