# git rev-parse -q --verify 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c^{commit} 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c already have revision, skipping fetch # git checkout -q -f -B kisskb 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c # git clean -qxdf # < git log -1 # commit 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c # Author: Liam R. Howlett # Date: Fri Feb 24 16:20:55 2023 -0500 # # mm/mprotect: Fix successful vma_merge() of next in do_mprotect_pkey() # # If mprotect_fixup() successfully calls vma_merge() and replaces vma and # the next vma, then the tmp variable in the do_mprotect_pkey() is not # updated to point to the new vma end. This results in the loop detecting # a gap between VMAs that does not exist. # # Fix the faulty value of tmp by setting it to the end location of the vma # iterator at the end of the loop. # # Link: https://lkml.kernel.org/r/20230224212055.1786100-1-Liam.Howlett@oracle.com # Fixes: 2286a6914c77 ("mm: change mprotect_fixup to vma iterator") # Link: https://lore.kernel.org/linux-mm/20230223120407.729110a6ecd1416ac59d9cb0@linux-foundation.org/ # Signed-off-by: Liam R. Howlett # Reported-by: Bert Karwatzki # Link: https://bugzilla.kernel.org/show_bug.cgi?id=217061 # Tested-by: Bert Karwatzki # Reported-by: Linus Torvalds # Link: https://lore.kernel.org/linux-mm/CAHk-=wjFmVL7NiuxL54qLkoabni_yD-oF9=dpDgETtdsiCbhUg@mail.gmail.com/ # Tested-by: Linus Torvalds # Signed-off-by: Andrew Morton # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c # < make -s -j 160 ARCH=mips O=/kisskb/build/linus_micro32r2_defconfig_mips-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux- micro32r2_defconfig ./.config.micro32r2_defconfig:94:warning: override: CPU_BIG_ENDIAN changes choice state .config:93:warning: override: CPU_BIG_ENDIAN changes choice state # < make -s -j 160 ARCH=mips O=/kisskb/build/linus_micro32r2_defconfig_mips-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 160 ARCH=mips O=/kisskb/build/linus_micro32r2_defconfig_mips-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 160 ARCH=mips O=/kisskb/build/linus_micro32r2_defconfig_mips-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux- {standard input}: Assembler messages: {standard input}:2599: Error: branch to a symbol in another ISA mode make[4]: *** [/kisskb/src/scripts/Makefile.build:252: arch/mips/kernel/smp-cps.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:504: arch/mips/kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:504: arch/mips] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:2028: .] Error 2 make: *** [Makefile:242: __sub-make] Error 2 Command 'make -s -j 160 ARCH=mips O=/kisskb/build/linus_micro32r2_defconfig_mips-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/mips-linux/bin/mips-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_micro32r2_defconfig_mips-gcc11 # Build took: 0:01:05.571898