# 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_83xx_mpc832x_mds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc832x_mds_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_83xx_mpc832x_mds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x4e2720) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4d2008) 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:27:58 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2457908 Bytes = 2400.30 kB = 2.34 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:27:58 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2482448 Bytes = 2424.27 kB = 2.37 MB Load Address: 00500000 Entry Point: 005001f4 Completed OK # rm -rf /kisskb/build/powerpc-next_83xx_mpc832x_mds_defconfig_powerpc-5.3 # Build took: 0:00:17.594749