From mboxrd@z Thu Jan 1 00:00:00 1970 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 1E2EFC54FB3 for ; Sun, 1 Jun 2025 22:12:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2FD346B020E; Sun, 1 Jun 2025 18:12:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2AE876B0213; Sun, 1 Jun 2025 18:12:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EB466B0246; Sun, 1 Jun 2025 18:12:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id F38396B020E for ; Sun, 1 Jun 2025 18:12:27 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5260F1414D8 for ; Sun, 1 Jun 2025 22:12:27 +0000 (UTC) X-FDA: 83508231534.24.D1E7386 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf12.hostedemail.com (Postfix) with ESMTP id ACB8D40005 for ; Sun, 1 Jun 2025 22:12:25 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=qFVY1Ui1; spf=pass (imf12.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=1748815945; 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=yvTLhYK1iP8cV2xfNDHfIKuwBSIPFV5CUQWDVbEsP94=; b=TrlD8UwGY2RWIm0rGJXhS2QpGRpek6JaMJ36IUOsKhXYwVxg/4B3jhnTbUsRzj8E0eO5Dl pwu1J3pgI0mIdeToXIKt4Oww0cLpNAs/b7cJvo9BMQW6t4y6zVVKtjJ2d/ljB/jui45fbT +ZxgKn9uzWSaV02A3tQhvo1wNZCfF9Y= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=qFVY1Ui1; spf=pass (imf12.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1748815945; a=rsa-sha256; cv=none; b=AzxDUy8zC9vF1gkHm0G6kuCZXGu/PDRc5BymQTJnFGuvgn1qWpx4Ly3mzeDOjWp+oBjisT tp7WDuof0GKxlUwPNJV0xHoer6Fxh3w196T2WrqXdKUyahSSi15d8D9ObGSm4tgSZdcsG+ folytHvIRKg3bgqy+uFUSGpWUI/dt64= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 974535C4BF6; Sun, 1 Jun 2025 22:10:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF695C4CEE7; Sun, 1 Jun 2025 22:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1748815944; bh=fAf/q1jVkKfBy5haShMDNUDL+HSBehBjMaLT6ynyJSw=; h=Date:From:To:Cc:Subject:From; b=qFVY1Ui1IgVDjR9BCqVwyYxH50FpCrqBoZ7VN/Ks9ZJmfQjIq7b16vvRhYtqWEy6h 19yyhheRsHp2qDblJdc+aQOy7uExBK+LBFfg/Q0OlE2YnnaKtmUhRus3kZTAiEWs/n gsJL/9JL6cBKg0PI29PdSrx8KihDQzy5Fj9DgW3U= Date: Sun, 1 Jun 2025 15:12:22 -0700 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Additional MM updates for 6.16-rc1 Message-Id: <20250601151222.60ead71e7d8492a18c711a05@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspam-User: X-Stat-Signature: 4kwb1x8yurkfp4c7wf5jy5ytcgt4hpfx X-Rspamd-Queue-Id: ACB8D40005 X-Rspamd-Server: rspam11 X-HE-Tag: 1748815945-642639 X-HE-Meta: U2FsdGVkX19xF9UUYp80fKZ/ejB19ZhY2Ujp8DO+dTrLnNmthqyDdZJawfBR9YT9CzLR5s4kbNmwY584SJsNGLt9C/fG1WSCJNpBg2n+/THc1IYLr/3IGDm7LC4qUNx+lSSIQkiAxREeBf0shSBGhAoZrTna1TQ5gmG8moGEJJR4jJE6uaCiJszPw9O0J+H0cDJ0cAagP/qQu+yZff380/ue4sEVSRJuRMDghjkafwSOeD6+cw2LWkIcBULIlc8CiFVEOcQc5t6SfRY5Jm0CTl7jCnoQWWB+ToPIq5O/EgrF7+GzeZow61nq5mBGsZC+FyjLqhHk1If7sZ1xHDkopl6tvja2po86JfMLPW2kimuBwvUqnOciKLRtIEkOKPjL9ozNWVGuWELc4IeigZYg2temLNUw2pHH2I6wxza6Kq+UjuDI7p1Pi4ot4E+BUpwaliitcU3vyPOiVzmQ8N4O/HZjroLPxuUg3zNQGsCaXgjCcJj1iGfnegGViLTziUfutVRCp6hDftF9riqinYEU6tNIG14AV/7QwF5k5/W2PfClP01zXX2edYCQ+2zjSh0nV62tuku4kf3xNO1jMEV9pppj8soHRi0f7g9vIL68FRoN6iYBThcKYAV2c0hUn0NJSY+uz1Vicg9GKgQ3sly1uNR23MuTxfzBZhE/WtZTf+pUUgbmu9hasgvfLA+rQCoKar1zwxKey1E+hkF6ioQMU58mid5xEElPsEAdcDRSefi4A8tgjl0xiylFxsEDxLCIgif9YIuFwb6djp5YmQ1jJsOQwYongUXGAjx0Jls1cZTybVgYZXYFd8fv/Q9W3ReOW0ShMpmMXu5guB9T37dIZQbvjtZP3Ep7a0J6I3RW/hWHywcI3Sm6xeaLw3cevRLi2j8VeQmHR3W9j++79FFL3PhmPMUSTXNKschRrZwR6btBsDIOaojhOBFNtJB0VId2csW8oa/vp84Rl8zkFXE Dp/Q4BKF UefLv6L7nsY7Tlj58TKuyvN9TCZD4zDUGRYQuYIPcENHH2RCwtCeM9B5UOK3fxHNUgdowbqYJBU8GKSET5M/hbu/5WRReMH8AdqmFAiXNEZ2Bu5Zb8c84NFGM7AG2acuX574lAlAGqn2B6H8gdwtptEuE6xAgTg/xxsS9tRCWhJiNYlawNOj50Pk/oLF3P2febGBIzvu1eiZDUDGXWgit2tQRNlhm13A0kvVGIucsbqEPadls8MoWewdFfhjDhcxEj4yEWXyqJylQFnO00HpKTns8j6M1erZ5R1SJ2Ayd4hyAVr6ySpq2riWLeCmtb8NzGwiE53C+CydCFLQ= 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: List-Subscribe: List-Unsubscribe: Linus, please merge this second batch of MM updates for the 6.16-rcX cycle. I'm seeing a single small conflict in mm/memcontrol.c. Stephen's resolution is at https://lore.kernel.org/all/20250529111223.3987a514@canb.auug.org.au/T/#u Thanks. The following changes since commit c544a952ba61b1a025455098033c17e0573ab085: mm: pcp: increase pcp->free_count threshold to trigger free_high (2025-05-27 19:38:27 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-stable-2025-06-01-14-06 for you to fetch changes up to 0b43b8bc8ef88bb45b018b2d4853d38bfc5ce2a7: mm/khugepaged: clean up refcount check using folio_expected_ref_count() (2025-05-31 22:46:16 -0700) ---------------------------------------------------------------- - The 2 patch series "zram: support algorithm-specific parameters" from Sergey Senozhatsky adds infrastructure for passing algorithm-specific parameters into zram. A single parameter `winbits' is implemented at this time. - The 5 patch series "memcg: nmi-safe kmem charging" from Shakeel Butt makes memcg charging nmi-safe, which is required by BFP, which can operate in NMI context. - The 5 patch series "Some random fixes and cleanup to shmem" from Kemeng Shi implements small fixes and cleanups in the shmem code. - The 2 patch series "Skip mm selftests instead when kernel features are not present" from Zi Yan fixes some issues in the MM selftest code. - The 2 patch series "mm/damon: build-enable essential DAMON components by default" from SeongJae Park reworks DAMON Kconfig to make it easier to enable CONFIG_DAMON. - The 2 patch series "sched/numa: add statistics of numa balance task migration" from Libo Chen adds more info into sysfs and procfs files to improve visibility into the NUMA balancer's task migration activity. - The 4 patch series "selftests/mm: cow and gup_longterm cleanups" from Mark Brown provides various updates to some of the MM selftests to make them play better with the overall containing framework. ---------------------------------------------------------------- Akinobu Mita (1): mm/damon/core: avoid destroyed target reference from DAMOS quota Alice Ryhl (2): mm: rust: make CONFIG_MMU ifdefs more narrow kcov: rust: add flags for KCOV with Rust Chen Yu (1): sched/numa: add statistics of numa balance task Dan Carpenter (1): tools/testing: check correct variable in open_procmap() David Hildenbrand (1): selftests/mm: two fixes for the pfnmap test Enze Li (1): selftests/damon/_damon_sysfs: skip testcases if CONFIG_DAMON_SYSFS is disabled Jann Horn (2): mmu_notifiers: remove leftover stub macros mm/gup: update comment explaining why gup_fast() disables IRQs Juan Yescas (1): mm: add CONFIG_PAGE_BLOCK_ORDER to select page block order Kemeng Shi (5): mm: shmem: avoid unpaired folio_unlock() in shmem_swapin_folio() mm: shmem: add missing shmem_unacct_size() in __shmem_file_setup() mm/shmem: fix potential dead loop in shmem_unuse() mm: shmem: only remove inode from swaplist when it's swapped page count is 0 mm/shmem: remove unneeded xa_is_value() check in shmem_unuse_swap_entries() Libo Chen (1): sched/numa: fix task swap by skipping kernel threads Lorenzo Stoakes (1): tools/testing/vma: add missing function stub Mark Brown (7): selftests/mm: deduplicate test logging in test_mlock_lock() selftests/mm: deduplicate default page size test results in thuge-gen selftests/mm: deduplicate test names in madv_populate selftests/mm: use standard ksft_finished() in cow and gup_longterm selftests/mm: add helper for logging test start and results selftests/mm: report unique test names for each cow test selftests/mm: fix test result reporting in gup_longterm Matthew Wilcox (Oracle) (4): m68k: remove use of page->index mm: rename page->index to page->__folio_index ntfs3: use folios more in ntfs_compress_write() iov: remove copy_page_from_iter_atomic() Roman Gushchin (1): mmu_gather: move tlb flush for VM_PFNMAP/VM_MIXEDMAP vmas into free_pgtables() SeongJae Park (2): mm/damon/Kconfig: set DAMON_{VADDR,PADDR,SYSFS} default to DAMON mm/damon/Kconfig: enable CONFIG_DAMON by default Sergey Senozhatsky (2): zram: rename ZCOMP_PARAM_NO_LEVEL zram: support deflate-specific params Shakeel Butt (5): memcg: disable kmem charging in nmi for unsupported arch memcg: nmi safe memcg stats for specific archs memcg: add nmi-safe update for MEMCG_KMEM memcg: nmi-safe slab stats updates memcg: make memcg_rstat_updated nmi safe Shivank Garg (2): mm/khugepaged: fix race with folio split/free using temporary reference mm/khugepaged: clean up refcount check using folio_expected_ref_count() Wenjie Xu (1): hugetlb: show nr_huge_pages in report_hugepages() Zi Yan (2): selftests/mm: skip guard_regions.uffd tests when uffd is not present selftests/mm: skip hugevm test if kernel config file is not present Documentation/admin-guide/cgroup-v2.rst | 6 + arch/arm/mm/flush.c | 4 +- arch/m68k/mm/motorola.c | 3 +- drivers/block/zram/backend_deflate.c | 12 +- drivers/block/zram/backend_lz4.c | 2 +- drivers/block/zram/backend_lz4hc.c | 2 +- drivers/block/zram/backend_zstd.c | 2 +- drivers/block/zram/zcomp.h | 9 +- drivers/block/zram/zram_drv.c | 21 +- fs/ntfs3/file.c | 31 +- include/asm-generic/tlb.h | 46 ++- include/linux/memcontrol.h | 10 + include/linux/mm.h | 6 +- include/linux/mm_types.h | 6 +- include/linux/mmu_notifier.h | 3 - include/linux/mmzone.h | 16 + include/linux/pageblock-flags.h | 8 +- include/linux/sched.h | 4 + include/linux/uio.h | 10 +- include/linux/vm_event_item.h | 2 + init/Kconfig | 14 + kernel/futex/core.c | 2 +- kernel/sched/core.c | 9 +- kernel/sched/debug.c | 4 + kernel/sched/fair.c | 3 +- lib/iov_iter.c | 29 +- mm/Kconfig | 34 +++ mm/damon/Kconfig | 4 + mm/damon/core.c | 8 + mm/filemap.c | 4 +- mm/gup.c | 2 +- mm/hugetlb.c | 2 +- mm/khugepaged.c | 35 ++- mm/memcontrol.c | 127 +++++++- mm/memory.c | 6 +- mm/mm_init.c | 2 +- mm/mmu_gather.c | 1 + mm/page-writeback.c | 6 +- mm/shmem.c | 23 +- mm/truncate.c | 2 +- mm/vmstat.c | 2 + mm/zpdesc.h | 4 +- rust/Makefile | 1 + rust/kernel/mm.rs | 56 +--- rust/kernel/mm/mmput_async.rs | 68 +++++ scripts/Makefile.kcov | 6 + scripts/Makefile.lib | 3 + tools/testing/selftests/damon/_damon_sysfs.py | 4 + tools/testing/selftests/mm/cow.c | 340 ++++++++++++++-------- tools/testing/selftests/mm/guard-regions.c | 17 +- tools/testing/selftests/mm/gup_longterm.c | 158 ++++++---- tools/testing/selftests/mm/madv_populate.c | 18 +- tools/testing/selftests/mm/mlock2-tests.c | 2 +- tools/testing/selftests/mm/pfnmap.c | 61 +++- tools/testing/selftests/mm/thuge-gen.c | 4 +- tools/testing/selftests/mm/va_high_addr_switch.sh | 26 +- tools/testing/selftests/mm/vm_util.c | 2 +- tools/testing/selftests/mm/vm_util.h | 20 ++ tools/testing/vma/vma_internal.h | 5 + 59 files changed, 909 insertions(+), 408 deletions(-) create mode 100644 rust/kernel/mm/mmput_async.rs