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/treeboot-bamboo.c
C · 1,041 bytes/*
* Copyright IBM Corporation, 2007
* Josh Boyer <[email protected]>
*
* Based on ebony wrapper:
* Copyright 2007 David Gibson, IBM Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the License
*/
#include "ops.h"
#include "stdio.h"
#include "44x.h"
#include "stdlib.h"
BSS_STACK(4096);
#define PIBS_MAC0 0xfffc0400
#define PIBS_MAC1 0xfffc0500
char pibs_mac0[6];
char pibs_mac1[6];
static void read_pibs_mac(void)
{
unsigned long long mac64;
mac64 = strtoull((char *)PIBS_MAC0, 0, 16);
memcpy(&pibs_mac0, (char *)&mac64+2, 6);
mac64 = strtoull((char *)PIBS_MAC1, 0, 16);
memcpy(&pibs_mac1, (char *)&mac64+2, 6);
}
void platform_init(void)
{
unsigned long end_of_ram = 0x8000000;
unsigned long avail_ram = end_of_ram - (unsigned long)_end;
simple_alloc_init(_end, avail_ram, 32, 64);
read_pibs_mac();
bamboo_init((u8 *)&pibs_mac0, (u8 *)&pibs_mac1);
}