Commit d92d7ef5 authored by Ian Rogers's avatar Ian Rogers Committed by Zheng Zengkai
Browse files

perf synthetic events: Avoid write of uninitialized memory when generating...


perf synthetic events: Avoid write of uninitialized memory when generating PERF_RECORD_MMAP* records

stable inclusion
from stable-5.10.27
commit efb334c4e5ffd98d1de9d0ede16703ced913ad71
bugzilla: 51493

--------------------------------

[ Upstream commit 2a76f6de ]

Account for alignment bytes in the zero-ing memset.

Fixes: 1a853e36 ("perf record: Allow specifying a pid to record")
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210309234945.419254-1-irogers@google.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 975e3ebe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment