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 files48
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kconfig
- Makefile
- acpi_pcihp.c
- acpiphp.h
- acpiphp_core.c
- acpiphp_glue.c
- acpiphp_ibm.c
- cpci_hotplug.h
- cpci_hotplug_core.c
- cpci_hotplug_pci.c
- cpcihp_generic.c
- cpcihp_zt5550.c
- cpcihp_zt5550.h
- cpqphp.h
- cpqphp_core.c
- cpqphp_ctrl.c
- cpqphp_nvram.c
- cpqphp_nvram.h
- cpqphp_pci.c
- cpqphp_sysfs.c
- ibmphp.h
- ibmphp_core.c
- ibmphp_ebda.c
- ibmphp_hpc.c
- ibmphp_pci.c
- ibmphp_res.c
- pci_hotplug_core.c
- pciehp.h
- pciehp_core.c
- pciehp_ctrl.c
- pciehp_hpc.c
- pciehp_pci.c
- pnv_php.c
- rpadlpar.h
- rpadlpar_core.c
- rpadlpar_sysfs.c
- rpaphp.h
- rpaphp_core.c
- rpaphp_pci.c
- rpaphp_slot.c
- s390_pci_hpc.c
- sgi_hotplug.c
- shpchp.h
- shpchp_core.c
- shpchp_ctrl.c
- shpchp_hpc.c
- shpchp_pci.c
- shpchp_sysfs.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/pci/hotplug/rpaphp.h
Text · 2,287 bytes/* SPDX-License-Identifier: GPL-2.0+ */
/*
* PCI Hot Plug Controller Driver for RPA-compliant PPC64 platform.
*
* Copyright (C) 2003 Linda Xie <[email protected]>
*
* All rights reserved.
*
* Send feedback to <[email protected]>,
*
*/
#ifndef _PPC64PHP_H
#define _PPC64PHP_H
#include <linux/pci.h>
#include <linux/pci_hotplug.h>
#define DR_INDICATOR 9002
#define DR_ENTITY_SENSE 9003
#define POWER_ON 100
#define POWER_OFF 0
#define LED_OFF 0
#define LED_ON 1 /* continuous on */
#define LED_ID 2 /* slow blinking */
#define LED_ACTION 3 /* fast blinking */
/* Sensor values from rtas_get-sensor */
#define EMPTY 0 /* No card in slot */
#define PRESENT 1 /* Card in slot */
#define MY_NAME "rpaphp"
extern bool rpaphp_debug;
#define dbg(format, arg...) \
do { \
if (rpaphp_debug) \
printk(KERN_DEBUG "%s: " format, \
MY_NAME, ## arg); \
} while (0)
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
/* slot states */
#define NOT_VALID 3
#define NOT_CONFIGURED 2
#define CONFIGURED 1
#define EMPTY 0
/* DRC constants */
#define MAX_DRC_NAME_LEN 64
/*
* struct slot - slot information for each *physical* slot
*/
struct slot {
struct list_head rpaphp_slot_list;
int state;
u32 index;
u32 type;
u32 power_domain;
char *name;
struct device_node *dn;
struct pci_bus *bus;
struct list_head *pci_devs;
struct hotplug_slot *hotplug_slot;
};
extern struct hotplug_slot_ops rpaphp_hotplug_slot_ops;
extern struct list_head rpaphp_slot_head;
/* function prototypes */
/* rpaphp_pci.c */
int rpaphp_enable_slot(struct slot *slot);
int rpaphp_get_sensor_state(struct slot *slot, int *state);
/* rpaphp_core.c */
int rpaphp_add_slot(struct device_node *dn);
int rpaphp_check_drc_props(struct device_node *dn, char *drc_name,
char *drc_type);
/* rpaphp_slot.c */
void dealloc_slot_struct(struct slot *slot);
struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_domain);
int rpaphp_register_slot(struct slot *slot);
int rpaphp_deregister_slot(struct slot *slot);
#endif /* _PPC64PHP_H */