• X
    perf_event: Fix raw event processing · d8bd9e0a
    Xiao Guangrong 提交于
    We use 'data.raw_data' parameter to call process_raw_event(),
    but data.raw_data buffer not include data size. it can make perf
    tool crash.
    
    This bug was introduced by commit 180f95e2 ("perf: Make common
    SAMPLE_EVENT parser").
    Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
    Cc: Pekka Enberg <penberg@cs.helsinki.fi>
    Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Li Zefan <lizf@cn.fujitsu.com>
    LKML-Reference: <4B1C7F45.5080105@cn.fujitsu.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    d8bd9e0a
builtin-sched.c 43.2 KB