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 ke
kmalloc()
#include #include ... char *p = __vmalloc(byte_size, GFP_KERNEL, PAGE_KERNEL_EXEC); ... if (p != NULL) vfree(p);