• S
    function-graph: add proper initialization for init task · 5ac9f622
    Steven Rostedt 提交于
    Impact: fix to crash going to kexec
    
    The init task did not properly initialize the function graph pointers.
    Altough these pointers are NULL, they can not be assumed to be NULL
    for the init task, and must still be properly initialize.
    
    This usually is not an issue since a problem only arises when a task
    exits, and the init tasks do not usually exit. But when doing tests
    with kexec, the init tasks do exit, and the bug appears.
    
    This patch properly initializes the init tasks function graph data
    structures.
    Reported-and-Tested-by: NYinghai Lu <yinghai@kernel.org>
    LKML-Reference: <alpine.DEB.2.00.0903252053080.5675@gandalf.stny.rr.com>
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    5ac9f622
init_task.h 5.5 KB