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

Handling an undefined instruction in the kernel

So I'm playing around with reading system registers in the kernel and I've recently run into a bit of a roadblock.In ARM64, certain system registers (e.g. OSECCR_EL1) are not always implemented. If...

View Article


Clearlinux docker container fails on CentOS7

I'm trying to run clearlinux docker container on CentOS7. It launches successfully but basic fs operations fail:$ docker run -it clearlinux:latest /bin/bash -c "ls -ld /"ls: cannot access '/':...

View Article


Image may be NSFW.
Clik here to view.

linux kernel - how to get physical address (memory management)?

In linux,Page Global Directory offset address(cr3 + index) can be calculated using pgd_offset() MACRO.Page Upper Directory offset address can be calculated using pud_offset() API.Page Middle Directory...

View Article

perf ftrace falis to start

When try to start perf ftrace I get following errorwrite '' to tracing/tracing_cpumask failed: Invalid argumentfailed to reset ftraceHowever my kernel configured ftrace enabled and trace-cmd ftrace...

View Article

Image may be NSFW.
Clik here to view.

Custom Kernel in sklearn, gaussian exponentiated Kernel as function of...

I want to use the kernel ridge regression in sklearn with the gaussian exponentiated kernel. Which is of the form of . To do this I want to use the implemented kernels of sklearn, as it is the product...

View Article


copy_from_user() error: destination size is to small

I'm writing ioctls handler for kernel module and I want to copy data from user space. When I'm compiling code with disabled optimizations (-O0 -g flags) compiler returns following...

View Article

who controls the process control block(PCB)?

Recently, I am learning about kernel and find a question that who controls the process control block(PCB)? The kernel or the process itself? Does it differ in different platform (windows/Linux)?So far,...

View Article

An error occured while starting the kernel spyder 4

I'm using python library GDAL for school and i got trouble by running some of my codes, specifically on spyder 4. Every time I got this error message:ERROR:tornado.application:Exception in callback...

View Article


attempting to install new kernel, error modules.order & Makefile Error 2

Attempting to install a new kernel.once it is compiled, I enter:su -c "make modules_install install"this error populates : sed: can't read modules.order: No such file or directorymake[1]: ***...

View Article


Is there any short A to Z description of how to debug the Linux kernel that...

Debugging the Linux Kernel with kgdb over rs-232 needs several preparation steps. I found awesome documentation, but no single-source that is fully self-contained and summarizes all steps needed, does...

View Article

kernal_task on Macbook hogging CPU even after OS upgrades/downgrades;...

On a Macbook Air (13-inch, Early 2015) my girlfriend got one of those "upgrade Flash" pop-ups and hit (Continue/Okay/etc?). This may or may not have anything to do with the current problem but ever...

View Article

Invoke Mac Kernel Panic?

So i am lookin for some source code to crash the mac kernel. I found crashme for debain linux but that does not work for the mac kernel. So i was wondering if anyone knows where i can find a...

View Article

kernel_task on Macbook hogging CPU even after OS upgrades/downgrades;...

On a Macbook Air (13-inch, Early 2015) my girlfriend got one of those "upgrade Flash" pop-ups and hit (Continue/Okay/etc?). This may or may not have anything to do with the current problem but ever...

View Article


How are software interrupts triggered in windows when the IRQL drops?

I know that for hardware interrupts, when KeLowerIrql is called by KeAcquireInterruptSpinLock, the HAL adjusts the interrupt mask in the LAPIC, which will allow queued interrupts (in the IRR probably)...

View Article

Low level IO in linux kernel

I am writing a driver for a device that generates a bunch of data and stores its in a memory buffer. Driver should read this buffer and store data to a nvme storage. Device and memory buffer are...

View Article


Ubuntu kernel version to mainline commit

i've got Ubuntu, with kernel version 4.15.0-91-generic. My question is how to get exact commit in mainline kernel, corresponding to this kernel? Thank you

View Article

detour hooking usermode functions from the kernel

I have a kernel mode driver and I'm trying to implement a way so that I can make usermode hooks from it. I need to hook usermode functions via detour/jmp from the kernel.

View Article


How to convert phandles to links in kernel devicetree automatically?

I am developing kernel 3.18 for Meizu M6 Note, vendor hasn't provided kernel source, so I brought kernel from most similar device and replacing it dts with stock's one.I want to know, how can I convert...

View Article

Android CPU command-line [closed]

why logd before kworker if tx_thread is third? wouldn't tx_thread have more content without kworker blocking logd? Aren't all commands following in line when debugging isn't considered? With kworker...

View Article

Can't link c++ function in assembly

Sorry if there are other questions like this one, but I tried almost everything with no results. I have an assembly file calling the main function of a cpp file(I'm making a kernel entry)kerne.asm[bits...

View Article
Browsing all 6333 articles
Browse latest View live


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