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 files326
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- crypto/
- e820/
- fpu/
- numachip/
- trace/
- uv/
- xen/
- Kbuild
- a.out-core.h
- acenv.h
- acpi.h
- agp.h
- alternative-asm.h
- alternative.h
- amd_nb.h
- apb_timer.h
- apic.h
- apic_flat_64.h
- apicdef.h
- apm.h
- arch_hweight.h
- archrandom.h
- asm-offsets.h
- asm-prototypes.h
- asm.h
- atomic.h
- atomic64_32.h
- atomic64_64.h
- barrier.h
- bios_ebda.h
- bitops.h
- boot.h
- bootparam_utils.h
- bug.h
- bugs.h
- cache.h
- cacheflush.h
- cacheinfo.h
- calgary.h
- ce4100.h
- checksum.h
- checksum_32.h
- checksum_64.h
- clocksource.h
- cmdline.h
- cmpxchg.h
- cmpxchg_32.h
- cmpxchg_64.h
- compat.h
- cpu.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/x86/include/asm/imr.h
Text · 1,849 bytes/*
* imr.h: Isolated Memory Region API
*
* Copyright(c) 2013 Intel Corporation.
* Copyright(c) 2015 Bryan O'Donoghue <[email protected]>
*
* 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
* of the License.
*/
#ifndef _IMR_H
#define _IMR_H
#include <linux/types.h>
/*
* IMR agent access mask bits
* See section 12.7.4.7 from quark-x1000-datasheet.pdf for register
* definitions.
*/
#define IMR_ESRAM_FLUSH BIT(31)
#define IMR_CPU_SNOOP BIT(30) /* Applicable only to write */
#define IMR_RMU BIT(29)
#define IMR_VC1_SAI_ID3 BIT(15)
#define IMR_VC1_SAI_ID2 BIT(14)
#define IMR_VC1_SAI_ID1 BIT(13)
#define IMR_VC1_SAI_ID0 BIT(12)
#define IMR_VC0_SAI_ID3 BIT(11)
#define IMR_VC0_SAI_ID2 BIT(10)
#define IMR_VC0_SAI_ID1 BIT(9)
#define IMR_VC0_SAI_ID0 BIT(8)
#define IMR_CPU_0 BIT(1) /* SMM mode */
#define IMR_CPU BIT(0) /* Non SMM mode */
#define IMR_ACCESS_NONE 0
/*
* Read/Write access-all bits here include some reserved bits
* These are the values firmware uses and are accepted by hardware.
* The kernel defines read/write access-all in the same way as firmware
* in order to have a consistent and crisp definition across firmware,
* bootloader and kernel.
*/
#define IMR_READ_ACCESS_ALL 0xBFFFFFFF
#define IMR_WRITE_ACCESS_ALL 0xFFFFFFFF
/* Number of IMRs provided by Quark X1000 SoC */
#define QUARK_X1000_IMR_MAX 0x08
#define QUARK_X1000_IMR_REGBASE 0x40
/* IMR alignment bits - only bits 31:10 are checked for IMR validity */
#define IMR_ALIGN 0x400
#define IMR_MASK (IMR_ALIGN - 1)
int imr_add_range(phys_addr_t base, size_t size,
unsigned int rmask, unsigned int wmask);
int imr_remove_range(phys_addr_t base, size_t size);
#endif /* _IMR_H */