Files
linux-stable-mirror/tools/perf/util
Namhyung Kim ce1ecccd6d perf tools: Fix build-id event recording
[ Upstream commit 23c44f6c83 ]

The build-id events written at the end of the record session are broken
due to unexpected data.  The write_buildid() writes the fixed length
event first and then variable length filename.

But a recent change made it write more data in the padding area
accidentally.  So readers of the event see zero-filled data for the
next entry and treat it incorrectly.  This resulted in wrong kernel
symbols because the kernel DSO loaded a random vmlinux image in the
path as it didn't have a valid build-id.

Fixes: ae39ba1655 ("perf inject: Fix build ID injection")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/Z0aRFFW9xMh3mqKB@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-19 18:13:10 +01:00
..
2024-08-12 18:05:14 -03:00
2024-08-12 18:05:14 -03:00
2024-05-10 10:52:46 -03:00
2024-07-03 14:59:15 -07:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-12 18:07:10 -03:00
2024-08-12 18:07:10 -03:00
2024-07-31 16:58:18 -03:00
2024-08-30 09:24:27 -03:00
2024-08-30 09:24:27 -03:00
2024-08-12 18:05:14 -03:00
2024-08-12 18:05:14 -03:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2024-08-19 14:51:46 -03:00
2024-09-11 11:27:42 -03:00
2024-08-01 18:55:55 -03:00
2024-09-11 11:27:42 -03:00
2024-09-11 11:27:42 -03:00
2024-09-11 11:29:20 -03:00
2024-09-11 11:29:20 -03:00
2024-09-11 11:27:42 -03:00
2024-08-12 18:05:14 -03:00
2024-09-27 15:38:52 -03:00