In trace-cmd agent context, when getting the tracing directory, a bug using srtcpy() was instroduced by that commit: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/commit/?id=b8498696e0e8d7b7cce8f50f92e1fa94d9127e6e Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx> --- tracecmd/trace-record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index a0a0b8b5..efd96d27 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -3341,7 +3341,7 @@ static int create_recorder(struct buffer_instance *instance, int cpu, const char *dir = tracefs_tracing_dir(); if (dir) - path = strdup(path); + path = strdup(dir); } if (!path) die("can't get the tracing directory"); -- 2.29.2