# git rev-parse -q --verify f2c7e3562b4c4f1699acc1538ebf3e75f5cced35^{commit} f2c7e3562b4c4f1699acc1538ebf3e75f5cced35 already have revision, skipping fetch # git checkout -q -f -B kisskb f2c7e3562b4c4f1699acc1538ebf3e75f5cced35 # git clean -qxdf # < git log -1 # commit f2c7e3562b4c4f1699acc1538ebf3e75f5cced35 # Author: Russell Currey # Date: Fri Mar 10 16:08:34 2023 +1100 # # powerpc/mm: Fix false detection of read faults # # To support detection of read faults with Radix execute-only memory, the # vma_is_accessible() check in access_error() (which checks for PROT_NONE) # was replaced with a check to see if VM_READ was missing, and if so, # returns true to assert the fault was caused by a bad read. # # This is incorrect, as it ignores that both VM_WRITE and VM_EXEC imply # read on powerpc, as defined in protection_map[]. This causes mappings # containing VM_WRITE or VM_EXEC without VM_READ to misreport the cause of # page faults, since the MMU is still allowing reads. # # Correct this by restoring the original vma_is_accessible() check for # PROT_NONE mappings, and adding a separate check for Radix PROT_EXEC-only # mappings. # # Fixes: 395cac7752b9 ("powerpc/mm: Support execute-only memory on the Radix MMU") # Reported-by: Michal Suchánek # Link: https://lore.kernel.org/r/20230308152702.GR19419@kitsune.suse.cz # Tested-by: Benjamin Gray # Signed-off-by: Russell Currey # Signed-off-by: Michael Ellerman # Link: https://msgid.link/20230310050834.63105-1-ruscur@russell.cc # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 f2c7e3562b4c4f1699acc1538ebf3e75f5cced35 # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc86xx_defconfig # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:135.22-137.4: Warning (pci_bridge): /pcie@f1008000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:92.7-117.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:102.9-116.4: Warning (pci_bridge): /pcie@f1008000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:139.22-141.4: Warning (pci_bridge): /pcie@f1009000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:129.9-143.4: Warning (pci_bridge): /pcie@f1009000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (unit_address_format): Failed prerequisite 'pci_bridge' arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_reg): Failed prerequisite 'pci_bridge' arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:30.11-32.6: Warning (i2c_bus_reg): /soc@f1000000/i2c@3000/rtc@68: missing or empty reg property Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 # Build took: 0:01:23.821489