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/cmpxchg-llsc.h
Text · 1,085 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_CMPXCHG_LLSC_H
#define __ASM_SH_CMPXCHG_LLSC_H
static inline unsigned long xchg_u32(volatile u32 *m, unsigned long val)
{
unsigned long retval;
unsigned long tmp;
__asm__ __volatile__ (
"1: \n\t"
"movli.l @%2, %0 ! xchg_u32 \n\t"
"mov %0, %1 \n\t"
"mov %3, %0 \n\t"
"movco.l %0, @%2 \n\t"
"bf 1b \n\t"
"synco \n\t"
: "=&z"(tmp), "=&r" (retval)
: "r" (m), "r" (val)
: "t", "memory"
);
return retval;
}
static inline unsigned long
__cmpxchg_u32(volatile u32 *m, unsigned long old, unsigned long new)
{
unsigned long retval;
unsigned long tmp;
__asm__ __volatile__ (
"1: \n\t"
"movli.l @%2, %0 ! __cmpxchg_u32 \n\t"
"mov %0, %1 \n\t"
"cmp/eq %1, %3 \n\t"
"bf 2f \n\t"
"mov %4, %0 \n\t"
"2: \n\t"
"movco.l %0, @%2 \n\t"
"bf 1b \n\t"
"synco \n\t"
: "=&z" (tmp), "=&r" (retval)
: "r" (m), "r" (old), "r" (new)
: "t", "memory"
);
return retval;
}
#include <asm/cmpxchg-xchg.h>
#endif /* __ASM_SH_CMPXCHG_LLSC_H */