summaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation/Makefile
diff options
context:
space:
mode:
authorHe Zhe2019-08-02 10:29:52 +0200
committerArnaldo Carvalho de Melo2019-08-08 20:41:10 +0200
commit5f5e25f1c7933a6e1673515c0b1d5acd82fea1ed (patch)
treee4d1b719ffea2b873448060a191da46c85f34dea /tools/perf/Documentation/Makefile
parentperf ftrace: Fix failure to set cpumask when only one cpu is present (diff)
downloadkernel-qcow2-linux-5f5e25f1c7933a6e1673515c0b1d5acd82fea1ed.tar.gz
kernel-qcow2-linux-5f5e25f1c7933a6e1673515c0b1d5acd82fea1ed.tar.xz
kernel-qcow2-linux-5f5e25f1c7933a6e1673515c0b1d5acd82fea1ed.zip
perf cpumap: Fix writing to illegal memory in handling cpumap mask
cpu_map__snprint_mask() would write to illegal memory pointed by zalloc(0) when there is only one cpu. This patch fixes the calculation and adds sanity check against the input parameters. Signed-off-by: He Zhe <zhe.he@windriver.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Fixes: 4400ac8a9a90 ("perf cpumap: Introduce cpu_map__snprint_mask()") Link: http://lkml.kernel.org/r/1564734592-15624-2-git-send-email-zhe.he@windriver.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation/Makefile')
0 files changed, 0 insertions, 0 deletions