Message ID | 20230722231508.1030269-1-pasha.tatashin@soleen.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1022451vqg; Sat, 22 Jul 2023 16:39:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWOfQ4TueyXr8taHhGARPBpcWq3dsoZzPCCClBX9yGf1RIC3PgETMhlr64fdev4YFpDrKt X-Received: by 2002:a17:902:cec6:b0:1b8:3936:7b64 with SMTP id d6-20020a170902cec600b001b839367b64mr8855636plg.1.1690069165777; Sat, 22 Jul 2023 16:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690069165; cv=none; d=google.com; s=arc-20160816; b=Ssk+fG5hCMNiRvGXHhV5wlHjYogNMXSG4VOHMJ4Iw46lTZu4rjgB/TFGlnLP88OXeE wAwLe2MyRgByeHrgv3op9U2EyJargIcrKP/QvTiYxiHR3mqxBq6kx8krvPNlsv7DyDuZ +V5s93vDKYh55aBp7TI/Ij43RJX041B2Irm9T9xdDlhh9uAuWmsEbFFNmRv0Kqkgt5qt XO5S2jksmBYBpQUgvR/bSgZC6/IQkLtLAnWsmCvOXYoai5EPCn5wB6Rbw0lSokIP3UgQ tP0wiIS8NYIJB+v9OkZwBu+Zxq1ADX68/XiNDnYm48BdQclC2/o1K3+r2BmrJheqtrRi o8Kg== 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:to:from:dkim-signature; bh=YXElrv06JK6ubX3O8HfdY1dTf7E2OdArtAZ3IXA7EKs=; fh=3XGqB7GeKQXfJDuGsLK5misCy7INHiOlYLYaXu6kEJM=; b=fA1ut9+RmpxhwxXmaxs62F0FfZ53/sb4fqfRShEzhGVxRJutvMxJ33KBjhCgjYcATq mU7EAPAmvA+HtM19JT4s54Ol9nb8ivoNAYEylUvQXz89RN79wpfQgiLws/MI1UnuyTwe QKGsRpnqYbGkxlOSu6D592OCybG75ZqZ5BK3IB6TErP0Qh6DePYPMO/xbSY/CWhqlwkU k6tv3T2eNcWgasseD40/sDuXECOHpZrpzmMINVH7vRwFL45qD1Y3xnyg3YWrYoXhWDA+ 73u4TlQ1Am/K9sKmeLgOkYv9pf4Ox6mN9oPoRG0fmQGx6jdGreEcfijJcOCt+m2TmuM3 I5pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=MqCdFdFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a17090322d000b001b03d54354dsi6258907plg.189.2023.07.22.16.39.13; Sat, 22 Jul 2023 16:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=MqCdFdFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbjGVXPS (ORCPT <rfc822;chrisben.tianve@gmail.com> + 99 others); Sat, 22 Jul 2023 19:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjGVXPQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 22 Jul 2023 19:15:16 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81AF01705 for <linux-kernel@vger.kernel.org>; Sat, 22 Jul 2023 16:15:15 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-76ae0784e0bso79984285a.0 for <linux-kernel@vger.kernel.org>; Sat, 22 Jul 2023 16:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1690067714; x=1690672514; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=YXElrv06JK6ubX3O8HfdY1dTf7E2OdArtAZ3IXA7EKs=; b=MqCdFdFdVTTsNdqd7a+xzhmq+/LUHtdY6xsY5wr3z4/kwOiTDbnyLic0aYc5jSUAai Fls1V658MGJnX5mm8K/uAxOlFLYzEUz+Japtx9a4BnSvSX4VJmkvFOl5XDIKf06sDPKX 21UiJ6w6gXx4dFsxzua0q7bp7P16vsnZ/HYO38i2CC1ihjSEx8dl2J1tmHXJxfcGtS2U f6J0PeiE2z58XMKgEuJsjbuxKK1dtbQTRriU5fO4Tf+ljmHbqqapHubprl7UOROa/09y DGetG6MBSsoaPIw9C8YA9es8Ouoe5qbzpO9ZeolUU2GCXJ2MqDm6VWevM+3zD8zddiVf vwmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690067714; x=1690672514; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YXElrv06JK6ubX3O8HfdY1dTf7E2OdArtAZ3IXA7EKs=; b=Ict6MAFshZ94Atk307g81cuLyIfMJPXKle8zUlso1OsbqnUALeFMlctmvgD3VRfsFS eay5HRuKrrwakP91qxV5mlUQoonLjlWQEh+J0j3ZL0L49ae5KMdCioMbZqL08hR3h5tX prOceQuTGO8rfyD+tbtFrQ9f3XYoUc6mlQI6C8S+ZrlBmCIWL1X4oiHsW/+tHxETINzQ EDe3LlogkYrXyiYIv+Qa8nkx1hT8/gUEdfF/uF01jIRGKcf6aTKSI+wLCckXYbV1eAC/ mWbC1CDxX9P1uipFdXOiGx+M/wZhY8nPGg4LMwyJjFbPSGbkPXrYoCE7VAuernTvkdiE MROA== X-Gm-Message-State: ABy/qLYNS5Cp02WZKv1cFUpUTTqassEy6zQCqMNPe8eednPYgTmsxZUr GTuDsLCEQ8gKg9cVRVX19A+owoMrSVcSuCxDn7Q= X-Received: by 2002:a05:620a:258b:b0:767:dd1e:967b with SMTP id x11-20020a05620a258b00b00767dd1e967bmr3977698qko.39.1690067714674; Sat, 22 Jul 2023 16:15:14 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jul 2023 16:15:14 -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 0/3] page table check warn instead of panic Date: Sat, 22 Jul 2023 23:15:05 +0000 Message-ID: <20230722231508.1030269-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772165965563134985 X-GMAIL-MSGID: 1772165965563134985 |
Series | page table check warn instead of panic | |
Message
Pasha Tatashin
July 22, 2023, 11:15 p.m. UTC
Changelog: v2: - Moved "Check writable zero page in page table check" to be last in series so not to add more BUG_ON. - Removed page_table_check=panic as was suggested by Mathew Wilcox v1: https://lore.kernel.org/linux-mm/20220911095923.3614387-1-pasha.tatashin@soleen.com/ Page table check when detects errors panics the kernel, instead, print warnings as it is more useful, and it was agreed the right behaviour for kernel. In case when panic is still preferred, there is panic_on_warn sysctl option. Pasha Tatashin (2): mm/page_table_check: Do WARN_ON instead of BUG_ON doc/vm: add information about page_table_check warn_on behavior Rick Edgecombe (1): mm/page_table_check: Check writable zero page in page table check Documentation/mm/page_table_check.rst | 5 ++-- mm/page_table_check.c | 39 ++++++++++++++++----------- 2 files changed, 27 insertions(+), 17 deletions(-)