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 files19
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Makefile
- bitops.c
- bswapdi.c
- bswapsi.c
- csum_partial.S
- delay.c
- dump_tlb.c
- iomap-pci.c
- iomap.c
- iomap_copy.c
- libgcc.h
- memcpy.S
- memset.S
- mips-atomic.c
- multi3.c
- r3k_dump_tlb.c
- strncpy_user.S
- strnlen_user.S
- uncached.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/mips/lib/iomap_copy.c
C · 1,422 bytes/*
* This file is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <linux/export.h>
#include <linux/io.h>
/**
* __ioread64_copy - copy data from MMIO space, in 64-bit units
* @to: destination (must be 64-bit aligned)
* @from: source, in MMIO space (must be 64-bit aligned)
* @count: number of 64-bit quantities to copy
*
* Copy data from MMIO space to kernel space, in units of 32 or 64 bits at a
* time. Order of access is not guaranteed, nor is a memory barrier
* performed afterwards.
*/
void __ioread64_copy(void *to, const void __iomem *from, size_t count)
{
#ifdef CONFIG_64BIT
u64 *dst = to;
const u64 __iomem *src = from;
const u64 __iomem *end = src + count;
while (src < end)
*dst++ = __raw_readq(src++);
#else
__ioread32_copy(to, from, count * 2);
#endif
}
EXPORT_SYMBOL_GPL(__ioread64_copy);