Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 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/perf_event_open.c
C · 1,030 bytes// SPDX-License-Identifier: GPL-2.0
#ifndef PERF_FLAG_FD_NO_GROUP
# define PERF_FLAG_FD_NO_GROUP (1UL << 0)
#endif
#ifndef PERF_FLAG_FD_OUTPUT
# define PERF_FLAG_FD_OUTPUT (1UL << 1)
#endif
#ifndef PERF_FLAG_PID_CGROUP
# define PERF_FLAG_PID_CGROUP (1UL << 2) /* pid=cgroup id, per-cpu mode only */
#endif
#ifndef PERF_FLAG_FD_CLOEXEC
# define PERF_FLAG_FD_CLOEXEC (1UL << 3) /* O_CLOEXEC */
#endif
static size_t syscall_arg__scnprintf_perf_flags(char *bf, size_t size,
struct syscall_arg *arg)
{
int printed = 0, flags = arg->val;
if (flags == 0)
return 0;
#define P_FLAG(n) \
if (flags & PERF_FLAG_##n) { \
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
flags &= ~PERF_FLAG_##n; \
}
P_FLAG(FD_NO_GROUP);
P_FLAG(FD_OUTPUT);
P_FLAG(PID_CGROUP);
P_FLAG(FD_CLOEXEC);
#undef P_FLAG
if (flags)
printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags);
return printed;
}
#define SCA_PERF_FLAGS syscall_arg__scnprintf_perf_flags