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 files47
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kconfig
- Makefile
- addr-map.h
- aspenite.c
- avengers_lite.c
- brownstone.c
- clock-mmp2.c
- clock-pxa168.c
- clock-pxa910.c
- clock.c
- clock.h
- common.c
- common.h
- cputype.h
- devices.c
- devices.h
- flint.c
- gplugd.c
- irqs.h
- jasper.c
- mfp-mmp2.h
- mfp-pxa168.h
- mfp-pxa910.h
- mfp.h
- mmp-dt.c
- mmp2-dt.c
- mmp2.c
- mmp2.h
- pm-mmp2.c
- pm-mmp2.h
- pm-pxa910.c
- pm-pxa910.h
- pxa168.c
- pxa168.h
- pxa910.c
- pxa910.h
- regs-apbc.h
- regs-apmu.h
- regs-icu.h
- regs-timers.h
- regs-usb.h
- sram.c
- tavorevb.c
- teton_bga.c
- teton_bga.h
- time.c
- ttc_dkb.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/mach-mmp/clock.h
Text · 1,715 bytes/*
* 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.
*/
#include <linux/clkdev.h>
struct clkops {
void (*enable)(struct clk *);
void (*disable)(struct clk *);
unsigned long (*getrate)(struct clk *);
int (*setrate)(struct clk *, unsigned long);
};
struct clk {
const struct clkops *ops;
void __iomem *clk_rst; /* clock reset control register */
int fnclksel; /* functional clock select (APBC) */
uint32_t enable_val; /* value for clock enable (APMU) */
unsigned long rate;
int enabled;
};
extern struct clkops apbc_clk_ops;
extern struct clkops apmu_clk_ops;
#define APBC_CLK(_name, _reg, _fnclksel, _rate) \
struct clk clk_##_name = { \
.clk_rst = APBC_##_reg, \
.fnclksel = _fnclksel, \
.rate = _rate, \
.ops = &apbc_clk_ops, \
}
#define APBC_CLK_OPS(_name, _reg, _fnclksel, _rate, _ops) \
struct clk clk_##_name = { \
.clk_rst = APBC_##_reg, \
.fnclksel = _fnclksel, \
.rate = _rate, \
.ops = _ops, \
}
#define APMU_CLK(_name, _reg, _eval, _rate) \
struct clk clk_##_name = { \
.clk_rst = APMU_##_reg, \
.enable_val = _eval, \
.rate = _rate, \
.ops = &apmu_clk_ops, \
}
#define APMU_CLK_OPS(_name, _reg, _eval, _rate, _ops) \
struct clk clk_##_name = { \
.clk_rst = APMU_##_reg, \
.enable_val = _eval, \
.rate = _rate, \
.ops = _ops, \
}
#define INIT_CLKREG(_clk, _devname, _conname) \
{ \
.clk = _clk, \
.dev_id = _devname, \
.con_id = _conname, \
}
extern struct clk clk_pxa168_gpio;
extern struct clk clk_pxa168_timers;