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 files81
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- include/
- Kconfig
- Makefile
- Makefile.boot
- anubis.h
- bast-ide.c
- bast-irq.c
- bast.h
- common-smdk.c
- common-smdk.h
- common.c
- common.h
- cpufreq-utils.c
- fb-core.h
- gta02.h
- h1940-bluetooth.c
- h1940.h
- iotiming-s3c2410.c
- iotiming-s3c2412.c
- irq-pm.c
- mach-amlm5900.c
- mach-anubis.c
- mach-at2440evb.c
- mach-bast.c
- mach-gta02.c
- mach-h1940.c
- mach-jive.c
- mach-mini2440.c
- mach-n30.c
- mach-nexcoder.c
- mach-osiris-dvs.c
- mach-osiris.c
- mach-otom.c
- mach-qt2410.c
- mach-rx1950.c
- mach-rx3715.c
- mach-s3c2416-dt.c
- mach-smdk2410.c
- mach-smdk2413.c
- mach-smdk2416.c
- mach-smdk2440.c
- mach-smdk2443.c
- mach-tct_hammer.c
- mach-vr1000.c
- mach-vstms.c
- nand-core.h
- osiris.h
- otom.h
- pll-s3c2410.c
- pll-s3c2440-12000000.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/mach-s3c24xx/simtec-nor.c
C · 1,534 bytes// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2008 Simtec Electronics
// http://armlinux.simtec.co.uk/
// Ben Dooks <[email protected]>
//
// Simtec NOR mapping
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/partitions.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <mach/map.h>
#include "bast.h"
#include "simtec.h"
static void simtec_nor_vpp(struct platform_device *pdev, int vpp)
{
unsigned int val;
val = __raw_readb(BAST_VA_CTRL3);
printk(KERN_DEBUG "%s(%d)\n", __func__, vpp);
if (vpp)
val |= BAST_CPLD_CTRL3_ROMWEN;
else
val &= ~BAST_CPLD_CTRL3_ROMWEN;
__raw_writeb(val, BAST_VA_CTRL3);
}
static struct physmap_flash_data simtec_nor_pdata = {
.width = 2,
.set_vpp = simtec_nor_vpp,
.nr_parts = 0,
};
static struct resource simtec_nor_resource[] = {
[0] = DEFINE_RES_MEM(S3C2410_CS1 + 0x4000000, SZ_8M),
};
static struct platform_device simtec_device_nor = {
.name = "physmap-flash",
.id = -1,
.num_resources = ARRAY_SIZE(simtec_nor_resource),
.resource = simtec_nor_resource,
.dev = {
.platform_data = &simtec_nor_pdata,
},
};
void __init nor_simtec_init(void)
{
int ret;
ret = platform_device_register(&simtec_device_nor);
if (ret < 0)
printk(KERN_ERR "failed to register physmap-flash device\n");
else
simtec_nor_vpp(NULL, 1);
}