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 files55
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kbuild
- asm-compat.h
- asm-offsets.h
- atomic.h
- cache.h
- cacheflush.h
- checksum.h
- cmpxchg.h
- cpuinfo.h
- cputable.h
- current.h
- delay.h
- dma.h
- elf.h
- entry.h
- exceptions.h
- fixmap.h
- flat.h
- ftrace.h
- futex.h
- hash.h
- highmem.h
- hw_irq.h
- io.h
- irq.h
- irqflags.h
- kgdb.h
- mmu.h
- mmu_context.h
- mmu_context_mm.h
- module.h
- page.h
- pci-bridge.h
- pci.h
- pgalloc.h
- pgtable.h
- processor.h
- ptrace.h
- pvr.h
- registers.h
- seccomp.h
- sections.h
- setup.h
- string.h
- switch_to.h
- syscall.h
- thread_info.h
- timex.h
- tlb.h
- tlbflush.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/microblaze/include/asm/cmpxchg.h
Text · 919 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_MICROBLAZE_CMPXCHG_H
#define _ASM_MICROBLAZE_CMPXCHG_H
#include <linux/irqflags.h>
void __bad_xchg(volatile void *ptr, int size);
static inline unsigned long __xchg(unsigned long x, volatile void *ptr,
int size)
{
unsigned long ret;
unsigned long flags;
switch (size) {
case 1:
local_irq_save(flags);
ret = *(volatile unsigned char *)ptr;
*(volatile unsigned char *)ptr = x;
local_irq_restore(flags);
break;
case 4:
local_irq_save(flags);
ret = *(volatile unsigned long *)ptr;
*(volatile unsigned long *)ptr = x;
local_irq_restore(flags);
break;
default:
__bad_xchg(ptr, size), ret = 0;
break;
}
return ret;
}
#define xchg(ptr, x) \
((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
#include <asm-generic/cmpxchg.h>
#include <asm-generic/cmpxchg-local.h>
#endif /* _ASM_MICROBLAZE_CMPXCHG_H */