• Li Zefan's avatar
    ksym_tracer: Remove trace_stat · 53ab6680
    Li Zefan authored
    trace_stat is problematic. Don't use it, use seqfile instead.
    
    This fixes a race that reading the stat file is not protected by
    any lock, which can lead to use after free.
    Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: K.Prasad <prasad@linux.vnet.ibm.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <4B3AF203.40200@cn.fujitsu.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    53ab6680
trace_ksym.c 12.2 KB