summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-07-03 20:08:50 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2023-07-03 20:08:50 +0300
commitae80b404198434e49e903dc3b1ba83e2c7bb3ee2 (patch)
tree309b930f2e2d85877b425a9034457b93b5b8729e /tools/perf
parentf66066bc5136f25e36a2daff4896c768f18c211e (diff)
downloadlinux-ae80b404198434e49e903dc3b1ba83e2c7bb3ee2.tar.xz
mm: validate the mm before dropping the mmap lock
Commit 408579cd627a ("mm: Update do_vmi_align_munmap() return semantics") made the return value and locking semantics of do_vmi_align_munmap() more straightforward, but in the process it ended up unlocking the mmap lock just a tad too early: the debug code doing the mmap layout validation still needs to run with the lock held, or things might change under it while it's trying to validate things. So just move the unlocking to after the validate_mm() call. Reported-by: kernel test robot <oliver.sang@intel.com> Link: https://lore.kernel.org/lkml/ZKIsoMOT71uwCIZX@xsang-OptiPlex-9020/ Fixes: 408579cd627a ("mm: Update do_vmi_align_munmap() return semantics") Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions