-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm writing a Linux kernel module, and I'd like to allocate an executable page. Plain kmalloc returns a pointer within a non-executable page, and I get a kernel panic when executing code there. It has to work on Ubuntu Karmic x86, 2.6.31-20-generic-pae.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I want to add debug message in kmalloc function in linux kernel. So my goal is to print all functions that call kmalloc.
I tried to add
printk("caller : %s size : %d",FUNCTION, size);
in kmalloc function in slab.h
but, the result of FUNCTION is kmalloc itself. I realised that MACRO is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there any protection provided by kernel? Because when we tried to allocate memory using an
kmalloc() from user space, the kernel allowed to allocated around 124
MB of memory, and when we try to write into it, the kernel crashed. If there
was protection of kernel memory area, this wouldn't have…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Hello,
I have a Dell R300 Ubuntu 9.10 box with 4GB of memory. All I'm running on there is haproxy, nagios and postfix yet there is ~2.7GB of memory being consumed. I've run ps and I can't get the sums to add up. Could anyone shed any light on where all the memory is being used?
Cheers,
Mark
$…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've written a LKM that implements Trusted Path Execution (TPE) into your kernel:
https://github.com/cormander/tpe-lkm
I run into an occasional kernel OOPS (describe at the end of this question) when I define WRAP_SYSCALLS to 1, and am at my wit's end trying to track it down.
A little background:
Since…
>>> More