From patchwork Fri May 27 17:30:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12863618 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 736ADC433EF for ; Fri, 27 May 2022 17:30:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D859D8D0006; Fri, 27 May 2022 13:30:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3A478D0002; Fri, 27 May 2022 13:30:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BFB268D0006; Fri, 27 May 2022 13:30:17 -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 B1FDC8D0002 for ; Fri, 27 May 2022 13:30:17 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9161F34630 for ; Fri, 27 May 2022 17:30:17 +0000 (UTC) X-FDA: 79512211674.28.36E1452 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf11.hostedemail.com (Postfix) with ESMTP id 94F694003D for ; Fri, 27 May 2022 17:30:09 +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 68D3761CCD; Fri, 27 May 2022 17:30:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A42ACC385A9; Fri, 27 May 2022 17:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1653672615; bh=DRbdVK7ebjAFaviXvuPpdxj4DfolmqNryDBytbwEKgc=; h=Date:From:To:Cc:Subject:From; b=n15PVRxHeWxwHcvVnGMRW5PrQdfWh0ogIEEZEbE5i0a2izv2KnqPJkcNqeakZi45t srJE0rqhqU8hvLIdjPzxyqQetexMXNN/0u/sOiBqg8ji5m1KMRnGODdCe9T7+cNLd2 aTzHx6QsTsGtltG5wNb4GmdgiBn2Uhs+Ko8Dv8qI= Date: Fri, 27 May 2022 10:30:14 -0700 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org Subject: [GIT PULL] additional MM updates for 5.19-rc1 Message-Id: <20220527103014.517818624f9f6d4f0ba0b523@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 94F694003D X-Stat-Signature: 5nnt87cwm8ymb63jzyuim1u3drwnxmb5 Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=n15PVRxH; dmarc=none; spf=pass (imf11.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspam-User: X-HE-Tag: 1653672609-880204 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: Pretty much the final flush here. Mel's "Drain remote per-cpu directly" series might be stabilized later in the merge window. There's a merge conflict in init/Kconfig. We resolved that by removing the VM_EVENT_COUNTERS..MMAP_ALLOW_UNINITIALIZED entries. And another in lib/Kconfig.debug. Similarly resolved by removing the DEBUG_SLAB..SLUB_STATS entries. I'll shortly be resurrecting Liam's maple-tree patchset for additional stabilization and a view to merge that up for 5.20. And shortly after that I'll bring in Yu Zhau's multigen LRU work to get that some linux-next testing and hopefully reviewer provocation. The following changes since commit f403f22f8ccb12860b2b62fec3173c6ccd45938b: mm: kfence: use PAGE_ALIGNED helper (2022-05-25 10:47:49 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-stable-2022-05-27 for you to fetch changes up to fa020a2b87d24016723fff4a4237deb612478a32: mm/shmem.c: suppress shift warning (2022-05-27 09:33:47 -0700) ---------------------------------------------------------------- Two followon fixes for the post-5.19 series "Use pageblock_order for cma and alloc_contig_range alignment", from Zi Yan. A series of z3fold cleanups and fixes from Miaohe Lin. Some memcg selftests work from Michal Koutný Some swap fixes and cleanups from Miaohe Lin. Several individual minor fixups. ---------------------------------------------------------------- Andrew Morton (1): mm/shmem.c: suppress shift warning Kefeng Wang (1): mm: kasan: fix input of vmalloc_to_page() Miaohe Lin (14): mm/z3fold: fix sheduling while atomic mm/z3fold: fix possible null pointer dereferencing mm/z3fold: remove buggy use of stale list for allocation mm/z3fold: throw warning on failure of trylock_page in z3fold_alloc revert "mm/z3fold.c: allow __GFP_HIGHMEM in z3fold_alloc" mm/z3fold: put z3fold page back into unbuddied list when reclaim or migration fails mm/z3fold: always clear PAGE_CLAIMED under z3fold page lock mm/z3fold: fix z3fold_reclaim_page races with z3fold_free mm/z3fold: fix z3fold_page_migrate races with z3fold_map mm/swapfile: unuse_pte can map random data if swap read fails mm/swapfile: fix lost swap bits in unuse_pte() mm/madvise: free hwpoison and swapin error entry in madvise_free_pte_range mm/shmem: fix infinite loop when swap in shmem error at swapoff time mm: filter out swapin error entry in shmem mapping Michal Koutný (5): selftests: memcg: fix compilation selftests: memcg: expect no low events in unprotected sibling selftests: memcg: adjust expected reclaim values of protected cgroups selftests: memcg: remove protection from top level memcg selftests: memcg: factor out common parts of memory.{low,min} tests Minchan Kim (1): mm: fix is_pinnable_page against a cma page Vlastimil Babka (1): mm: Kconfig: reorganize misplaced mm options Zi Yan (2): mm: page-isolation: skip isolated pageblock in start_isolate_page_range() mm: split free page with properly free memory accounting and without race MAINTAINERS | 1 + include/linux/mm.h | 9 +- include/linux/swap.h | 7 +- include/linux/swapops.h | 10 + init/Kconfig | 53 ----- lib/Kconfig.debug | 34 --- mm/Kconfig | 56 +++++ mm/Kconfig.debug | 31 +++ mm/internal.h | 4 +- mm/kasan/report.c | 2 +- mm/madvise.c | 18 +- mm/memory.c | 5 +- mm/page_alloc.c | 32 ++- mm/page_isolation.c | 36 +++- mm/shmem.c | 41 +++- mm/swap_state.c | 3 + mm/swapfile.c | 21 +- mm/z3fold.c | 97 ++++----- tools/testing/selftests/cgroup/memcg_protection.m | 89 ++++++++ tools/testing/selftests/cgroup/test_memcontrol.c | 247 ++++++---------------- 20 files changed, 434 insertions(+), 362 deletions(-) create mode 100644 tools/testing/selftests/cgroup/memcg_protection.m