# git rev-parse -q --verify e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e^{commit} e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e already have revision, skipping fetch # git checkout -q -f -B kisskb e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # git clean -qxdf # < git log -1 # commit e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # Author: Christophe Leroy # Date: Mon Aug 19 06:40:25 2019 +0000 # # powerpc/603: Fix handling of the DIRTY flag # # If a page is already mapped RW without the DIRTY flag, the DIRTY # flag is never set and a TLB store miss exception is taken forever. # # This is easily reproduced with the following app: # # void main(void) # { # volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); # # *ptr = *ptr; # } # # When DIRTY flag is not set, bail out of TLB miss handler and take # a minor page fault which will set the DIRTY flag. # # Fixes: f8b58c64eaef ("powerpc/603: let's handle PAGE_DIRTY directly") # Cc: stable@vger.kernel.org # v5.1+ # Reported-by: Doug Crawford # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/80432f71194d7ee75b2f5043ecf1501cf1cca1f3.1566196646.git.christophe.leroy@c-s.fr # < /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 e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66dddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3294672 Bytes = 3217.45 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3294997 Bytes = 3217.77 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3294934 Bytes = 3217.71 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 INFO: Uncompressed kernel (size 0x65d6c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3265598 Bytes = 3189.06 KiB = 3.11 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3295003 Bytes = 3217.78 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3294787 Bytes = 3217.57 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:05:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3295301 Bytes = 3218.07 KiB = 3.14 MiB Load Address: 00700000 Entry Point: 00700294 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 # Build took: 0:00:52.720993