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 files45
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kbuild
- assembler.h
- barrier.h
- bitops.h
- bug.h
- cache.h
- cacheflush.h
- checksum.h
- cmpxchg.h
- cpu-single.h
- cputype.h
- delay.h
- dma-mapping.h
- dma.h
- elf.h
- fpstate.h
- fpu-ucf64.h
- gpio.h
- hwcap.h
- hwdef-copro.h
- io.h
- irq.h
- irqflags.h
- linkage.h
- memblock.h
- memory.h
- mmu.h
- mmu_context.h
- page.h
- pci.h
- pgalloc.h
- pgtable-hwdef.h
- pgtable.h
- processor.h
- ptrace.h
- stacktrace.h
- string.h
- suspend.h
- switch_to.h
- thread_info.h
- timex.h
- tlb.h
- tlbflush.h
- traps.h
- uaccess.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/unicore32/include/asm/irqflags.h
Text · 1,051 bytes/*
* linux/arch/unicore32/include/asm/irqflags.h
*
* Code specific to PKUnity SoC and UniCore ISA
*
* Copyright (C) 2001-2010 GUAN Xue-tao
*
* 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.
*/
#ifndef __UNICORE_IRQFLAGS_H__
#define __UNICORE_IRQFLAGS_H__
#ifdef __KERNEL__
#include <asm/ptrace.h>
#define ARCH_IRQ_DISABLED (PRIV_MODE | PSR_I_BIT)
#define ARCH_IRQ_ENABLED (PRIV_MODE)
/*
* Save the current interrupt enable state.
*/
static inline unsigned long arch_local_save_flags(void)
{
unsigned long temp;
asm volatile("mov %0, asr" : "=r" (temp) : : "memory", "cc");
return temp & PSR_c;
}
/*
* restore saved IRQ state
*/
static inline void arch_local_irq_restore(unsigned long flags)
{
unsigned long temp;
asm volatile(
"mov %0, asr\n"
"mov.a asr, %1\n"
"mov.f asr, %0"
: "=&r" (temp)
: "r" (flags)
: "memory", "cc");
}
#include <asm-generic/irqflags.h>
#endif
#endif