Questions tagged [kernel]

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system. This tag is for general questions regarding code that runs in the context of an operating system kernel.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
20 views

Linux Kernel: read and write to memory region reserved from device tree

I am working on a uni project including a xilinx fpga board. For our PL i reserved some memory following the tutorial at xilinx-wiki. But it seems like writing/reading to/from the region doesnt work ...
Filipe QDL's user avatar
-1 votes
0 answers
20 views

Mandriva 2007 Linux : kernel panic not syncing : Attempted to kill init [closed]

I'm using Linux Mandriva 2007 as my operating system, and during startup, I encounter the following error: "kernel panic not syncing: Attempted to kill init!" If you have any suggestions to ...
cr0ss's user avatar
  • 9
0 votes
0 answers
17 views

The jupyter kernel keeps dying while importing custom dataset

I'm using vscode and jupyter extension to do some machine learning stuff, but my jupyter kernel is keeping crashed. I am getting the cell output like this: I was running the code like this: dfs = [] ...
김동재's user avatar
0 votes
0 answers
9 views

Challenges Running Valorant on a Virtual Machine with KVM/QEMU and Ubuntu [closed]

I need to create a virtual machine in which software with access to the system kernel cannot identify that it's running on a virtual machine. I've tried using KVM/QEMU to create a VM with Windows 10; ...
The Bester's user avatar
0 votes
1 answer
29 views

problems with building the android kernel

