How to fix "m2c -o scripts/Kbuild.include -e scripts/Kbuild.include...
Newbie question: How to fix this error?make[1]: Leaving directory '/home/denis/pmos/device_xiaomi_unified-kernel'make[1]: Entering directory '/home/denis/pmos/device_xiaomi_unified-kernel'm2c -o...
View ArticleHow closely are Mac OS X and BSD related?
I read that Mac OS X and bsd are related. How closely are they related. Can Mac OS X software be tweaked and installed on BSD?
View ArticleWhy is my stack in kernel memory virtual address space?
I have a simple C program which declares two local variables, one initialized, one uninitialized, like so:#include <stdio.h>int main() { int local_var_1 = 0; int local_var_2; printf("Local var 1...
View ArticleHow to running Docker on Android
EnvironmentKernel: 4.19Android version: 11SoC: RK3566Steps I TookChecked missing kernel options using check-config.shAdded missing kernel options, compiled kernel, and flashed deviceInstalled Docker...
View ArticleDifference between vm.dirty_ratio and vm.dirty_background_ratio?
I'm currently experimenting with the kernel parameters found in /proc/sys/vm, especially dirty_ratio and dirty_background_ratio.The kernel doc has the following explanations for...
View ArticleWhat is the maximum possible priority value of an xfrm policy in linux?
ip xfrm policy { deleteall | list } [ dir DIR ] [ SELECTOR ] [ index INDEX ] [ action ACTION ] [ priority PRIORITY ]The man page talks about the default value, but not about the minimum and maximum...
View ArticleIs it possible to map memory allocated with kmalloc to userspace, for use in...
I am working on a project where we have a kernel module that allocates memory using kmalloc(), and maps it to userspace using remap_pfn_range(). In remap_pfn_range() the vm_area_structs has its...
View ArticleKernel module compilation error: Undefined references to...
I am trying to build "Hello, World" kernel module on Ubuntu 22.04 with Linux Kernel 6.1.25. However, when I run make, I encounter the following errors related to AddressSanitizer (ASan):make -C...
View ArticleHow to find use of GPL symbols in kernel module?
I am working on a fairly complex closed source kernel module and I am unable to compile it using some toolchains without setting the license to GPL.modpost complains about the use of a specific GPL...
View ArticleAre .text pages swapped-out?
Are .text pages in a process' memory swapped-out, or is it just the pages containing data (heap) that are swapped-out?Here by "swapped-out" I refer to 'being swapped to the swap area' and not 'mere...
View ArticleCan a Linux Kernel Configuration Option Be Active Without Appearing in .config?
While working with the Linux kernel, I encountered a situation where some kernel configuration options did not appear explicitly in the .config file. To investigate further, I manually tested a few...
View ArticleAOSP Android 14 (android-14.0.0_r73) - lunch Command Fails to Display Menu
I am trying to build AOSP (Android 14, android-14.0.0_r73), and while the build completes successfully, the lunch command fails to display the menu and does not allow me to select a target.Issue:When...
View ArticleAnyone knows about this error "y 0x41CC96: std::vector::~vector() (in" [closed]
Anyone knows about this error"y 0x41CC96: std::vector<MyHost*, std::allocator<MyHost*> >::~vector() (in"I am getting this error, when I run the program using gdb. this error I don't get if...
View Articleadding a new syscall for copying file to linux-6.9.8 but "Failed to stat...
edited kernel: linux 6.9.8machine for building: AMD 9950X, debian 12, linux 6.1.0Codeskernel/sys.c# codes above are omitted.#endif /* CONFIG_COMPAT */SYSCALL_DEFINE0(mycall) { printk(KERN_INFO "Hello...
View ArticleHow do I find physical interfaces of new router
I want to know generic method to find the all the network interfaces of router.Currently, I am trying to configure new openwrt router and trying to match the physical interfaces on router with the uci...
View ArticleMaking/Building a kernel module inside a docker container
I currently have my host system running Mac OS with docker. I have my Mac OS host system spawning a docker container.The spawned docker container is currently running ubuntu:19.10I am trying to build a...
View ArticleIn a Linux system call, are system call parameters preserved in registers...
Is it guaranteed to be able to read all the syscall parameters at sys_exit tracepoint?sysdig driver is a kernel module to capture syscall using kernel static tracepoint. In this project some of system...
View ArticleWhy is synchronize_rcu() not a blocking function
According to the kernel documentation, synchronize_rcu() waits for RCU readers to finish, as illustrated in the following toy example: void synchronize_rcu(void) { int cpu; for_each_possible_cpu(cpu)...
View ArticleHow to determine if a specific module is loaded in linux kernel
I am just curious is there any way to determine if a particular module is loaded/installed.$ lsmod lists all modules (device driver loaded).Is there any way to check or a command that returns...
View ArticleHow to solve a redis service warning about the kernel parameter...
On my Yocto based Linux distribution I have installed an instance of Redis 6.0.5 which use AOF persistence policy.Because I'm having some problems with this instance of Redis Server I have checked the...
View Article