Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..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/kcmp.c
C · 1,208 bytes/*
* trace/beauty/kcmp.c
*
* Copyright (C) 2017, Red Hat Inc, Arnaldo Carvalho de Melo <[email protected]>
*
* Released under the GPL v2. (and only v2, not any later version)
*/
#include "trace/beauty/beauty.h"
#include <linux/kernel.h>
#include <sys/types.h>
#include <machine.h>
#include <uapi/linux/kcmp.h>
#include "trace/beauty/generated/kcmp_type_array.c"
size_t syscall_arg__scnprintf_kcmp_idx(char *bf, size_t size, struct syscall_arg *arg)
{
unsigned long fd = arg->val;
int type = syscall_arg__val(arg, 2);
pid_t pid;
if (type != KCMP_FILE)
return syscall_arg__scnprintf_long(bf, size, arg);
pid = syscall_arg__val(arg, arg->idx == 3 ? 0 : 1); /* idx1 -> pid1, idx2 -> pid2 */
return pid__scnprintf_fd(arg->trace, pid, fd, bf, size);
}
static size_t kcmp__scnprintf_type(int type, char *bf, size_t size)
{
static DEFINE_STRARRAY(kcmp_types);
return strarray__scnprintf(&strarray__kcmp_types, bf, size, "%d", type);
}
size_t syscall_arg__scnprintf_kcmp_type(char *bf, size_t size, struct syscall_arg *arg)
{
unsigned long type = arg->val;
if (type != KCMP_FILE)
arg->mask |= (1 << 3) | (1 << 4); /* Ignore idx1 and idx2 */
return kcmp__scnprintf_type(type, bf, size);
}