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 files38
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Build
- arch_errno_names.c
- arch_errno_names.sh
- beauty.h
- clone.c
- drm_ioctl.sh
- eventfd.c
- fcntl.c
- flock.c
- futex_op.c
- futex_val3.c
- ioctl.c
- kcmp.c
- kcmp_type.sh
- kvm_ioctl.sh
- madvise_behavior.sh
- mmap.c
- mode_t.c
- msg_flags.c
- open_flags.c
- perf_event_open.c
- perf_ioctl.sh
- pid.c
- pkey_alloc.c
- pkey_alloc_access_rights.sh
- prctl.c
- prctl_option.sh
- sched_policy.c
- seccomp.c
- signum.c
- sndrv_ctl_ioctl.sh
- sndrv_pcm_ioctl.sh
- socket.c
- socket_ipproto.sh
- socket_type.c
- statx.c
- vhost_virtio_ioctl.sh
- waitid_options.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/perf/trace/beauty/socket.c
C · 789 bytes// SPDX-License-Identifier: GPL-2.0
/*
* trace/beauty/socket.c
*
* Copyright (C) 2018, Red Hat Inc, Arnaldo Carvalho de Melo <[email protected]>
*/
#include "trace/beauty/beauty.h"
#include <sys/types.h>
#include <sys/socket.h>
static size_t socket__scnprintf_ipproto(int protocol, char *bf, size_t size)
{
#include "trace/beauty/generated/socket_ipproto_array.c"
static DEFINE_STRARRAY(socket_ipproto);
return strarray__scnprintf(&strarray__socket_ipproto, bf, size, "%d", protocol);
}
size_t syscall_arg__scnprintf_socket_protocol(char *bf, size_t size, struct syscall_arg *arg)
{
int domain = syscall_arg__val(arg, 0);
if (domain == AF_INET || domain == AF_INET6)
return socket__scnprintf_ipproto(arg->val, bf, size);
return syscall_arg__scnprintf_int(bf, size, arg);
}