# 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 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc25a7c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc15248) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988893 Bytes = 5848.53 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988431 Bytes = 5848.08 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5958313 Bytes = 5818.67 KiB = 5.68 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988280 Bytes = 5847.93 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988967 Bytes = 5848.60 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988798 Bytes = 5848.44 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988838 Bytes = 5848.47 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5989804 Bytes = 5849.42 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988408 Bytes = 5848.05 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988906 Bytes = 5848.54 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5989861 Bytes = 5849.47 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988891 Bytes = 5848.53 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5989211 Bytes = 5848.84 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5989801 Bytes = 5849.42 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988280 Bytes = 5847.93 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-ge8c42ba3ffd9 Created: Tue Aug 20 20:06:46 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5988470 Bytes = 5848.12 KiB = 5.71 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:02:16.088934