Enable Linux drivers to use PAGE_KERNEL_EXEC in calls to __vmalloc().
Maybe we should add "#define PAGE_KERNEL_EXEC M_EXEC" to gfp.h, too
Differential D20320
linuxkpi: allow M_EXEC flag for __vmalloc() p.bruenn_beckhoff.com on May 20 2019, 12:24 AM. Authored by Tags None Referenced Files
Subscribers
Details
Enable Linux drivers to use PAGE_KERNEL_EXEC in calls to __vmalloc(). Maybe we should add "#define PAGE_KERNEL_EXEC M_EXEC" to gfp.h, too
Diff Detail
Event TimelineComment Actions Is this variant frequently used? Why not create a new inline function for this: __vmalloc_exec() ? Comment Actions It's just one driver [1] I care about and it could easily be patched, but vmalloc_exec() is not exported for modules in Linux. Comment Actions I mean just add a new function for these special allocations and then patch the Linux code. That way we don't need to evaluate the "other" argument for __vmalloc(). Comment Actions Okay, then I think I got this interface wrong. To me it looked like linuxkpi was intended to run Linux drivers without modification. That's why I thought upstreaming this patch might be of interessed. Comment Actions The LinuxKPI is there to be able to compile 95% of the linux code :-) The rest must be patched. |