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 files51
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kconfig
- Makefile
- amd_iommu.c
- amd_iommu_debugfs.c
- amd_iommu_init.c
- amd_iommu_proto.h
- amd_iommu_types.h
- amd_iommu_v2.c
- arm-smmu-regs.h
- arm-smmu-v3.c
- arm-smmu.c
- dma-iommu.c
- dmar.c
- exynos-iommu.c
- fsl_pamu.c
- fsl_pamu.h
- fsl_pamu_domain.c
- fsl_pamu_domain.h
- intel-iommu.c
- intel-pasid.c
- intel-pasid.h
- intel-svm.c
- intel_irq_remapping.c
- io-pgtable-arm-v7s.c
- io-pgtable-arm.c
- io-pgtable.c
- io-pgtable.h
- iommu-debugfs.c
- iommu-sysfs.c
- iommu-traces.c
- iommu.c
- iova.c
- ipmmu-vmsa.c
- irq_remapping.c
- irq_remapping.h
- msm_iommu.c
- msm_iommu.h
- msm_iommu_hw-8xxx.h
- mtk_iommu.c
- mtk_iommu.h
- mtk_iommu_v1.c
- of_iommu.c
- omap-iommu-debug.c
- omap-iommu.c
- omap-iommu.h
- omap-iopgtable.h
- qcom_iommu.c
- rockchip-iommu.c
- s390-iommu.c
- tegra-gart.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/iommu/mtk_iommu.h
Text · 2,076 bytes/*
* Copyright (c) 2015-2016 MediaTek Inc.
* Author: Honghui Zhang <[email protected]>
*
* 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.
*/
#ifndef _MTK_IOMMU_H_
#define _MTK_IOMMU_H_
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/iommu.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <soc/mediatek/smi.h>
#include "io-pgtable.h"
struct mtk_iommu_suspend_reg {
u32 standard_axi_mode;
u32 dcm_dis;
u32 ctrl_reg;
u32 int_control0;
u32 int_main_control;
u32 ivrp_paddr;
};
enum mtk_iommu_plat {
M4U_MT2701,
M4U_MT2712,
M4U_MT8173,
};
struct mtk_iommu_domain;
struct mtk_iommu_data {
void __iomem *base;
int irq;
struct device *dev;
struct clk *bclk;
phys_addr_t protect_base; /* protect memory base */
struct mtk_iommu_suspend_reg reg;
struct mtk_iommu_domain *m4u_dom;
struct iommu_group *m4u_group;
struct mtk_smi_iommu smi_imu; /* SMI larb iommu info */
bool enable_4GB;
bool tlb_flush_active;
struct iommu_device iommu;
enum mtk_iommu_plat m4u_plat;
struct list_head list;
};
static inline int compare_of(struct device *dev, void *data)
{
return dev->of_node == data;
}
static inline void release_of(struct device *dev, void *data)
{
of_node_put(data);
}
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
return component_bind_all(dev, &data->smi_imu);
}
static inline void mtk_iommu_unbind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
component_unbind_all(dev, &data->smi_imu);
}
#endif