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 files154
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- .gitignore
- Makefile
- adi_64.c
- apc.c
- asm-offsets.c
- audit.c
- auxio_32.c
- auxio_64.c
- btext.c
- central.c
- cherrs.S
- chmc.c
- compat_audit.c
- cpu.c
- cpumap.c
- cpumap.h
- devices.c
- ds.c
- dtlb_miss.S
- dtlb_prot.S
- ebus.c
- entry.S
- entry.h
- etrap_32.S
- etrap_64.S
- fpu_traps.S
- ftrace.c
- getsetcc.S
- head_32.S
- head_64.S
- helpers.S
- hvapi.c
- hvcalls.S
- hvtramp.S
- idprom.c
- iommu-common.c
- iommu.c
- iommu_common.h
- ioport.c
- irq.h
- irq_32.c
- irq_64.c
- itlb_miss.S
- ivec.S
- jump_label.c
- kernel.h
- kgdb_32.c
- kgdb_64.c
- kprobes.c
- kstack.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/sparc/kernel/psycho_common.h
Text · 1,463 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PSYCHO_COMMON_H
#define _PSYCHO_COMMON_H
/* U2P Programmer's Manual, page 13-55, configuration space
* address format:
*
* 32 24 23 16 15 11 10 8 7 2 1 0
* ---------------------------------------------------------
* |0 0 0 0 0 0 0 0 1| bus | device | function | reg | 0 0 |
* ---------------------------------------------------------
*/
#define PSYCHO_CONFIG_BASE(PBM) \
((PBM)->config_space | (1UL << 24))
#define PSYCHO_CONFIG_ENCODE(BUS, DEVFN, REG) \
(((unsigned long)(BUS) << 16) | \
((unsigned long)(DEVFN) << 8) | \
((unsigned long)(REG)))
static inline void *psycho_pci_config_mkaddr(struct pci_pbm_info *pbm,
unsigned char bus,
unsigned int devfn,
int where)
{
return (void *)
(PSYCHO_CONFIG_BASE(pbm) |
PSYCHO_CONFIG_ENCODE(bus, devfn, where));
}
enum psycho_error_type {
UE_ERR, CE_ERR, PCI_ERR
};
void psycho_check_iommu_error(struct pci_pbm_info *pbm,
unsigned long afsr,
unsigned long afar,
enum psycho_error_type type);
irqreturn_t psycho_pcierr_intr(int irq, void *dev_id);
int psycho_iommu_init(struct pci_pbm_info *pbm, int tsbsize,
u32 dvma_offset, u32 dma_mask,
unsigned long write_complete_offset);
void psycho_pbm_init_common(struct pci_pbm_info *pbm,
struct platform_device *op,
const char *chip_name, int chip_type);
#endif /* _PSYCHO_COMMON_H */