Message ID | 20220126060514.1574935-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 90093C2BA4C for <linux-mm@archiver.kernel.org>; Wed, 26 Jan 2022 06:05:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D94B56B0074; Wed, 26 Jan 2022 01:05:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CFEF16B007B; Wed, 26 Jan 2022 01:05:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B002E6B0075; Wed, 26 Jan 2022 01:05:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id 8F52D6B0075 for <linux-mm@kvack.org>; Wed, 26 Jan 2022 01:05:19 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4891694FA1 for <linux-mm@kvack.org>; Wed, 26 Jan 2022 06:05:19 +0000 (UTC) X-FDA: 79071400758.24.211C1DD Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by imf14.hostedemail.com (Postfix) with ESMTP id D26C110000A for <linux-mm@kvack.org>; Wed, 26 Jan 2022 06:05:18 +0000 (UTC) Received: by mail-qv1-f45.google.com with SMTP id o9so23893540qvy.13 for <linux-mm@kvack.org>; Tue, 25 Jan 2022 22:05:18 -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=8PiQqXhI0asxLO+FZ+u7NyXhLFJh+Rha3MB+YCukq+Q=; b=M978v7tjWc3gOWFuhudGrYpwJwQVbjbwWSLRYqFio6nqeC7nAdmwks9kUjQjKfpA6S W5TzDF8YfTGKnCO1shCGqZIdYD2MxOkQGyNnaWB9G2vtxPlh713auyXlJ6zLDbFHqy4w iLwMYUt23pDEL+G6SsNfA/kRRBk0Xv0dhq+30F4ruGVrHsSvqWh8cKZDxXp942Z00kCr MepaZUvXkwJ/SEcXeHuJnhVB2kOVG22d0s5MaOaDz8mO++dmBYrTLyxSjjqVXRvL0LlA dAbNymRzQdVmBZ9QySkJLrmBFU7HUdw9dpD6isFxuGG50t4D4g60m/rqs7xV3WILkNFd TPsg== 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=8PiQqXhI0asxLO+FZ+u7NyXhLFJh+Rha3MB+YCukq+Q=; b=RAADGQfSDqx70ucJfX5cq8GTJ9/c667/gblB2AXy6Qwi7mdtrtlKKra+4UjUW9AE6w p6SRCUhEbmRMdM8ke+oAEvKtq3UAkdZtMTTv8iE+a2hA/Fuuch+8IBP17lkYEXEISj1q gTGGJhEptT3FqJHQ2vM6fJpqIVL/x7GmXpbDQ5D+QMKahYcqYbuD+BBG0pkdtOl8jYc+ igXEqPpXoFP4IYFeUj/toVyow7amy5VBt2qt0M6SgaUndJsFoLlptKYny7JR9JyCr9LC J6cNad+ZdVsoB8fAaUSYGUBfuCL9ip5SoYw25uKc4IcrknWsYWMxh1PeSxbvda1iqDrJ Xorg== X-Gm-Message-State: AOAM530NuKMoC+Xnov95h3En9P5uZ2M0abhFXQj4Wvs18OiV15Nzb1wX wRq7lTf/uD52WMriG3P/yUMK8Q== X-Google-Smtp-Source: ABdhPJxIsut29jbbnVAkvBpwK8BOoN2H0+yE4C7BCjvp+eQjhgoh/9lIrr2/RPKunvKBzF8bItetjA== X-Received: by 2002:a05:6214:2307:: with SMTP id gc7mr22689543qvb.77.1643177117155; Tue, 25 Jan 2022 22:05:17 -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 o19sm9856699qta.40.2022.01.25.22.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 22:05:16 -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 v3 0/4] page table check fixes and cleanups Date: Wed, 26 Jan 2022 06:05:10 +0000 Message-Id: <20220126060514.1574935-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog MIME-Version: 1.0 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: D26C110000A X-Stat-Signature: 6nk9k3bqpfjhf4yizsw45cbzx4mnx5f8 Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=M978v7tj; dmarc=none; spf=pass (imf14.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.219.45 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com X-Rspam-User: nil X-HE-Tag: 1643177118-708010 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000013, 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: 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 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 | 18 ++++++++++ mm/debug_vm_pgtable.c | 2 ++ mm/khugepaged.c | 34 ++++++++++--------- mm/page_table_check.c | 56 ++++++++++++++++---------------- 4 files changed, 66 insertions(+), 44 deletions(-)