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 files156
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kbuild
- adc.h
- addrspace.h
- alignment.h
- asm-offsets.h
- atomic-grb.h
- atomic-irq.h
- atomic-llsc.h
- atomic.h
- barrier.h
- bitops-cas.h
- bitops-grb.h
- bitops-llsc.h
- bitops-op32.h
- bitops.h
- bl_bit.h
- bl_bit_32.h
- bl_bit_64.h
- bug.h
- bugs.h
- cache.h
- cache_insns.h
- cache_insns_32.h
- cache_insns_64.h
- cacheflush.h
- checksum.h
- checksum_32.h
- clock.h
- cmpxchg-cas.h
- cmpxchg-grb.h
- cmpxchg-irq.h
- cmpxchg-llsc.h
- cmpxchg-xchg.h
- cmpxchg.h
- device.h
- dma-register.h
- dma.h
- dmabrg.h
- dwarf.h
- elf.h
- entry-macros.S
- extable.h
- fb.h
- fixmap.h
- flat.h
- fpu.h
- freq.h
- ftrace.h
- futex-cas.h
- futex-irq.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/sh/include/asm/mmu_context_32.h
Text · 1,308 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_MMU_CONTEXT_32_H
#define __ASM_SH_MMU_CONTEXT_32_H
/*
* Destroy context related info for an mm_struct that is about
* to be put to rest.
*/
static inline void destroy_context(struct mm_struct *mm)
{
/* Do nothing */
}
#ifdef CONFIG_CPU_HAS_PTEAEX
static inline void set_asid(unsigned long asid)
{
__raw_writel(asid, MMU_PTEAEX);
}
static inline unsigned long get_asid(void)
{
return __raw_readl(MMU_PTEAEX) & MMU_CONTEXT_ASID_MASK;
}
#else
static inline void set_asid(unsigned long asid)
{
unsigned long __dummy;
__asm__ __volatile__ ("mov.l %2, %0\n\t"
"and %3, %0\n\t"
"or %1, %0\n\t"
"mov.l %0, %2"
: "=&r" (__dummy)
: "r" (asid), "m" (__m(MMU_PTEH)),
"r" (0xffffff00));
}
static inline unsigned long get_asid(void)
{
unsigned long asid;
__asm__ __volatile__ ("mov.l %1, %0"
: "=r" (asid)
: "m" (__m(MMU_PTEH)));
asid &= MMU_CONTEXT_ASID_MASK;
return asid;
}
#endif /* CONFIG_CPU_HAS_PTEAEX */
/* MMU_TTB is used for optimizing the fault handling. */
static inline void set_TTB(pgd_t *pgd)
{
__raw_writel((unsigned long)pgd, MMU_TTB);
}
static inline pgd_t *get_TTB(void)
{
return (pgd_t *)__raw_readl(MMU_TTB);
}
#endif /* __ASM_SH_MMU_CONTEXT_32_H */