# git rev-parse -q --verify ff5bc793e47b537bf3e904fada585e102c54dd8b^{commit} ff5bc793e47b537bf3e904fada585e102c54dd8b already have revision, skipping fetch # git checkout -q -f -B kisskb ff5bc793e47b537bf3e904fada585e102c54dd8b # git clean -qxdf # < git log -1 # commit ff5bc793e47b537bf3e904fada585e102c54dd8b # Author: Nicholas Piggin # Date: Wed Jun 6 11:40:08 2018 +1000 # # powerpc/64s/radix: Fix missing ptesync in flush_cache_vmap # # There is a typo in f1cb8f9beb ("powerpc/64s/radix: avoid ptesync after # set_pte and ptep_set_access_flags") config ifdef, which results in the # necessary ptesync not being issued after vmalloc. # # This causes random kernel faults in module load, bpf load, anywhere # that vmalloc mappings are used. # # After correcting the code, this survives a guest kernel booting # hundreds of times where previously there would be a crash every few # boots (I haven't noticed the crash on host, perhaps due to different # TLB and page table walking behaviour in hardware). # # A memory clobber is also added to the flush, just to be sure it won't # be reordered with the pte set or the subsequent mapping access. # # Fixes: f1cb8f9beb ("powerpc/64s/radix: avoid ptesync after set_pte and ptep_set_access_flags") # Signed-off-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 ff5bc793e47b537bf3e904fada585e102c54dd8b # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_mpc85xx_cds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 85xx/mpc85xx_cds_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_mpc85xx_cds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- arch/powerpc/boot/mpc8555cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8541cds.dtb: 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 0x4de510) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4de510) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4de510) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4cde64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:25:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2533512 Bytes = 2474.13 kB = 2.42 MB Load Address: 00500000 Entry Point: 0050020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:25:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2508176 Bytes = 2449.39 kB = 2.39 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:25:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2532210 Bytes = 2472.86 kB = 2.41 MB Load Address: 00500000 Entry Point: 0050020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:25:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2532208 Bytes = 2472.86 kB = 2.41 MB Load Address: 00500000 Entry Point: 0050020c Completed OK # rm -rf /kisskb/build/powerpc-next_85xx_mpc85xx_cds_defconfig_powerpc-5.3 # Build took: 0:00:18.034379