Exploit database

GH-b6f78b211ff4ea5e7b3ebffe1f088758

abrarkhan/linux-4.19.72_cve-2020-24490

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-24490

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files38

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

tools/perf/trace/beauty/futex_val3.c

C · 464 bytes
// SPDX-License-Identifier: GPL-2.0
#include <linux/futex.h>

#ifndef FUTEX_BITSET_MATCH_ANY
#define FUTEX_BITSET_MATCH_ANY 0xffffffff
#endif

static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg)
{
	unsigned int bitset = arg->val;

	if (bitset == FUTEX_BITSET_MATCH_ANY)
		return scnprintf(bf, size, "MATCH_ANY");

	return scnprintf(bf, size, "%#xd", bitset);
}

#define SCA_FUTEX_VAL3  syscall_arg__scnprintf_futex_val3