Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1674485pxb; Wed, 9 Feb 2022 01:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMQyiuULZJXw8h4alxKksY63l3udQ2VgCHIhKBZgJCdRGh23zrGRmGhS1++kZWjL8EAzs9 X-Received: by 2002:a63:6aca:: with SMTP id f193mr1242009pgc.85.1644400351271; Wed, 09 Feb 2022 01:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400351; cv=none; d=google.com; s=arc-20160816; b=we0ioNIdVV7BuB7wzQo8TrTgbAOkQ2K7M90Dr05AkJ1T2F7IEtNWfwZAP5uidAyldj pyEl//weG+RbWYyJB97EzVj3C6a8r2EtgN8nNFnaAKpx0Qid9oJ/xDLCBHEOYfvEEvHB jVVVSq+H1rNYQhR4/zFrA2xe2o1eOfWJ5Z+6G5m+lm7xbj2fTXgbCBPZZ7b+CfBHoCyU PZS724dixSxfPuwF5ucdpKCZ4tWT5WCxpEDXLx0RrzGdi/sjyc7djYp4tY444qXV7HA9 AbmMtvF4dG9uhkh5n5Ul98Az/ycVEh+19Xv/X6fJx5izLCGn9V1UGXj2vE1wejIvohHk tLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+K2+bccFd9pF7rMmuVPXnwO8vRc9g2LL3P0SAyHRK+Y=; b=GNJM2yGv0R8A8zk4Tle6MY0SRnQ0Z99w1M48OFlGgqkNHaQE3XQZRK+nzvxLkG4S5H zKllIXiBPlIflzXJIqFxiXkXk5dxv65ptkuEjUzcVrwVJBXvDS4ClxmKc/dEMpytQvx5 GgBtrxps9vXIF8OPDSp4/VFsc09AnvbH7SIz5+N+s8DMlfUb1lT2BlEMsH+ySqV0rGpv ynBaXOTYsF29fpDIdUkxnPyCxlBa6JfKIKI8xAqA93MSsJHGBrjGnfHnDWugpXOrt52t RFzeraeUUTRFG7NUVNv91DsXqQ2xi/6QKsZ03KOVu3g0eJ8e7iN+LZYK7YLdPRoSJm6+ imuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=bFLdHv8F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j27si15285416pgm.475.2022.02.09.01.52.18; Wed, 09 Feb 2022 01:52:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=bFLdHv8F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348257AbiBHHgg (ORCPT + 99 others); Tue, 8 Feb 2022 02:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347537AbiBHHgd (ORCPT ); Tue, 8 Feb 2022 02:36:33 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12ACEC0401EF for ; Mon, 7 Feb 2022 23:36:33 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id y5so16517079pfe.4 for ; Mon, 07 Feb 2022 23:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+K2+bccFd9pF7rMmuVPXnwO8vRc9g2LL3P0SAyHRK+Y=; b=bFLdHv8F7+IkS1x9FDn/nMVODlJJT7tS8ubDF8UDx/pizVANYbf4hTALtMblgdKSvi Bs6ulF74X72LHXWITBSbK6pj06RNvnAkAU1HzL7ZljKDm+4sI6FJI3cyLRMgdp2TDWdm hrdrUBgDHfwMd816/LLj56k8P8oUcVtWAHKGlvHIbXzjLp/pJYpcNj/2gG8rVgyWxLRx vtLIj98pvETsKnc/EGNRCXCn3TD9Cp29ZibqT+d6j5lK2YHFTgBaee6P1a+UpLVnnQmi 2/tzh57k+C2zrp326yeImXKdYzf3ZeNtVnbbJRpn8BKY6aG+ok7WKYFMFUnJwGA/OxSQ qjsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+K2+bccFd9pF7rMmuVPXnwO8vRc9g2LL3P0SAyHRK+Y=; b=ggtpKhiCt4pir4/UVHb0T4YVMocr4+fyiiDLoSwsbD0oKVsaUMN5iJBmBEaOXyE9EF DsxPeVHyDMnjxdwCWcZYSkxtvoEbZwTyBiA9H/LRogz0KKAv8baiT8zQo2gHfqHjGQ6+ X5k2s9xYiROh5WfArUEJslKn/cq6cXfKJz3UZGp7JMvpu2T2TAsngZvvs9SJw13ajcNF kC+GNhbxYlG2zGtL+eaciF07CwtykP1nm4RmS+8o7DDrbglstQ9KQjti0H80jJAJiolw CCJSHWWu0z/LNDFQUS4Kxo0jJTNqfY9Tw5wmdDOfNvlHhG0Q/W1ehxvC9Cvt7bYl/CF0 Lz7A== X-Gm-Message-State: AOAM533J0oXzNc+YCm09ImM5LdqwYnjRvWTtLu0iRURoyTXSx9YC3qHX ZJ3aKkQY0dcqrSMEszG6SLb0RHx1Pw6z3w9s X-Received: by 2002:a65:5c48:: with SMTP id v8mr2184170pgr.343.1644305792595; Mon, 07 Feb 2022 23:36:32 -0800 (PST) Received: from FVFYT0MHHV2J.tiktokcdn.com ([139.177.225.225]) by smtp.gmail.com with ESMTPSA id gx10sm1621017pjb.7.2022.02.07.23.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 23:36:32 -0800 (PST) From: Muchun Song To: akpm@linux-foundation.org, zi.yan@cs.rutgers.edu, kirill.shutemov@linux.intel.com, rientjes@google.com, lars.persson@axis.com, mike.kravetz@oracle.com, ziy@nvidia.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, Muchun Song Subject: [PATCH v4 0/5] Fix some cache flush bugs Date: Tue, 8 Feb 2022 15:36:12 +0800 Message-Id: <20220208073617.70342-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series focus on fixing cache maintenance. v4: - Replace folio_copy() with copy_user_huge_page(). - Update commit message for patch 2. v3: - Collect Reviewed-by tag from Zi Yan. - Fix hugetlb cache maintenance. v2: - Collect Reviewed-by tag from Zi Yan. - Using a for loop instead of the folio variant for backportability. Muchun Song (5): mm: thp: fix wrong cache flush in remove_migration_pmd() mm: fix missing cache flush for all tail pages of compound page mm: hugetlb: fix missing cache flush in copy_huge_page_from_user() mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte() mm: replace multiple dcache flush with flush_dcache_folio() mm/huge_memory.c | 3 ++- mm/hugetlb.c | 3 ++- mm/memory.c | 2 ++ mm/migrate.c | 3 +-- 4 files changed, 7 insertions(+), 4 deletions(-) -- 2.11.0