How to allocate an executable page in a Linux kernel module?

Posted by pts on Stack Overflow See other posts from Stack Overflow or by pts
Published on 2010-03-16T23:07:08Z Indexed on 2010/03/16 23:11 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about linux-kernel

Related posts about kmalloc