Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files47
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- .gitignore
- Makefile
- asm-offsets.c
- audit.c
- cache.c
- compat_audit.c
- drivers.c
- entry.S
- firmware.c
- ftrace.c
- hardware.c
- head.S
- hpmc.S
- inventory.c
- irq.c
- module.c
- pa7300lc.c
- pacache.S
- parisc_ksyms.c
- pci-dma.c
- pci.c
- pdc_chassis.c
- pdc_cons.c
- pdt.c
- perf.c
- perf_asm.S
- perf_images.h
- process.c
- processor.c
- ptrace.c
- real2.S
- setup.c
- signal.c
- signal32.c
- signal32.h
- smp.c
- stacktrace.c
- sys_parisc.c
- sys_parisc32.c
- syscall.S
- syscall_table.S
- time.c
- topology.c
- traps.c
- unaligned.c
- unwind.c
- vmlinux.lds.S
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/parisc/kernel/pa7300lc.c
C · 1,166 bytes// SPDX-License-Identifier: GPL-2.0
/*
* linux/arch/parisc/kernel/pa7300lc.c
* - PA7300LC-specific functions
*
* Copyright (C) 2000 Philipp Rumpf */
#include <linux/sched.h>
#include <linux/sched/debug.h>
#include <linux/smp.h>
#include <linux/kernel.h>
#include <asm/io.h>
#include <asm/ptrace.h>
#include <asm/machdep.h>
/* CPU register indices */
#define MIOC_STATUS 0xf040
#define MIOC_CONTROL 0xf080
#define MDERRADD 0xf0e0
#define DMAERR 0xf0e8
#define DIOERR 0xf0ec
#define HIDMAMEM 0xf0f4
/* this returns the HPA of the CPU it was called on */
static u32 cpu_hpa(void)
{
return 0xfffb0000;
}
static void pa7300lc_lpmc(int code, struct pt_regs *regs)
{
u32 hpa;
printk(KERN_WARNING "LPMC on CPU %d\n", smp_processor_id());
show_regs(regs);
hpa = cpu_hpa();
printk(KERN_WARNING
"MIOC_CONTROL %08x\n" "MIOC_STATUS %08x\n"
"MDERRADD %08x\n" "DMAERR %08x\n"
"DIOERR %08x\n" "HIDMAMEM %08x\n",
gsc_readl(hpa+MIOC_CONTROL), gsc_readl(hpa+MIOC_STATUS),
gsc_readl(hpa+MDERRADD), gsc_readl(hpa+DMAERR),
gsc_readl(hpa+DIOERR), gsc_readl(hpa+HIDMAMEM));
}
void pa7300lc_init(void)
{
cpu_lpmc = pa7300lc_lpmc;
}