android_kernel_oneplus_msm8998/drivers/iommu
Patrick Daly 23daa77f24 iommu/arm-smmu: Fix a Null pointer dereference
Introduced by 99afd0531465fdaa95aaf5d0a9b73f7669d0f9c7.
"iommu/arm-smmu: Be explicit about security mechanism"

Internal error: Oops: 96000006 [#1] PREEMPT SMP
[<ffffffc0009f37d0>] arm_smmu_is_master_side_secure+0x14/0x28
[<ffffffc0009f029c>] io_pgtable_free_pages_exact+0x30/0x94
[<ffffffc0009f0388>] __arm_lpae_free_pgtable+0x88/0xf0
[<ffffffc0009f03e4>] __arm_lpae_free_pgtable+0xe4/0xf0
[<ffffffc0009f0410>] arm_lpae_free_pgtable+0x20/0x38
[<ffffffc0009f01cc>] free_io_pgtable_ops+0x24/0x30
[<ffffffc0009f4ce8>] arm_smmu_domain_destroy+0x1c/0xa8
[<ffffffc0009ed0cc>] iommu_domain_free+0x1c/0x34
[<ffffffc0009f35c4>] iommu_debug_device_profiling+0x660/0x6a4
[<ffffffc0009f361c>] iommu_debug_secure_profiling_show+0x14/0x24
[<ffffffc0001c4a2c>] seq_read+0x180/0x3b0

Found when running:
cat /sys/kernel/debug/iommu/tests/client_name/secure_profiling

Add a new smmu_domain variable to track whether the domain belongs to a
master-side or slave-side secure context.

Change-Id: Ib32cc6fb03f863522de10e416007114c6e91776f
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-03-23 21:25:40 -07:00
..
amd_iommu.c
amd_iommu_init.c
amd_iommu_proto.h
amd_iommu_types.h
amd_iommu_v2.c
arm-smmu-v3.c
arm-smmu.c iommu/arm-smmu: Fix a Null pointer dereference 2016-03-23 21:25:40 -07:00
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 Revert "scatterlist: use sg_phys()" 2016-03-22 11:15:33 -07:00
intel-svm.c
intel_irq_remapping.c
io-pgtable-arm.c Merge remote-tracking branch 'lsk-44/linux-linaro-lsk-v4.4' into 44rc2 2016-03-23 20:51:00 -07:00
io-pgtable-msm-secure.c iommu/arm-smmu: Add support for slave side protection 2016-03-23 21:25:36 -07:00
io-pgtable.c iommu/arm-smmu: Add support for slave side protection 2016-03-23 21:25:36 -07:00
io-pgtable.h iommu/arm-smmu: Add support for slave side protection 2016-03-23 21:25:36 -07:00
iommu-debug.c drivers: iommu, leds, input, clk, devfreq: fix warnings 2016-03-23 20:57:40 -07:00
iommu-debug.h
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Add NULL pointer check in iommu_present function 2016-03-23 21:16:17 -07:00
iova.c
ipmmu-vmsa.c
irq_remapping.c
irq_remapping.h
Kconfig iommu/io-pgtable-arm: Don't use dma_to_phys() 2016-03-22 11:15:24 -07:00
Makefile iommu/arm-smmu: Add support for slave side protection 2016-03-23 21:25:36 -07:00
msm_dma_iommu_mapping.c
of_iommu.c
omap-iommu-debug.c
omap-iommu.c
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c
s390-iommu.c
shmobile-iommu.c
shmobile-ipmmu.c
shmobile-ipmmu.h
tegra-gart.c
tegra-smmu.c