Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files240
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- c++/
- cs-etm-decoder/
- include/
- intel-pt-decoder/
- libunwind/
- scripting-engines/
- Build
- PERF-VERSION-GEN
- annotate.c
- annotate.h
- arm-spe-pkt-decoder.c
- arm-spe-pkt-decoder.h
- arm-spe.c
- arm-spe.h
- auxtrace.c
- auxtrace.h
- block-range.c
- block-range.h
- bpf-loader.c
- bpf-loader.h
- bpf-prologue.c
- bpf-prologue.h
- branch.c
- branch.h
- build-id.c
- build-id.h
- cache.h
- call-path.c
- call-path.h
- callchain.c
- callchain.h
- cgroup.c
- cgroup.h
- cloexec.c
- cloexec.h
- color.c
- color.h
- comm.c
- comm.h
- compress.h
- config.c
- config.h
- counts.c
- counts.h
- cpumap.c
- cpumap.h
- cs-etm.c
- cs-etm.h
- ctype.c
- data-convert-bt.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/perf/util/find-vdso-map.c
C · 617 bytes// SPDX-License-Identifier: GPL-2.0
static int find_vdso_map(void **start, void **end)
{
FILE *maps;
char line[128];
int found = 0;
maps = fopen("/proc/self/maps", "r");
if (!maps) {
fprintf(stderr, "vdso: cannot open maps\n");
return -1;
}
while (!found && fgets(line, sizeof(line), maps)) {
int m = -1;
/* We care only about private r-x mappings. */
if (2 != sscanf(line, "%p-%p r-xp %*x %*x:%*x %*u %n",
start, end, &m))
continue;
if (m < 0)
continue;
if (!strncmp(&line[m], VDSO__MAP_NAME,
sizeof(VDSO__MAP_NAME) - 1))
found = 1;
}
fclose(maps);
return !found;
}