Message ID | 20220131203249.2832273-1-pasha.tatashin@soleen.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8CC78C433EF for <linux-mm@archiver.kernel.org>; Mon, 31 Jan 2022 20:32:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 094086B00EE; Mon, 31 Jan 2022 15:32:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 01D4A6B00EF; Mon, 31 Jan 2022 15:32:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DD8D26B00F2; Mon, 31 Jan 2022 15:32:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0119.hostedemail.com [216.40.44.119]) by kanga.kvack.org (Postfix) with ESMTP id C86966B00EE for <linux-mm@kvack.org>; Mon, 31 Jan 2022 15:32:54 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 7B1229730F for <linux-mm@kvack.org>; Mon, 31 Jan 2022 20:32:54 +0000 (UTC) X-FDA: 79091731068.18.4D68378 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by imf26.hostedemail.com (Postfix) with ESMTP id 16B7E140002 for <linux-mm@kvack.org>; Mon, 31 Jan 2022 20:32:53 +0000 (UTC) Received: by mail-qt1-f175.google.com with SMTP id z1so11411920qto.3 for <linux-mm@kvack.org>; Mon, 31 Jan 2022 12:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=M9bJkWIxdplxM33vp/vaahjmYZYfOtnMQWqcHJyRGQo=; b=UnO4XGFkeRTflixRXkT5Qf9epZSfzdbOgDE2e8Aj93hJv4zvVQvhzksjJt0NYEm4ka phBngWzQ7BuZNTSQzOG+LV/9ozMlE9QqsLwMcPmqHeATMhHLtqWrAqq/mYnQDtut1zsI bN6d7QeM+SyyeUMTOkvC4EeCbPWDyStYkTqMpUcpmuJZOaAx1doFglokuOoUuMJ9H+7s 4VccCE/CZropjwtu+1JEOjo07dLGLq12LMqxuvD7jHnAlfFE0EAlMX6qrTTYVIHMYn5r hQk91HgluZehXwuerL5TwodhantJKuSpazg4wu2gpHtT3VGJgeq8x7+pD3tV1CwbiiNu LUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=M9bJkWIxdplxM33vp/vaahjmYZYfOtnMQWqcHJyRGQo=; b=j+l2kY8c+pmUd9DibGEQo3qJCt/XQeLcSquCOPSdzROyZAGyg+qHnORh/P1CpzAi2W Ub126AkiGxVZL6KNr8wcdtmILMz68beKVG6EgK7KBhsOXRCwKRQEOHywvRpewWYiWqxa tFiy6bfvxa9hu2e52odxeW4pq/ilaHzy2GXLaYa4alhs4pqjh4jNGRGFTzXWRo2Jb36a WtlFBUFxIuD+Hgg9ACicHG1lGUnSjb+RUZGlM+1AEu8sbw9LPAGAmIao1zKlWEuQxqw2 rOAE1JTScxsVzJpnf3EDVwMPC86fQwLRxX1JB+pPeT8MO4oRA++FHVZsKE8AnugXnKSF sNqA== X-Gm-Message-State: AOAM530pJGVBSxJ17e3fraHrtaatDJjI4Ca1UDj0b59xI8J1T77QphVo xYCHwm9NI/SvqoS6zX/fk/uXUA== X-Google-Smtp-Source: ABdhPJwZY02U9jdJ67/vnrhOchekBjrA8W5GbEYziRVhN+Ubguzy+7BKvcGeFzK5vX3XpU6d7/+4IQ== X-Received: by 2002:a05:622a:13cf:: with SMTP id p15mr16566805qtk.389.1643661173304; Mon, 31 Jan 2022 12:32:53 -0800 (PST) Received: from soleen.c.googlers.com.com (189.216.85.34.bc.googleusercontent.com. [34.85.216.189]) by smtp.gmail.com with ESMTPSA id j14sm5349661qko.10.2022.01.31.12.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 12:32:52 -0800 (PST) From: Pasha Tatashin <pasha.tatashin@soleen.com> To: pasha.tatashin@soleen.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, rientjes@google.com, pjt@google.com, weixugc@google.com, gthelen@google.com, mingo@redhat.com, will@kernel.org, rppt@kernel.org, dave.hansen@linux.intel.com, hpa@zytor.com, aneesh.kumar@linux.ibm.com, jirislaby@kernel.org, songmuchun@bytedance.com, qydwhotmail@gmail.com, hughd@google.com, ziy@nvidia.com, anshuman.khandual@arm.com Subject: [PATCH v5 0/4] page table check fixes and cleanups Date: Mon, 31 Jan 2022 20:32:45 +0000 Message-Id: <20220131203249.2832273-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.35.0.rc2.247.g8bbb082509-goog MIME-Version: 1.0 X-Rspam-User: nil X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 16B7E140002 X-Stat-Signature: e8xxsjbptzwbptkjwnoyr9xnawrxmubo Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=UnO4XGFk; spf=pass (imf26.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.160.175 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com; dmarc=none X-HE-Tag: 1643661173-699962 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000614, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
page table check fixes and cleanups
|
expand
|
From: Pasha Tatashin <tatashin@google.com> Changelog: v5: - Renamed page_table_check_pmd_clear_full() -> page_table_check_clear_pte_range(). Removed call to __page_table_check_pmd_clear() from this function. - Added Acks. v4: - Addressed review comments from David Rientjes - Added Acks. v3: - Resolved a regression introduced in previous version, where page collapse in khugepaged would cause crash on boot. - Addressed comments from Anshuman Khandual regarding commit log. v2: - Addressed simplification comments from Wei Xu - Added Review-by/Tested-by's from Zi Yan and Wei Xu Two fixes: mm/debug_vm_pgtable: remove pte entry from the page table - remove a pte entry from the page table at the end of debug_vm_pgtable pte test mm/khugepaged: unify collapse pmd clear, flush and free mm/page_table_check: check entries at pmd levels - check pmd level in page_table_check for PTE regular entries prior to freeing. repro.c: https://gist.github.com/soleen/fdcd501d5df103976245fe84e9535087 config: https://gist.github.com/soleen/8a56f923c2fea9ce9c75b4e2517d4162 qemu_script: https://gist.github.com/soleen/f4be4795826b7ab1a51ae659582e179c base image: https://storage.googleapis.com/syzkaller/wheezy.img https://storage.googleapis.com/syzkaller/wheezy.img.key Small cleanup: mm/page_table_check: use unsigned long for page counters and cleanup Previous versions: v1: https://lore.kernel.org/all/20220120042513.1648831-1-pasha.tatashin@soleen.com v2: https://lore.kernel.org/all/20220120191250.2671557-1-pasha.tatashin@soleen.com v3: https://lore.kernel.org/all/20220126060514.1574935-1-pasha.tatashin@soleen.com v4: https://lore.kernel.org/all/20220126183637.1840960-1-pasha.tatashin@soleen.com Pasha Tatashin (4): mm/debug_vm_pgtable: remove pte entry from the page table mm/page_table_check: use unsigned long for page counters and cleanup mm/khugepaged: unify collapse pmd clear, flush and free mm/page_table_check: check entries at pmd levels include/linux/page_table_check.h | 19 +++++++++++ mm/debug_vm_pgtable.c | 2 ++ mm/khugepaged.c | 37 +++++++++++---------- mm/page_table_check.c | 55 ++++++++++++++++---------------- 4 files changed, 69 insertions(+), 44 deletions(-)