# 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_mpc5200_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc5200_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc5200_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x6ca2d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6ca2d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6ca2d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6b9bbc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:49 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3419604 Bytes = 3339.46 kB = 3.26 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:49 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3442952 Bytes = 3362.26 kB = 3.28 MB Load Address: 00700000 Entry Point: 00700228 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:49 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3444585 Bytes = 3363.85 kB = 3.29 MB Load Address: 00700000 Entry Point: 00700228 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:49 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3444553 Bytes = 3363.82 kB = 3.28 MB Load Address: 00700000 Entry Point: 00700228 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc5200_defconfig_powerpc-5.3 # Build took: 0:00:31.567694