Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5759183rwn; Mon, 12 Sep 2022 14:02:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Ueu6WCGjKnYDbg9zudGtTHo5lUcsxLxjg1mKK3GjAxkf77b2fhnvI9d7d3DMpgHj9G8Ag X-Received: by 2002:a05:6402:270d:b0:452:2b68:90a0 with SMTP id y13-20020a056402270d00b004522b6890a0mr2221686edd.132.1663016569405; Mon, 12 Sep 2022 14:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663016569; cv=none; d=google.com; s=arc-20160816; b=wa5sc72+4fU9hh77eIY+5VXn+w5B/Klybg+1UpjW16zXDNc0ekZy7VVnJ97+GbV/qI /KuWsqULYEehbpdwNx/+5OzQkjpfj+D9pXT+zSqiUA3AcwG/d1PUPGjev8Va+mippOGR zbYj0slfe2HfDVEV30/GJAaWhN8/BV/EcvybZupICpV+bjvWNd5Nlah0uONvMDKESh2m 0h00ARqHvCrsBAtVEJbc5in3bse66FjQYG/hE75175cxpomV9pLJQRzgn7+cLmXWtOz5 KCAe/KYcKQzCG4cTKwYUGAUBbAK73fE+GmRhm8sra0I3aA0FAsE9t1t56s7ATm4tLub5 s/Bg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=E38x4yUqfl2eeIhpf2Rrmm5UtzhqSN0OrjVUrQ7btPI=; b=nqhms6IzOzNf523z48WTBYLrjOehMjF9SglaYi++f96r1y7mpFDgVqCgii3FkXmCjJ 0Vfic6ZrlphwMAbk80mXMCayK/LTTO71oGtnbGoU6BQ0SxoWtD6ASZZIT0k+bMohF13L cfjq71qlLaCu8n7k68hhprV3tBXpX53ndnJwfajaW2gUgnVZthN2qzowdwg/LrxZEz1v U7HjsjjrncF2o0S3jow9w6dzQqAqTSu6+vlqrf/eIG/AK7AoXeMAiMLq5y5fCQY4CzXR YOs2seL7VR/1E2rXP+2a1fHv7ZZt1iBPNXBKawpyL3RU8P9kXB1LMn59lGqmBdypHiMr MAeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qNIPHzmg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a170906270800b007708337cc3dsi7048941ejc.624.2022.09.12.14.02.23; Mon, 12 Sep 2022 14:02:49 -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=@linux-foundation.org header.s=korg header.b=qNIPHzmg; 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 S229671AbiILUX2 (ORCPT + 99 others); Mon, 12 Sep 2022 16:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiILUX0 (ORCPT ); Mon, 12 Sep 2022 16:23:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E96481D9; Mon, 12 Sep 2022 13:23:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9B3A8B80C68; Mon, 12 Sep 2022 20:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29911C433D6; Mon, 12 Sep 2022 20:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1663014203; bh=V7XKrZJImH3ItQ7EvPsT2qdGqMPYz4GDAX5yuckn2rQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qNIPHzmgHprhHCZZQt1KEnDXQwoNzGJBbNmWaHY2Hyr6Y+pFN5ysScUAKnVVLAUct 1DqNhpDuDZBzf4Gc466iorybnr/i3RCihkAWQY2BIgOCAKTKLIN4Q6qjJ9ipSQvQuh YF5asvUxcEqMYSo/t/7k5gSY6zwv4DImn1wpmf5k= Date: Mon, 12 Sep 2022 13:23:22 -0700 From: Andrew Morton To: Pasha Tatashin Cc: corbet@lwn.net, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rick.p.edgecombe@intel.com Subject: Re: [PATCH 0/3] page table check default to warn instead of panic Message-Id: <20220912132322.7c486c40c6acf8eec0785c87@linux-foundation.org> In-Reply-To: <20220911095923.3614387-1-pasha.tatashin@soleen.com> References: <20220911095923.3614387-1-pasha.tatashin@soleen.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Sep 2022 09:59:20 +0000 Pasha Tatashin wrote: > 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 The changelog doesn't actually describe the reason for making this change. Somebody obviously wants pagetable check errors to no longer panic the kernel, but why?? (The same can be said of the [2/3] changelog). Also, should we be changing the default? People who like the panic will get a big surprise when they find out that they should have added a kernel parameter to get the old behaviour back. It would be less disruptive to default to panic unless page_table_check=warn was added. If there's a solid reason for changing the default, it should be changelogged. And if that reason is generally agreed to, perhaps the kernel should print a warning at boot if neither page_table_check=panic nor page_table_check=warn were provided. To tell people that the default has been changed.