Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files69
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kbuild
- arcregs.h
- asm-offsets.h
- atomic.h
- barrier.h
- bitops.h
- bug.h
- cache.h
- cacheflush.h
- checksum.h
- cmpxchg.h
- current.h
- delay.h
- disasm.h
- dma-mapping.h
- dma.h
- dwarf.h
- elf.h
- entry-arcv2.h
- entry-compact.h
- entry.h
- exec.h
- fb.h
- futex.h
- highmem.h
- hugepage.h
- io.h
- irq.h
- irqflags-arcv2.h
- irqflags-compact.h
- irqflags.h
- kdebug.h
- kgdb.h
- kmap_types.h
- kprobes.h
- linkage.h
- mach_desc.h
- mmu.h
- mmu_context.h
- mmzone.h
- module.h
- page.h
- pci.h
- perf_event.h
- pgalloc.h
- pgtable.h
- processor.h
- ptrace.h
- sections.h
- segment.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arc/include/asm/mmzone.h
Text · 989 bytes/*
* Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)
*
* 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.
*/
#ifndef _ASM_ARC_MMZONE_H
#define _ASM_ARC_MMZONE_H
#ifdef CONFIG_DISCONTIGMEM
extern struct pglist_data node_data[];
#define NODE_DATA(nid) (&node_data[nid])
static inline int pfn_to_nid(unsigned long pfn)
{
int is_end_low = 1;
if (IS_ENABLED(CONFIG_ARC_HAS_PAE40))
is_end_low = pfn <= virt_to_pfn(0xFFFFFFFFUL);
/*
* node 0: lowmem: 0x8000_0000 to 0xFFFF_FFFF
* node 1: HIGHMEM w/o PAE40: 0x0 to 0x7FFF_FFFF
* HIGHMEM with PAE40: 0x1_0000_0000 to ...
*/
if (pfn >= ARCH_PFN_OFFSET && is_end_low)
return 0;
return 1;
}
static inline int pfn_valid(unsigned long pfn)
{
int nid = pfn_to_nid(pfn);
return (pfn <= node_end_pfn(nid));
}
#endif /* CONFIG_DISCONTIGMEM */
#endif