Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files81
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- .gitignore
- Makefile
- asm-offsets.c
- audit.c
- binfmt_loader.c
- bugs.c
- console.c
- core_apecs.c
- core_cia.c
- core_irongate.c
- core_lca.c
- core_marvel.c
- core_mcpcia.c
- core_polaris.c
- core_t2.c
- core_titan.c
- core_tsunami.c
- core_wildfire.c
- entry.S
- err_common.c
- err_ev6.c
- err_ev7.c
- err_impl.h
- err_marvel.c
- err_titan.c
- es1888.c
- gct.c
- head.S
- io.c
- irq.c
- irq_alpha.c
- irq_i8259.c
- irq_impl.h
- irq_pyxis.c
- irq_srm.c
- machvec_impl.h
- module.c
- osf_sys.c
- pc873xx.c
- pc873xx.h
- pci-noop.c
- pci-sysfs.c
- pci.c
- pci_impl.h
- pci_iommu.c
- perf_event.c
- process.c
- proto.h
- ptrace.c
- rtc.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/alpha/kernel/bugs.c
C · 1,124 bytes
#include <asm/hwrpb.h>
#include <linux/device.h>
#ifdef CONFIG_SYSFS
static int cpu_is_ev6_or_later(void)
{
struct percpu_struct *cpu;
unsigned long cputype;
cpu = (struct percpu_struct *)((char *)hwrpb + hwrpb->processor_offset);
cputype = cpu->type & 0xffffffff;
/* Include all of EV6, EV67, EV68, EV7, EV79 and EV69. */
return (cputype == EV6_CPU) || ((cputype >= EV67_CPU) && (cputype <= EV69_CPU));
}
ssize_t cpu_show_meltdown(struct device *dev,
struct device_attribute *attr, char *buf)
{
if (cpu_is_ev6_or_later())
return sprintf(buf, "Vulnerable\n");
else
return sprintf(buf, "Not affected\n");
}
ssize_t cpu_show_spectre_v1(struct device *dev,
struct device_attribute *attr, char *buf)
{
if (cpu_is_ev6_or_later())
return sprintf(buf, "Vulnerable\n");
else
return sprintf(buf, "Not affected\n");
}
ssize_t cpu_show_spectre_v2(struct device *dev,
struct device_attribute *attr, char *buf)
{
if (cpu_is_ev6_or_later())
return sprintf(buf, "Vulnerable\n");
else
return sprintf(buf, "Not affected\n");
}
#endif