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 files52
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kbuild
- asm-offsets.h
- asm-prototypes.h
- asm.h
- atomic.h
- barrier.h
- bitops.h
- bug.h
- cache.h
- cacheflush.h
- cmpxchg.h
- csr.h
- current.h
- delay.h
- dma-mapping.h
- elf.h
- fence.h
- ftrace.h
- hwcap.h
- io.h
- irq.h
- irqflags.h
- kprobes.h
- linkage.h
- mmu.h
- mmu_context.h
- module.h
- page.h
- pci.h
- perf_event.h
- pgalloc.h
- pgtable-32.h
- pgtable-64.h
- pgtable-bits.h
- pgtable.h
- processor.h
- ptrace.h
- sbi.h
- smp.h
- spinlock.h
- spinlock_types.h
- string.h
- switch_to.h
- syscall.h
- thread_info.h
- timex.h
- tlb.h
- tlbflush.h
- uaccess.h
- unistd.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/riscv/include/asm/current.h
Text · 1,301 bytes/*
* Based on arm/arm64/include/asm/current.h
*
* Copyright (C) 2016 ARM
* Copyright (C) 2017 SiFive
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* 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.
*/
#ifndef __ASM_CURRENT_H
#define __ASM_CURRENT_H
#include <linux/bug.h>
#include <linux/compiler.h>
#ifndef __ASSEMBLY__
struct task_struct;
/*
* This only works because "struct thread_info" is at offset 0 from "struct
* task_struct". This constraint seems to be necessary on other architectures
* as well, but __switch_to enforces it. We can't check TASK_TI here because
* <asm/asm-offsets.h> includes this, and I can't get the definition of "struct
* task_struct" here due to some header ordering problems.
*/
static __always_inline struct task_struct *get_current(void)
{
register struct task_struct *tp __asm__("tp");
return tp;
}
#define current get_current()
#endif /* __ASSEMBLY__ */
#endif /* __ASM_CURRENT_H */