Actions
Feature #3317
open010: Usage of a GFP_ATOMIC flag in functions of memory allocation in a context of interrupt.
Start date:
08/01/2012
Due date:
08/08/2012 (over 12 years late)
% Done:
100%
Estimated time:
Published in build:
Description
When calling memory allocation function from the context of interrupt it's required to ensure a non-preemptible execution of the function; but in the case of GFP_KERNEL flag, function execution can be preempted, because a greater number of operations to find and allocate memory blocks is executed.
Verification: If some function is positioned as one that "is executed in a context of interrupt" then it's required to ensure checking for a necessary usage of the GFP_ATOMIC flag in the memory allocation functions for kernel modules.
Example:
void* ptr = kmalloc(size, GFP_ATOMIC);
Actions