# 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-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 36686e99e6e09c4043c34cf0c44f84f1e52f7ac9 # make -s -j 40 ARCH=x86 O=/kisskb/build/powerpc-fixes_allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig # < make -s -j 40 ARCH=x86 O=/kisskb/build/powerpc-fixes_allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 40 ARCH=x86 O=/kisskb/build/powerpc-fixes_allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 40 ARCH=x86 O=/kisskb/build/powerpc-fixes_allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_allmodconfig_x86_64-gcc11 # Build took: 0:15:05.742878