# git rev-parse -q --verify b5641a5d8b8b14643bfe3d017d64da90a5c55479^{commit} b5641a5d8b8b14643bfe3d017d64da90a5c55479 already have revision, skipping fetch # 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-8.5.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 b5641a5d8b8b14643bfe3d017d64da90a5c55479 # make -s -j 160 ARCH=mips O=/kisskb/build/linus_64r6el_defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- 64r6el_defconfig Using /kisskb/src/arch/mips/configs/generic_defconfig as base Merging /kisskb/src/arch/mips/configs/generic/64r6.config Merging /kisskb/src/arch/mips/configs/generic/el.config Merging /kisskb/src/arch/mips/configs/generic/board-boston.config Merging /kisskb/src/arch/mips/configs/generic/board-marduk.config Merging /kisskb/src/arch/mips/configs/generic/board-ranchu.config Merging /kisskb/src/arch/mips/configs/generic/board-virt.config # < make -s -j 160 ARCH=mips O=/kisskb/build/linus_64r6el_defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 160 ARCH=mips O=/kisskb/build/linus_64r6el_defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 160 ARCH=mips O=/kisskb/build/linus_64r6el_defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- Completed OK # rm -rf /kisskb/build/linus_64r6el_defconfig_mips-gcc8 # Build took: 0:02:06.749027