I started building the android core (for nokia 6). Completed make PLE_defconfig(device code name), passed with one warning(arch/arm64/configs/PLE_defconfig:745:warning: symbol value 'm' invalid for ...
m1cro_cat's user avatar
-1 votes
0 answers
13 views

New features addition

What additional derived features can I add to my data set that would classify the clusters like the following picture.
Samyak Jain's user avatar
0 votes
0 answers
42 views

Alpha Blend issue with python and opencl

I'm experimenting a bit with a small python app that uses OpenCL to alpha blend a number of images, but I'm probably doing something wrong either with the math, or with the colorspace when loading the ...
Nick's user avatar
  • 221
0 votes
0 answers
15 views

Failed to find device node for boot cpu missing boot CPU MPIDR, not enabling secondaries

we are trying to boot Arm64/Aarch64 Linux kernel(5.9) using device tree. In device tree we add the below nodes: 1.CPUs 2.Memory 3.Serial 4.Interrupt-controller (GIC) 5.Timer Our implementation : ...
Jayaprakash's user avatar
0 votes
0 answers
139 views

Is there a win32 API to get the ids of all threads currently in running state?

I would like to get a list of all threads that are currently in running state on the operation system (globally, not just for the current running process). The thread unique id is enough. Currently I ...
tigrou's user avatar
  • 4,316
0 votes
2 answers
52 views

Who should be responsible for "program startup with three std streams opened"?

I'm working on my study purpose OS kernel, now I have a confusion about creating time of standard streams. The famous "APUE" said that "By convention, UNIX System shells associate file ...
08822407d's user avatar
  • 108
0 votes
0 answers
9 views

which ubuntu kernel codecs should be removed to disaple images support

I am trying to build a Ubuntu kernel that prevents users from opening images and videos. for that, I downloaded the Ubuntu kernel and using make menuconfig, I removed the multimedia support drivers ...
Maher Ben Taleb Ali's user avatar
0 votes
1 answer
30 views

Failed to start the Kernel AttributeError: 'SelectIOLoop' object has no attribute 'asyncio_loop'

I try to: import numpy as np as usual using vscode, but it Failed to start the Kernel: enter image description here AttributeError: 'SelectIOLoop' object has no attribute 'asyncio_loop'. View Jupyter ...
N K Akbar's user avatar
0 votes
0 answers
38 views

How can we be sure that all call_rcu() callbacks are invoked/completed in Linux kernel?

I have a kmem_cache which contains RCU-protected data. I also use call_rcu() after updating the RCU-protected pointers to free the elements in further. Before destroying the cache i have to make sure ...
Rost's user avatar
  • 65
0 votes
0 answers
37 views

Linux Kernel trace with amdgpu [closed]

I get this output in my Linux Kernel logs. What does it mean? What should I do with it? Nov 27 11:29:21 ryzen kernel: ------------[ cut here ]------------ Nov 27 11:29:21 ryzen kernel: WARNING: CPU: ...
Alexander's user avatar
0 votes
0 answers
49 views

How do you ask the disk to fetch a file in the kernel, and copy the file to userspace?

As an experiment, I have an application that requests a specific file in a set of a 1000 files based on the timestamp. Caching all 1000 files is not an option, and using a userspace program to fetch ...
the_daemon_lord's user avatar
1 vote
1 answer
32 views

How does the CPU/Kernel allow user-space code to run when it's overwhelmed by Hardware Interrupts?

I have learned that when a Hardware Interrupt occurs, the CPU saves its registers to memory and immediately runs the corresponding code from an Interrupt Vector Table. Given that these HIs occur for ...
Eric B's user avatar
  • 171
3 votes
1 answer
93 views

Kernel not executed, after being loaded

Issue Kernel seems to be loaded, by the bootloader, but no further execution. It seems like there is a problem either with the way I run the image with qemu or with the way the kernel is loaded. ...
Calin's user avatar
  • 33
-1 votes
0 answers
48 views

Random Survival Forests are killing my Jupyter Notebook Kernel

I was previously able to use random survival forests (sklearn package) in my Jupyter Notebook environment, but it suddenly started killing my kernel. I tried restarting and reinstalling the package ...
JTA1618's user avatar
  • 79
0 votes
2 answers
51 views

How can an eBPF program within the kernel access a map created by a user space program?

Yes, understand similar questions had been posted several times before, such as Accessing BPF maps from kernel space how to access to bpf map which was made by user program in the kernel program (...
Paul Suen's user avatar
1 vote
0 answers
55 views

Crash when enabling Interrupts while using an Interrupt Descriptor Table

My qemu emulation just crashes after running init_idt() and then enable_interrupts(). I cant find the error, did i setup the IDT wrong or am i missing something. I am in 32bit protected mode on a x86 ...
Endrix's user avatar
  • 31
0 votes
0 answers
90 views

Jupyter Lab Kernel Connection Problems on Google Cloud Platform

I am trying to transcript some audios using GCP. I have created a project and now I am using the following code in jupyter lab. The bucket with the folder with the audios is also created. When i run ...
nils's user avatar
  • 25
0 votes
0 answers
36 views

Error "error: load the kernel first" in PrimeOS. How to fix this error?

As from the title, you would know that this is pretty common. There are numerous forums about this. But no one has a perfect solution. When I boot into prime OS (installed using .exe), it always gives ...
Anuj Sharma's user avatar
1 vote
1 answer
27 views

Change Time and Date with AlarmManager by accessing the Android kernel

Considering that we have full access to the Android kernel, we use the following function to change the time and date private fun setTime(hourOfDay: Int, minute: Int) { val c = Calendar....
Pouria Hemi's user avatar
1 vote
0 answers
60 views

rss memory for process is much lower than the rss in cgroup memory.stat

We have a Go program (Go version 1.19 run in k8s pod, the RSS for the process show on node (ps / top) is much lower than the value shown in cgroup memory.stat. This is the memory.stat in cgroup, the ...
jim's user avatar
  • 33
0 votes
0 answers
18 views

BLCR installation giving "code model kernel does not support PIC mode" error

I'm trying to install BLCR (v0.8.5) on a Ubuntu Server 22.04 VM. Since it supports only kernels up to the 3.7.1 version, I chose to build that kernel version so that I can build BLCR without having to ...
Raphael Santos's user avatar
0 votes
0 answers
15 views

Python on Spider (Python 3.11.4 64-bit | Qt 5.15.2 | PyQt5 5.15.7 | Darwin 22.3.0) is running also commented code

I'm running the code below, and there is something very strange to me. If I run only line 1, line 2, and line 3, I get the array 'centr' with all zeros except for the first row, which contains ...
Vivino's user avatar
  • 1
0 votes
0 answers
58 views

Setting up RNDIS and ECM in Android on same network interface

I'm trying to setup USB tethering support on an Android 10 based device using configfs to setup the USB Gadget. Right now I'm trying to setup both RNDIS and CDC ECM so that you can connect to it using ...
Axenth's user avatar
  • 73
0 votes
0 answers
70 views

Register a new XFRM type

I am working on implementing a RFC. In short this RFC proposes a solution to compress headers inside an IPsec ESP packet payload. I was going to develop a Linux kernel module. However this is ...
Quentin Baradat's user avatar
0 votes
0 answers
37 views

Best practice to operate on large and many buffers in OpenCl?

I would like to know what options would there be to process multiple large buffers using an OpenCL kernel considering the memory limit of the device. To put the problem into perspective imagine that ...
Paunescu Daniel's user avatar
0 votes
0 answers
58 views

Segmentation fault with CR2 from kernel and RIP in userspace

I have a few segfaults with a similar state on Linux x86_64: [pid 35742] [time 1699532462] signal caught: Segmentation fault si_signo: 11 si_code: SEGV_MAPERR si_errno: 0 si_pid: ...
user1641854's user avatar
0 votes
2 answers
388 views

Target class [Spatie\Permission\Middlewares\RoleMiddleware] does not exist

Okay so I'm kinda new to laravel and I'm trying to use Spatie for roles and permission but this error happened, even though I've written the class name in kernel.php here : <?php namespace App\...
Ram's user avatar
  • 3
2 votes
0 answers
50 views

How to treat DTC (device tree compiler) warnings as errors in Yocto?

I noticed that Yocto doesn't show dtc (device tree compiler) warnings at all. Is there any way to treat warnings as errors for example? I tried different flags such as -Werror and -Wall but they didn'...
Jihed Chaibi's user avatar
1 vote
0 answers
66 views

compiler use more ram to read data from file than expected

While working with the chardev in the Linux kernel, I observed something interesting. The function my_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) is used to read data from ...
Monte Conte's user avatar
0 votes
1 answer
58 views

Use poll() with POLLIN for waiting changes in file

I have to cooperate with kernel driver and wait in C application when sysfs_notify(3) for specific attribute was called. I want to use poll() approach via file descriptor. My implementation looks like:...
Anton Kalistratov's user avatar
0 votes
0 answers
54 views

What is the best QNX alternatve to Linux strace

I used to analyze the system calls produced by a program in Linux using the strace tool which is quite useful. We can clearly see all the four categories presented by Modern Operating Systems(...
Maf's user avatar
  • 681
0 votes
0 answers
102 views

VSCode Jupyter kernel crashes often. Exit message - `The Kernel crashed while executing code in the the current cell or a previous cell.`

For quite a while now I have been having a problem when running cells in a .ipynb file in VSCode. The issue is that I attempt to run a cell and it returns this error message directly underneath the ...
trizzo's user avatar
  • 33
-1 votes
0 answers
17 views

How to enable 16G hugetlbpage in kernel for ARM64?

According to the kernel documentation, the ARM64 architecture can support 16GB hugepage sizes based on the CONT-PMD feature. How should I enable this feature to make applications to use 16GB of ...
Frontier_Setter's user avatar
0 votes
0 answers
24 views

GPU crash in release config only

I have a host caller class with a callback to create a pointer to a class on the GPU. In this callback, a kernel is called to create the instance of the class on the GPU. I properly allocate memory on ...
Regis Van Steenkiste's user avatar
0 votes
0 answers
23 views

Facebook Prophet - running into dying kernel with 'future' dataframe

I am using FB Prophet to do a forecasting in Jupyter Notebook using Python 3. My model was working fine, until I decided to split my data up into 'train' and 'test'. Instead of using 'future = m....
YaboiTriesDS's user avatar
0 votes
1 answer
52 views

different result running same command in function and on main - x86-64 toy_kernel

I'm writing my own kernel (32-bit for now) and command works if I run on main but when running on different function it behaves differently. Any idea how and why? EDIT: the problem lies in non-...
BlockMagiX97's user avatar
0 votes
0 answers
26 views

application .exe don t open on windows 22H2

when i try to open an application .exe in windows 10 22H2, i get this message from event viewer : le processus a été arrêté en raison d'une exception non gérée. Informations sur l'exception : System....
jojo the frite's user avatar
0 votes
0 answers
14 views

Dose the latency of vmalloc of Linux kernel become longer then older version?

I am comparing the latencies between vmalloc and vzalloc. According to the definitions of these functions, vzalloc should take more time because of filling zero, and I got a proof on Kernel 4.15, ...
Lennox Wu's user avatar
0 votes
0 answers
24 views

Implementing a Privacy Filter for Sensitive Data in Windows Kernel Driver

I'm developing a real-time video processing application where I handle sensitive data within my driver and display it on screen. However, for security reasons, I need to prevent direct access to this ...
ruawzrd's user avatar
0 votes
0 answers
20 views

How to enable WPP trace logs automatically using Autologger for kernel mode driver in case of BSOD?

i have developed windows kernel mode driver application. One of the customers of my driver is facing blue screen crash and i need to analyze the crash. For this, i would like to enable AutoLogger ...
muralidhar's user avatar
0 votes
1 answer
50 views

Managing Multiple AWS SageMaker Lifecycle Configurations

I've been exploring SageMaker Lifecycle Configurations, particularly in reference to the setting default LCC in the AWS documentation . According to the documentation, it's possible to attach multiple ...
mjack34's user avatar
  • 11
2 votes
0 answers
36 views

how to use bpftrace probe local variable in a function

I want to know how to use bpftrace tool to probe the local variable in a kernel function, like: int fun1(arg0, arg1, arg2) { .... ret1 = arg0->param1; var1 = xxxx; .... ; } ...
boycechen's user avatar
0 votes
1 answer
41 views

How do I pass arguments to Laravel commands scheduled from the Kernel?

In Laravel 10, I am trying to schedule multiple commands in the Kernel class. They use the same Command class/signature but send different arguments. I think I have followed the documentation ...
Holly's user avatar
  • 3,601
0 votes
1 answer
17 views

Jupyter notebook kernel dies when I run a simple cluster model

I just tried to run a simple KMeans model. I ran the code line by line, too. It always goes die on the "fitting step". What might be the reason for this issue? Thanks! import numpy as np ...
Feiyang Deng's user avatar
0 votes
1 answer
45 views

Does kdb support arm64 hardware breakpoint?

Well, unlike gdb, the manual and reference material for the kdb are rare. which are https://manpages.org/kdb/8 https://elinux.org/KDB https://docs.kernel.org/dev-tools/kgdb.html When I'm trying to ...
alex zhang's user avatar
0 votes
0 answers
19 views

Validating parameters in OS Kernel

The user mode calls a function with virtual address and size parameters , if we validating the parameters in two cases 1-Not pointing to NULL 2-Not pointing to invalid pointer (pointing to unmapped ...
Karim Hossam's user avatar

1
2 3 4 5
188