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 files81
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- probes/
- vdso/
- .gitignore
- Makefile
- acpi.c
- acpi_numa.c
- acpi_parking_protocol.c
- alternative.c
- arm64ksyms.c
- armv8_deprecated.c
- asm-offsets.c
- cacheinfo.c
- cpu-reset.S
- cpu-reset.h
- cpu_errata.c
- cpu_ops.c
- cpufeature.c
- cpuidle.c
- cpuinfo.c
- crash_core.c
- crash_dump.c
- debug-monitors.c
- efi-entry.S
- efi-header.S
- efi-rt-wrapper.S
- efi.c
- entry-fpsimd.S
- entry-ftrace.S
- entry.S
- fpsimd.c
- ftrace.c
- head.S
- hibernate-asm.S
- hibernate.c
- hw_breakpoint.c
- hyp-stub.S
- image.h
- insn.c
- io.c
- irq.c
- jump_label.c
- kaslr.c
- kgdb.c
- kuser32.S
- machine_kexec.c
- module-plts.c
- module.c
- module.lds
- paravirt.c
- pci.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm64/kernel/sys.c
C · 2,040 bytes/*
* AArch64-specific system calls implementation
*
* Copyright (C) 2012 ARM Ltd.
* Author: Catalin Marinas <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <asm/cpufeature.h>
#include <asm/syscall.h>
SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
unsigned long, prot, unsigned long, flags,
unsigned long, fd, unsigned long, off)
{
if (offset_in_page(off) != 0)
return -EINVAL;
return ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);
}
SYSCALL_DEFINE1(arm64_personality, unsigned int, personality)
{
if (personality(personality) == PER_LINUX32 &&
!system_supports_32bit_el0())
return -EINVAL;
return ksys_personality(personality);
}
asmlinkage long sys_ni_syscall(void);
asmlinkage long __arm64_sys_ni_syscall(const struct pt_regs *__unused)
{
return sys_ni_syscall();
}
/*
* Wrappers to pass the pt_regs argument.
*/
#define __arm64_sys_personality __arm64_sys_arm64_personality
#undef __SYSCALL
#define __SYSCALL(nr, sym) asmlinkage long __arm64_##sym(const struct pt_regs *);
#include <asm/unistd.h>
#undef __SYSCALL
#define __SYSCALL(nr, sym) [nr] = __arm64_##sym,
const syscall_fn_t sys_call_table[__NR_syscalls] = {
[0 ... __NR_syscalls - 1] = __arm64_sys_ni_syscall,
#include <asm/unistd.h>
};