Project

General

Profile

Actions

Feature #3317

open

010: Usage of a GFP_ATOMIC flag in functions of memory allocation in a context of interrupt.

Added by Vladimir Gratinskiy over 12 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
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);


Related issues 1 (0 open1 closed)

Related to C Instrumentation Framework - Feature #3802: Add ability to refer to function argument by its name specified in aspect fileClosedEvgeny Novikov12/14/2012

Actions
Actions

Also available in: Atom PDF