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 files75
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Makefile
- fixup-bcm63xx.c
- fixup-capcella.c
- fixup-cobalt.c
- fixup-emma2rh.c
- fixup-fuloong2e.c
- fixup-ip32.c
- fixup-jmr3927.c
- fixup-lantiq.c
- fixup-lemote2f.c
- fixup-loongson3.c
- fixup-malta.c
- fixup-mpc30x.c
- fixup-pmcmsp.c
- fixup-rbtx4927.c
- fixup-rbtx4938.c
- fixup-rc32434.c
- fixup-sb1250.c
- fixup-sni.c
- fixup-tb0219.c
- fixup-tb0226.c
- fixup-tb0287.c
- msi-octeon.c
- msi-xlp.c
- ops-bcm63xx.c
- ops-bonito64.c
- ops-bridge.c
- ops-emma2rh.c
- ops-gt64xxx_pci0.c
- ops-lantiq.c
- ops-loongson2.c
- ops-loongson3.c
- ops-mace.c
- ops-msc.c
- ops-nile4.c
- ops-pmcmsp.c
- ops-rc32434.c
- ops-sni.c
- ops-tx3927.c
- ops-tx4927.c
- ops-vr41xx.c
- pci-alchemy.c
- pci-ar2315.c
- pci-ar71xx.c
- pci-ar724x.c
- pci-bcm1480.c
- pci-bcm1480ht.c
- pci-bcm47xx.c
- pci-bcm63xx.c
- pci-bcm63xx.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/mips/pci/pci-generic.c
C · 1,602 bytes/*
* Copyright (C) 2016 Imagination Technologies
* Author: Paul Burton <[email protected]>
*
* pcibios_align_resource taken from arch/arm/kernel/bios32.c.
*
* 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; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/pci.h>
/*
* We need to avoid collisions with `mirrored' VGA ports
* and other strange ISA hardware, so we always want the
* addresses to be allocated in the 0x000-0x0ff region
* modulo 0x400.
*
* Why? Because some silly external IO cards only decode
* the low 10 bits of the IO address. The 0x00-0xff region
* is reserved for motherboard devices that decode all 16
* bits, so it's ok to allocate at, say, 0x2800-0x28ff,
* but we want to try to avoid allocating at 0x2900-0x2bff
* which might have be mirrored at 0x0100-0x03ff..
*/
resource_size_t pcibios_align_resource(void *data, const struct resource *res,
resource_size_t size, resource_size_t align)
{
struct pci_dev *dev = data;
resource_size_t start = res->start;
struct pci_host_bridge *host_bridge;
if (res->flags & IORESOURCE_IO && start & 0x300)
start = (start + 0x3ff) & ~0x3ff;
start = (start + align - 1) & ~(align - 1);
host_bridge = pci_find_host_bridge(dev->bus);
if (host_bridge->align_resource)
return host_bridge->align_resource(dev, res,
start, size, align);
return start;
}
void pcibios_fixup_bus(struct pci_bus *bus)
{
pci_read_bridge_bases(bus);
}