# 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-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c # < make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- allmodconfig # Added to kconfig CONFIG_64BIT=n # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_HAVE_FTRACE_MCOUNT_RECORD=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MODULE_SIG=n # < make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- :1517:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/fs/btrfs/send.c: In function 'get_cur_inode_state': /kisskb/src/fs/btrfs/send.c:1909:13: error: 'right_gen' may be used uninitialized in this function [-Werror=maybe-uninitialized] } else if (right_gen == gen) { ^ /kisskb/src/fs/btrfs/send.c: At top level: cc1: error: unrecognized command line option '-Wno-shift-negative-value' [-Werror] cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:253: fs/btrfs/send.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:504: fs/btrfs] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:504: fs] 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=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_sparc-allmodconfig_sparc64-gcc5 # Build took: 0:08:46.504077