Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files125
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- dts/
- .gitignore
- 44x.h
- 4xx.c
- 4xx.h
- Makefile
- README
- addnote.c
- bamboo.c
- cpm-serial.c
- crt0.S
- crtsavres.S
- cuboot-52xx.c
- cuboot-824x.c
- cuboot-83xx.c
- cuboot-85xx-cpm2.c
- cuboot-85xx.c
- cuboot-8xx.c
- cuboot-acadia.c
- cuboot-amigaone.c
- cuboot-bamboo.c
- cuboot-ebony.c
- cuboot-hotfoot.c
- cuboot-katmai.c
- cuboot-kilauea.c
- cuboot-mpc7448hpc2.c
- cuboot-pq2.c
- cuboot-rainier.c
- cuboot-sam440ep.c
- cuboot-sequoia.c
- cuboot-taishan.c
- cuboot-warp.c
- cuboot-yosemite.c
- cuboot.c
- cuboot.h
- dcr.h
- decompress.c
- devtree.c
- div64.S
- dummy.c
- ebony.c
- elf.h
- elf_util.c
- ep405.c
- ep8248e.c
- ep88xc.c
- epapr-wrapper.c
- epapr.c
- fixed-head.S
- fixup-headers.sed
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/powerpc/boot/cuboot-52xx.c
C · 1,660 bytes/*
* Old U-boot compatibility for MPC5200
*
* Author: Grant Likely <[email protected]>
*
* Copyright (c) 2007 Secret Lab Technologies Ltd.
* Copyright (c) 2007 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "ops.h"
#include "stdio.h"
#include "io.h"
#include "cuboot.h"
#define TARGET_PPC_MPC52xx
#include "ppcboot.h"
static bd_t bd;
static void platform_fixups(void)
{
void *soc, *reg;
int div;
u32 sysfreq;
dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
dt_fixup_mac_addresses(bd.bi_enetaddr);
dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
/* Unfortunately, the specific model number is encoded in the
* soc node name in existing dts files -- once that is fixed,
* this can do a simple path lookup.
*/
soc = find_node_by_devtype(NULL, "soc");
if (!soc)
soc = find_node_by_compatible(NULL, "fsl,mpc5200-immr");
if (!soc)
soc = find_node_by_compatible(NULL, "fsl,mpc5200b-immr");
if (soc) {
setprop(soc, "bus-frequency", &bd.bi_ipbfreq,
sizeof(bd.bi_ipbfreq));
if (!dt_xlate_reg(soc, 0, (void*)®, NULL))
return;
div = in_8(reg + 0x204) & 0x0020 ? 8 : 4;
sysfreq = bd.bi_busfreq * div;
setprop(soc, "system-frequency", &sysfreq, sizeof(sysfreq));
}
}
void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7)
{
CUBOOT_INIT();
fdt_init(_dtb_start);
serial_console_init();
platform_ops.fixups = platform_fixups;
}