# git rev-parse -q --verify 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9^{commit} 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9 already have revision, skipping fetch # git checkout -q -f -B kisskb 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9 # git clean -qxdf # < git log -1 # commit 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9 # Author: Haren Myneni # Date: Thu Jun 22 00:42:46 2023 -0700 # # powerpc/pseries/vas: Hold mmap_mutex after mmap lock during window close # # VAS mmap (coproc_mmap()) and its fault handler (vas_mmap_fault()) # are called after holding mmap lock and acquire mmap_mutex to # update VAS window status. The migration / DLPAR window close can # hang while trying to acquire mmap lock if it is issued at the # same time with the user space ioctl mmap or VAS fault handler # execution. # # So this patch adds changes to acquire mmap lock before holding # mmap_mutex. # # Fixes: 8ef7b9e1765a ("powerpc/pseries/vas: Close windows with DLPAR core removal") # Signed-off-by: Haren Myneni # Signed-off-by: Michael Ellerman # Link: https://msgid.link/20230622074246.144729-1-haren@linux.ibm.com # < /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 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9 # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_ge_imp3a_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 85xx/ge_imp3a_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_ge_imp3a_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_ge_imp3a_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_ge_imp3a_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_85xx_ge_imp3a_defconfig_powerpc-gcc5 # Build took: 0:01:01.146150