From patchwork Fri Oct 14 06:03:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 13006682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A6DDC433FE for ; Fri, 14 Oct 2022 06:03:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 75F936B0072; Fri, 14 Oct 2022 02:03:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 710016B0075; Fri, 14 Oct 2022 02:03:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D7796B0078; Fri, 14 Oct 2022 02:03:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 492746B0072 for ; Fri, 14 Oct 2022 02:03:05 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0AC89C0679 for ; Fri, 14 Oct 2022 06:03:05 +0000 (UTC) X-FDA: 80018511930.10.53AEE0E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id 8BBAB8002D for ; Fri, 14 Oct 2022 06:03:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6987619D0; Fri, 14 Oct 2022 06:03:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E751DC433D7; Fri, 14 Oct 2022 06:03:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1665727383; bh=Sj0ADGiNe3/XsOSpd7wJHdWZ6tdgK0sm1kkalZ7RaSY=; h=Date:From:To:Cc:Subject:From; b=P9BG0Ck8iDe81L0WJ+YcLn9CxMR9gFyyW+s6iLJGOf4sH0/ypMrFTbr4LfizLM5cd mbmVSNSosjIZJIblJoy/A33gzMGbsllwIfhjD4hAFI5fwgHXXkdppbFL6fJnAvFufj iEsb9lLIie/w99bBfxxxbBWi+cuzuoV+evmX4efU= Date: Thu, 13 Oct 2022 23:03:02 -0700 From: Andrew Morton To: Linus Torvalds Cc: mm-commits@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Final MM updates for 6.1-rc1 Message-Id: <20221013230302.96f2869cd26026b36e8ecd40@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665727384; a=rsa-sha256; cv=none; b=3UG0i5+dsYbRCVZYClfZZNRGuE762loz0LHacVQSjC0lKqKKPzkpVhHs71zLbeutaowFOr u3uLahMrn9o38A85y9tyWr2tmoC3ncbNVrBoA39eEFWX8Ysx3Bi2m00Kv6GbSMpFe0caQb kqWBjovJKY/M7PAbnWvsiJZi98/Kt30= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=P9BG0Ck8; spf=pass (imf02.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665727384; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=nxgK2JPzRpJKfc7ESLYrAzjZ9MXhxNKu1rxSIaqeoxM=; b=lTUII16zjrLVLjFZxtT4bhXCex+eP1bGC1QJEA4ztiJ38U8TFglKiu1KVXaPqu7nK2v/R/ tyxIDsCfoedmtc903tKjl0tceBv1B7pwKc46MAw1OmSvY8a7mfakHisuDF5oq+BkwkVh4C GxYg/7varWeLFOFuW4F71es0cCQK1nQ= X-Stat-Signature: 53suxpms7tkfrn1o5ey6ta4cpwjey1ak X-Rspamd-Queue-Id: 8BBAB8002D X-Rspam-User: X-Rspamd-Server: rspam08 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=P9BG0Ck8; spf=pass (imf02.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1665727384-198067 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Linus, please merge this smallish batch of features and fixes. There's a conflict in drivers/gpu/drm/amd/amdkfd/kfd_migrate.c. Stephen's resolution is at https://lkml.kernel.org/r/20221004210029.7412fcfd@canb.auug.org.au Thanks. The following changes since commit bbff39cc6cbcb86ccfacb2dcafc79912a9f9df69: hugetlb: allocate vma lock for all sharable vmas (2022-10-07 14:28:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-stable-2022-10-13 for you to fetch changes up to ef6e06b2ef87077104d1145a0fd452ff8dbbc4b7: highmem: fix kmap_to_page() for kmap_local_page() addresses (2022-10-12 18:51:51 -0700) ---------------------------------------------------------------- - Alistair Popple has a series which addresses a race which causes page refcounting errors in ZONE_DEVICE pages. - Peter Xu fixes some userfaultfd test harness instability. - Various other patches in MM, mainly fixes. ---------------------------------------------------------------- Alexander Potapenko (1): kmsan: unpoison @tlb in arch_tlb_gather_mmu() Alexey Dobriyan (1): mm: more vma cache removal Alistair Popple (8): mm/memory.c: fix race when faulting a device private page mm: free device private pages have zero refcount mm/memremap.c: take a pgmap reference on page allocation mm/migrate_device.c: refactor migrate_vma and migrate_deivce_coherent_page() mm/migrate_device.c: add migrate_device_range() nouveau/dmem: refactor nouveau_dmem_fault_copy_one() nouveau/dmem: evict device private memory during release hmm-tests: add test for migrate_device_range() Andrew Morton (1): mm/hugetlb.c: make __hugetlb_vma_unlock_write_put() static Andrey Konovalov (1): kasan: fix array-bounds warnings in tests Brian Geffon (1): zram: always expose rw_page Carlos Llamas (1): mm/mmap: undo ->mmap() when arch_validate_flags() fails Chuyi Zhou (1): mm/compaction: fix set skip in fast_find_migrateblock Ira Weiny (1): highmem: fix kmap_to_page() for kmap_local_page() addresses Liam Howlett (2): mmap: fix copy_vma() failure path mm/mmap: preallocate maple nodes for brk vma expansion Matthew Wilcox (Oracle) (1): ext4,f2fs: fix readahead of verity data Peter Xu (4): mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled in mm/hugetlb: fix race condition of uffd missing/minor handling mm/hugetlb: use hugetlb_pte_stable in migration race check mm/selftest: uffd: explain the write missing fault check Qi Zheng (2): mm: use update_mmu_tlb() on the second thread LoongArch: update local TLB if PTE entry exists Xiaoke Wang (1): lib/test_meminit: add checks for the allocation functions Xin Hao (2): mm/damon: move sz_damon_region to damon_sz_region mm/damon: use damon_sz_region() in appropriate place Yafang Shao (1): mm/page_alloc: fix incorrect PGFREE and PGALLOC for high-order page arch/loongarch/include/asm/pgtable.h | 3 + arch/powerpc/kvm/book3s_hv_uvmem.c | 21 +-- drivers/block/zram/zram_drv.c | 26 +--- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 19 +-- drivers/gpu/drm/amd/amdkfd/kfd_migrate.h | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 11 +- drivers/gpu/drm/nouveau/nouveau_dmem.c | 108 ++++++++++---- fs/ext4/verity.c | 3 +- fs/f2fs/verity.c | 3 +- include/linux/damon.h | 6 + include/linux/memremap.h | 1 + include/linux/migrate.h | 15 ++ include/linux/sched.h | 2 - lib/test_hmm.c | 129 +++++++++++++---- lib/test_hmm_uapi.h | 1 + lib/test_meminit.c | 21 +++ mm/compaction.c | 1 - mm/damon/core.c | 26 ++-- mm/damon/vaddr.c | 4 +- mm/highmem.c | 43 ++++-- mm/hugetlb.c | 72 ++++++++-- mm/kasan/kasan_test.c | 9 +- mm/memory.c | 20 ++- mm/memremap.c | 30 +++- mm/migrate.c | 34 +++-- mm/migrate_device.c | 239 ++++++++++++++++++++++--------- mm/mmap.c | 28 ++-- mm/mmu_gather.c | 10 ++ mm/mprotect.c | 2 + mm/page_alloc.c | 12 +- tools/testing/selftests/vm/hmm-tests.c | 49 +++++++ tools/testing/selftests/vm/userfaultfd.c | 22 ++- 32 files changed, 719 insertions(+), 253 deletions(-)