From patchwork Sun Sep 11 09:59:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 12972820 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 CC58EC6FA83 for ; Sun, 11 Sep 2022 09:59:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 029848000A; Sun, 11 Sep 2022 05:59:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1C9080008; Sun, 11 Sep 2022 05:59:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE3C18000A; Sun, 11 Sep 2022 05:59:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CD06E80008 for ; Sun, 11 Sep 2022 05:59:29 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9E70DAAD75 for ; Sun, 11 Sep 2022 09:59:29 +0000 (UTC) X-FDA: 79899357258.10.7378A25 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by imf14.hostedemail.com (Postfix) with ESMTP id 4509E100092 for ; Sun, 11 Sep 2022 09:59:29 +0000 (UTC) Received: by mail-qk1-f180.google.com with SMTP id g2so1388516qkk.1 for ; Sun, 11 Sep 2022 02:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=05QawunNkBTDZNRfoCgb3ddj6vEbyg8mxMOwfq8BU7w=; b=FITg0qC1SJ9aTWSShCLy+0XEwLiqqzm16acwEyJX+XAOfrkrL3gQKFBN6iNFjhoHZG EYZSqPwq89StyoiXOzPi38OdVfen6Kch8+/0qdeqz32WP9rIf/YfnNlK9jiEjdznFivN AWmO7rucIghTBighws2gKH3KXmkj8HoMUlZFBEiOrRJ3AiTCYs9aOifMWtWN6LwtdZ9Q gvQ28/d6rSLqSZWi9KMMqD5dqriCMSBexYGH4bchWXrRUAM6shbXX1zRtugVZ+iidlYX OtB+AesCotlHvIHNl28PHVO62PQklu7/96OO8IaLxQocXyu9UWL4GRPuzYDaYlM5l80F PvLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=05QawunNkBTDZNRfoCgb3ddj6vEbyg8mxMOwfq8BU7w=; b=YjYKdNpZPqDvw913n8V2f4udpiYXrJ9t6yjsOLuyP5ZwmZr+4wokHH64DOQtpf4ptu y7oexnT0uHdBfQcgFqunqmHP0Lbv/PXEh1ztW0rGaQOG2dn5Bc50Srjl36K6vNyjwKm6 WN/LQ5PzYN08YTsz1keSYlAjeeibYQ/yoaK8kedUIRx2xxkLTdHuOZkYl4PXBfXmydMC QQdI/++OXhC7Br2n+byAmA6utcYTk3hKJYczwFXX9INsu7TVLl6mgQx1I9STjDuUBmBU IJWO78c94zFX3ZPlc4+vtq73UBm4+Gc/XBPl7Nham/W5JxTMyzo4wO3guAdUdcEy+TSV HpLw== X-Gm-Message-State: ACgBeo3XCnRMw0iz/8qMBF3Bags3qhUPqxRMr1os6gBtIg25byB5dKZr 7jnRd54coowAocAIRr2iwHNkZA== X-Google-Smtp-Source: AA6agR71DltUgDiY2jCMkxrf+AZs/phfKSzHNt2mi1NjERR2m+qoQs1XuGvQYq7t2EcHdQja6Z5EDA== X-Received: by 2002:a05:620a:144b:b0:6cd:5fc9:372 with SMTP id i11-20020a05620a144b00b006cd5fc90372mr7364483qkl.452.1662890368474; Sun, 11 Sep 2022 02:59:28 -0700 (PDT) Received: from soleen.c.googlers.com.com (240.157.150.34.bc.googleusercontent.com. [34.150.157.240]) by smtp.gmail.com with ESMTPSA id y29-20020a37f61d000000b006cbd60c14c9sm4625233qkj.35.2022.09.11.02.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 02:59:27 -0700 (PDT) From: Pasha Tatashin 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 0/3] page table check default to warn instead of panic Date: Sun, 11 Sep 2022 09:59:20 +0000 Message-Id: <20220911095923.3614387-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662890369; 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: references:dkim-signature; bh=05QawunNkBTDZNRfoCgb3ddj6vEbyg8mxMOwfq8BU7w=; b=HS5oUGD1dcUZxl5B3u8AeSHSGqKWs3SmFUK2iUImCjV6L1HMtYfSh2eujcm6o7fsAlxLv3 qOjmKg0ex7BacpgQDXaoVyaFavOcTyNGcHdor9tq90iZIrTB2xM1HpNC3WPw54CCrMlwEc speL7skBQNEs+PhKP/UoIYzYmvvwaMg= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=FITg0qC1; spf=pass (imf14.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.222.180 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662890369; a=rsa-sha256; cv=none; b=x9TVTlYG7L0QgR4/WMEcjlqm7xmcVd5zv+77ZZplIH2d5erAMHrxFQ7Kv4A1jZW2rwIHCQ qbJK7NPT7+8ngLG6JVG+LlnsJQwIJwdcp6+5HTezT+X1dA1kGb/sbiG1eLgai5urgUuEUF Oy2NGCQ0nz2vnbxVFAUECz9SCN0EBOI= X-Rspam-User: X-Stat-Signature: ie8a4wjskc1da9kq5dr51kiq8khq6wo5 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 4509E100092 Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=FITg0qC1; spf=pass (imf14.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.222.180 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com; dmarc=none X-HE-Tag: 1662890369-813535 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: From: Pasha Tatashin Page table check when detects errors panics the kernel. Let instead, print a warning, and panic only when specifically requested via kernel parameter: page_table_check=panic The discussion about using panic vs. warn is here: https://lore.kernel.org/linux-mm/20220902232732.12358-1-rick.p.edgecombe@intel.com Pasha Tatashin (2): mm/page_table_check: Do WARN_ON instead of BUG_ON by default doc/vm: add information about page_table_check=panic Rick Edgecombe (1): mm/page_table_check: Check writable zero page in page table check Documentation/mm/page_table_check.rst | 16 ++++---- mm/page_table_check.c | 53 ++++++++++++++++++++------- 2 files changed, 49 insertions(+), 20 deletions(-)