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 files107
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kconfig
- Makefile
- abort-ev4.S
- abort-ev4t.S
- abort-ev5t.S
- abort-ev5tj.S
- abort-ev6.S
- abort-ev7.S
- abort-lv4t.S
- abort-macro.S
- abort-nommu.S
- alignment.c
- cache-aurora-l2.h
- cache-b15-rac.c
- cache-fa.S
- cache-feroceon-l2.c
- cache-l2x0-pmu.c
- cache-l2x0.c
- cache-nop.S
- cache-tauros2.c
- cache-tauros3.h
- cache-uniphier.c
- cache-v4.S
- cache-v4wb.S
- cache-v4wt.S
- cache-v6.S
- cache-v7.S
- cache-v7m.S
- cache-xsc3l2.c
- context.c
- copypage-fa.c
- copypage-feroceon.c
- copypage-v4mc.c
- copypage-v4wb.c
- copypage-v4wt.c
- copypage-v6.c
- copypage-xsc3.c
- copypage-xscale.c
- dma-mapping-nommu.c
- dma-mapping.c
- dma.h
- dump.c
- extable.c
- fault-armv.c
- fault.c
- fault.h
- flush.c
- fsr-2level.c
- fsr-3level.c
- highmem.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/mm/hugetlbpage.c
C · 1,311 bytes/*
* arch/arm/mm/hugetlbpage.c
*
* Copyright (C) 2012 ARM Ltd.
*
* Based on arch/x86/include/asm/hugetlb.h and Bill Carson's patches
*
* 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.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/pagemap.h>
#include <linux/err.h>
#include <linux/sysctl.h>
#include <asm/mman.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#include <asm/pgalloc.h>
/*
* On ARM, huge pages are backed by pmd's rather than pte's, so we do a lot
* of type casting from pmd_t * to pte_t *.
*/
int pud_huge(pud_t pud)
{
return 0;
}
int pmd_huge(pmd_t pmd)
{
return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT);
}