# 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 80 ARCH=powerpc O=/kisskb/build/powerpc-next_pmac32_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pmac32_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_pmac32_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/sound/ppc/pmac.h:25:0, from /kisskb/src/sound/ppc/awacs.c:29: /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:9: warning: 'speaker_vol' may be used uninitialized in this function [-Wmaybe-uninitialized] return _snd_ctl_add_slave(master, slave, 0); ^ /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here struct snd_kcontrol *master_vol, *speaker_vol; ^ INFO: Uncompressed kernel (size 0x89c3d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x900000) Completed OK # rm -rf /kisskb/build/powerpc-next_pmac32_defconfig_powerpc-5.3 # Build took: 0:01:30.260778