# git rev-parse -q --verify 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/linus master # git rev-parse -q --verify 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c^{commit} 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c # 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/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.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-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.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-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- :1517:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/fs/btrfs/inode.c: In function 'btrfs_lookup_dentry': /kisskb/src/fs/btrfs/inode.c:5730:21: error: 'location.type' may be used uninitialized [-Werror=maybe-uninitialized] 5730 | if (location.type == BTRFS_INODE_ITEM_KEY) { | ~~~~~~~~^~~~~ /kisskb/src/fs/btrfs/inode.c:5719:26: note: 'location' declared here 5719 | struct btrfs_key location; | ^~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:252: fs/btrfs/inode.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-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_sparc-allmodconfig_sparc64-gcc11 # Build took: 0:06:25.126064