Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files125
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..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/redboot-83xx.c
C · 1,446 bytes/*
* RedBoot firmware support
*
* Author: Scott Wood <[email protected]>
*
* Copyright (c) 2007 Freescale Semiconductor, Inc.
* Copyright (c) 2008 Codehermit
*
* 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 "redboot.h"
#include "fsl-soc.h"
#include "io.h"
static bd_t bd;
BSS_STACK(4096);
#define MHZ(x) ((x + 500000) / 1000000)
static void platform_fixups(void)
{
void *node;
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 / 16, bd.bi_busfreq);
node = finddevice("/soc/cpm/brg");
if (node) {
printf("BRG clock-frequency <- 0x%x (%dMHz)\r\n",
bd.bi_busfreq, MHZ(bd.bi_busfreq));
setprop(node, "clock-frequency", &bd.bi_busfreq, 4);
}
}
void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7)
{
memcpy(&bd, (char *)r3, sizeof(bd));
if (bd.bi_tag != 0x42444944)
return;
simple_alloc_init(_end,
bd.bi_memstart + bd.bi_memsize - (unsigned long)_end,
32, 64);
fdt_init(_dtb_start);
serial_console_init();
platform_ops.fixups = platform_fixups;
loader_info.cmdline = (char *)bd.bi_cmdline;
loader_info.cmdline_len = strlen((char *)bd.bi_cmdline);
}