Skip to content

Commit ef955df

Browse files
AntonioBorneoADESTM
authored andcommitted
Revert "ARM: decompressor: Use Domain Manager Access permissions"
This reverts commit 9bdc9c3. The commit removes the permission checks on memory access. On Cortex-A7 this causes illegal memory accesses during the kernel decompression if an interrupt forces a switch to secure. Revert it and replace it with another implementation. Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Change-Id: I2cbf979a0a761bf8d12c9bb648ca2ac201788d57 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/566410 Domain-Review: Amelie DELAUNAY <amelie.delaunay@foss.st.com> ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
1 parent 2fa8d99 commit ef955df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/arm/boot/compressed

arch/arm/boot/compressed/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ __armv7_mmu_cache_on:
888888
ARM_BE8( orr r0, r0, #1 << 25 ) @ big-endian page tables
889889
mrcne p15, 0, r6, c2, c0, 2 @ read ttb control reg
890890
orrne r0, r0, #1 @ MMU enabled
891-
movne r1, #0xffffffff @ domain 0 = manager
891+
movne r1, #0xfffffffd @ domain 0 = client
892892
bic r6, r6, #1 << 31 @ 32-bit translation system
893893
bic r6, r6, #(7 << 0) | (1 << 4) @ use only ttbr0
894894
mcrne p15, 0, r3, c2, c0, 0 @ load page table pointer

0 commit comments

Comments
 (0)