# git rev-parse -q --verify b5641a5d8b8b14643bfe3d017d64da90a5c55479^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/linus master # git rev-parse -q --verify b5641a5d8b8b14643bfe3d017d64da90a5c55479^{commit} b5641a5d8b8b14643bfe3d017d64da90a5c55479 # git checkout -q -f -B kisskb b5641a5d8b8b14643bfe3d017d64da90a5c55479 # git clean -qxdf # < git log -1 # commit b5641a5d8b8b14643bfe3d017d64da90a5c55479 # Author: Linus Torvalds # Date: Mon Jul 3 19:29:48 2023 -0700 # # mm: don't do validate_mm() unnecessarily and without mmap locking # # This is an addition to commit ae80b4041984 ("mm: validate the mm before # dropping the mmap lock"), because it turns out there were two problems, # but lockdep just stopped complaining after finding the first one. # # The do_vmi_align_munmap() function now drops the mmap lock after doing # the validate_mm() call, but it turns out that one of the callers then # immediately calls validate_mm() again. # # That's both a bit silly, and now (again) happens without the mmap lock # held. # # So just remove that validate_mm() call from the caller, but make sure to # not lose any coverage by doing that mm sanity checking in the error path # of do_vmi_align_munmap() too. # # Reported-and-tested-by: kernel test robot # Link: https://lore.kernel.org/lkml/ZKN6CdkKyxBShPHi@xsang-OptiPlex-9020/ # Fixes: 408579cd627a ("mm: Update do_vmi_align_munmap() return semantics") # 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 b5641a5d8b8b14643bfe3d017d64da90a5c55479 # make -s -j 40 ARCH=sparc64 O=/kisskb/build/linus_allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- allmodconfig # 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 40 ARCH=sparc64 O=/kisskb/build/linus_allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 40 ARCH=sparc64 O=/kisskb/build/linus_allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 40 ARCH=sparc64 O=/kisskb/build/linus_allmodconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] ERROR: modpost: missing MODULE_LICENSE() in arch/sparc/video/fbdev.o ERROR: modpost: "__xchg_called_with_bad_pointer" [lib/atomic64_test.ko] undefined! make[3]: *** [/kisskb/src/scripts/Makefile.modpost:144: Module.symvers] Error 1 make[2]: *** [/kisskb/src/Makefile:1976: modpost] Error 2 make[1]: *** [/kisskb/src/Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Command 'make -s -j 40 ARCH=sparc64 O=/kisskb/build/linus_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_allmodconfig_sparc64-gcc11 # Build took: 0:08:24.668715