• M
    perf probe: Fix event namelist to duplicate string · e1d2017b
    Masami Hiramatsu 提交于
    Fix event namelist to duplicate string. Without duplicating, adding
    multiple probes causes stack overwrite bug, because it reuses a
    buffer on stack while the buffer is already added in the namelist.
    String duplication solves this bug because only contents of the
    buffer is copied to the namelist.
    Signed-off-by: NMasami Hiramatsu <mhiramat@redhat.com>
    Cc: systemtap <systemtap@sources.redhat.com>
    Cc: DLE <dle-develop@lists.sourceforge.net>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <20091207170046.19230.55557.stgit@dhcp-100-2-132.bos.redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    e1d2017b
probe-event.c 11.2 KB