Message ID | 20230722231508.1030269-4-pasha.tatashin@soleen.com (mailing list archive) |
---|---|
State | New |
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 2831AC001DE for <linux-mm@archiver.kernel.org>; Sat, 22 Jul 2023 23:15:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C56576B0075; Sat, 22 Jul 2023 19:15:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B41DD6B0078; Sat, 22 Jul 2023 19:15:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 945616B007B; Sat, 22 Jul 2023 19:15:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7E33D6B0075 for <linux-mm@kvack.org>; Sat, 22 Jul 2023 19:15:19 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 43E97C06AB for <linux-mm@kvack.org>; Sat, 22 Jul 2023 23:15:19 +0000 (UTC) X-FDA: 81040805958.01.FE99676 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by imf05.hostedemail.com (Postfix) with ESMTP id 828DF100005 for <linux-mm@kvack.org>; Sat, 22 Jul 2023 23:15:17 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=h4VGOvKM; spf=pass (imf05.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.222.182 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690067717; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jqX+omN+4AV/jEW9gJWFZdBmlFQeDD8EFviSI3KwL+8=; b=zKmIHknLNegSvMXYuiIBZgyViujoC7NFeSpJCwgZfog5Ak6sK62fgtXXANZK2DFSy+Jtkp 3SV+7lIkX7kCHr2guR1Xo8FbfDPWGm6aoeXCBCcGK5SdQD+PSypFW3m0osYqtzX6XBDezF hnWoIecHBWfOydsoIjdKFy8vhP00YKo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690067717; a=rsa-sha256; cv=none; b=DfvOgWYQYKfUReaF64+9qkysLVX22cXhF5nlrJYTYjUghQV+QePvtmIdpPXO/A3MDB+lQr eZrIUlr4Jp9HEs54Ev/80s5OFhcuUafgroq8RI/Vn4YWbhqbHR+O3o5w3nji9W+H9bo13l JOY3mkHkmPYWIRyyTaC59OE9SwHeW7U= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=h4VGOvKM; spf=pass (imf05.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.222.182 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com; dmarc=none Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-76754b9eac0so292676985a.0 for <linux-mm@kvack.org>; Sat, 22 Jul 2023 16:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1690067716; x=1690672516; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jqX+omN+4AV/jEW9gJWFZdBmlFQeDD8EFviSI3KwL+8=; b=h4VGOvKMgez+/NKOawppSiHt7934PF71iQ7qv8jvSgyoGVHQdeSp1JgcRIsn2D88hx g2qwPAuZJScjWF75Ou+qLGKjKOMoBD6KgtLtf0HDYfqszmZ+yCoggVBesEXvtWMjVL8g JpUjuA4gJbUNFr73GuH0FlWZrgf5yI6+x2LMQdtPiA8g0Av/6cdf1+CYfjPWtybKpcP9 eVd7uPFytoOlTw5R5xKtG9M76QYaPDi/SS5XihMN3binOTlJbuopN24pguAFSUKmGTZV KDBH4hbi0ALobtUZ6mlYQTvapei1p+n2u+rufzxhHrLS/TA6KLItQHUFRHlM6LpiyDgq m73w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690067716; x=1690672516; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jqX+omN+4AV/jEW9gJWFZdBmlFQeDD8EFviSI3KwL+8=; b=aOkGwZzQ0CiQzuzJglD0TkNZofAElOht7NWE3cmS9wFLgFefpwpriKF2D15E1cpbBD R5aweFYv6iQxAP3R+uy6KfPFdAGl4Uc2NPplM25itOaurBP+p/6Izr5zXobYRzOvi3s+ zvFA51RLpf9978jRkj2b5Y6YNICNVtN9iYtTfm18+POTC135oXMrJ1v3UNb14kOyZfKU HopOKDq2RI2Iypz5G5PZNs+uRTkLCaOqfmJSGo+D75iDr7Vb1Dyl79ucMF6S05n9Xx9L GwzHx+DooxalatVyI9jxYI8XBQw7lxAD5p5UbxmEGNp+ItDbVG/k48pEhiz+Wo9EYnWu XyWg== X-Gm-Message-State: ABy/qLaj5jVYs8gAu91cH4dS//JZZyU0xRRT5w8CR1jYDNUm0wum/qen CiGlW7dJ0D4IfWxK0TuO8+W/xA== X-Google-Smtp-Source: APBJJlFbRKGfdxJ0JTND8bD4QwfCFUoHWRvornko1ZnN1WHJ1NJtPHQPbc8oka0cm1metbm5E4tqEg== X-Received: by 2002:a05:620a:2807:b0:75b:23a0:e7e9 with SMTP id f7-20020a05620a280700b0075b23a0e7e9mr4800481qkp.74.1690067716634; Sat, 22 Jul 2023 16:15:16 -0700 (PDT) Received: from soleen.c.googlers.com.com (193.132.150.34.bc.googleusercontent.com. [34.150.132.193]) by smtp.gmail.com with ESMTPSA id u21-20020ae9c015000000b007675c4b530fsm2075957qkk.28.2023.07.22.16.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jul 2023 16:15:16 -0700 (PDT) From: Pasha Tatashin <pasha.tatashin@soleen.com> To: pasha.tatashin@soleen.com, akpm@linux-foundation.org, corbet@lwn.net, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rick.p.edgecombe@intel.com Subject: [PATCH v2 3/3] mm/page_table_check: Check writable zero page in page table check Date: Sat, 22 Jul 2023 23:15:08 +0000 Message-ID: <20230722231508.1030269-4-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230722231508.1030269-1-pasha.tatashin@soleen.com> References: <20230722231508.1030269-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 828DF100005 X-Rspam-User: X-Stat-Signature: baog8bbqyxb1bo9mc8ryj98g6ari3chb X-Rspamd-Server: rspam03 X-HE-Tag: 1690067717-265278 X-HE-Meta: U2FsdGVkX1+V46zj+1GQKryg2BSB3fX81EIIBWmUyJC0Kdn7+uQY8wV0PLxSh9Lmro8PS+TtCaBT9g2Qb53Zb96kwxJDdhOlLbuM8tTjHX3vRDBMH4bLgRKz/mY7gzLUE0aQUost3RiTqfpzNp5tkVcJgO+qZEmhxqcBZiN4EWnM1jS+QIVemR5oilSUb+Ev2oPYASLaIGLkcUxZdwTKLSk70q8lWACKJtv1k2xSz2qAU1ug/RgT2wswJJ5KYeatDxkTqC88RujDnvOviOQV6lkbgz4xSatGxQGTnLtq71uejIkXQg4w+wD7X+tIbPV3SlZM6SF6L6oLKqKBYC1NsYVVSm7HsKHUuy34OwxsAE+O6P8rYUrcRyct61G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ogofilter, spamicity=0.000000, 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 warn instead of panic
|
expand
|
diff --git a/mm/page_table_check.c b/mm/page_table_check.c index ad4447e999f8..db1ed36f7203 100644 --- a/mm/page_table_check.c +++ b/mm/page_table_check.c @@ -114,6 +114,8 @@ static void page_table_check_set(struct mm_struct *mm, unsigned long addr, if (!pfn_valid(pfn)) return; + PAGE_TABLE_CHECK_WARN(is_zero_pfn(pfn) && rw); + page = pfn_to_page(pfn); page_ext = page_ext_get(page);