Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..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/flock.c
C · 902 bytes// SPDX-License-Identifier: GPL-2.0
#include "trace/beauty/beauty.h"
#include <linux/kernel.h>
#include <uapi/linux/fcntl.h>
#ifndef LOCK_MAND
#define LOCK_MAND 32
#endif
#ifndef LOCK_READ
#define LOCK_READ 64
#endif
#ifndef LOCK_WRITE
#define LOCK_WRITE 128
#endif
#ifndef LOCK_RW
#define LOCK_RW 192
#endif
size_t syscall_arg__scnprintf_flock(char *bf, size_t size, struct syscall_arg *arg)
{
int printed = 0, op = arg->val;
if (op == 0)
return scnprintf(bf, size, "NONE");
#define P_CMD(cmd) \
if ((op & LOCK_##cmd) == LOCK_##cmd) { \
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #cmd); \
op &= ~LOCK_##cmd; \
}
P_CMD(SH);
P_CMD(EX);
P_CMD(NB);
P_CMD(UN);
P_CMD(MAND);
P_CMD(RW);
P_CMD(READ);
P_CMD(WRITE);
#undef P_OP
if (op)
printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", op);
return printed;
}