From: Masami Hiramatsu Date: Mon, 7 Dec 2009 17:00:46 +0000 (-0500) Subject: perf probe: Fix event namelist to duplicate string X-Git-Tag: v2.6.33-rc1~306^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d2017b24fb31602f1128e6a8b2afc54c9283cd;p=pandora-kernel.git perf probe: Fix event namelist to duplicate string 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: Masami Hiramatsu Cc: systemtap Cc: DLE Cc: Frederic Weisbecker Cc: Arnaldo Carvalho de Melo Cc: Frederic Weisbecker LKML-Reference: <20091207170046.19230.55557.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed