Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1108644ybj; Thu, 7 May 2020 15:10:38 -0700 (PDT) X-Google-Smtp-Source: APiQypIfiaeFS00M1XlHh/L5/mRPiPKiOfGnfyC04vv0i7QURe39FX/ArzgrGRzZ6YycMcKYwWEF X-Received: by 2002:a05:6402:17ef:: with SMTP id t15mr13991125edy.10.1588889438469; Thu, 07 May 2020 15:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588889438; cv=none; d=google.com; s=arc-20160816; b=0ygFzaY4Gg/PoEibeA3vQ9KTPL0cC2e231sNg6Lx+xpu+HxlgS0Db8EoeDdF1HgZhp ALntWcmcy0j80xMbid5gX5QgRr6uZCcLz/5asf0W9cBfwyIkDEsnMThwQHewsmJEL+WQ KBrSWfZ9kxly78H76y3F3YLVpKSxXPyxtJq3GU93t8K696KS4lHRTjh/MTGzACTd8V1D xqgt80YJ/qXCjs3aLYm+sib9Anpq/jTesDS7Iw2Nw9O3wr/spHxDg5HTUtUD8AMSdiUB pYVrg9pcjhXpVv54/XF2W93PjHVtr6T4H7M8mM/iIT0tXWfByj7yAXFCcNQMAeq8cuyN V+Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=en4GHRy/JYPyqA5v6A21rwrH4iUeiYDglj3PCm7zaTE=; b=aDfi1RM5Fxytya2nPVanreOETtkoydaf9dG9RE/Y100VqxrP97RjYBUJN/tpid+00c ThR+eHiKGhVaTGXO78sCEuOjHLTYicnB4GO1JAQ2E8Q+ud0+mSFF6Q+NdBGmzjjiMona 1mnp9K0gNrE3xKe+HFmERpe3WdUQucXpTPm1tUYwlWs3KDMD2lNofZZ5/6YE0VrFIlYj nXoIjttmepMcw1rDXd2SWpy0vQtI5rVElUYgFAPcQpU9sg9tZwc3qHeXWDwVPKsEp44k /yaH1KSqv2HhQQ5kzl53DofABpRocFHwWQf3os32VIun3mBS3ZkecuewClYULE9rbdMf D3Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=NsTphQo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si3560094eja.517.2020.05.07.15.10.15; Thu, 07 May 2020 15:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=NsTphQo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbgEGWHo (ORCPT + 99 others); Thu, 7 May 2020 18:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgEGWHo (ORCPT ); Thu, 7 May 2020 18:07:44 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C178C05BD43 for ; Thu, 7 May 2020 15:07:44 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so6254830qtb.5 for ; Thu, 07 May 2020 15:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=en4GHRy/JYPyqA5v6A21rwrH4iUeiYDglj3PCm7zaTE=; b=NsTphQo3KrIot3EHRR9MKfhiB8/WsOHq01/hLgkb+H//7PrOqvCj5NTxbnaFUnfyCm 0iwuvrNpoPVetfRb67BNbjybK6/uoNcUveymSiiNlXA45tEK0EtsQ5rzNJPrjzwGfrNZ RYuwS6foMYX9JtD8p/lE+cd5djCyYEqiAn3kIIyUNO+d5VF1/CTPg8jdMFLrI6/DZ95k OEh0TDXAiOnZ7ahcPGDPGCQcFv2LK27gK0aLjSyXsAk46ZO2MfZ0r/v4SpluZNwKJAUM 2mQyVIqlXMDWClY69c2WULVjuPG+YFgSDAi+ZsWeevurvhZ45jn6p8zAOo30BIB1h9Sa LxRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=en4GHRy/JYPyqA5v6A21rwrH4iUeiYDglj3PCm7zaTE=; b=Ohpgwo+mekmWgOQWkxiD+4hniSnlTEYM6Fz72fR8k7RRSAh81sp39J9YEigTkU8wri 9ifGku9NaZPdLImJeEdDMMu/hrelZNK0RfEvBzi3n8Tx9HxWhX8Zni12QwCYw3qWfgWw EC8cdWDy6JD4rP+SQP02lepKcIf3UgBQTlD92WocepXTv9L2eAS2cpgZJ5tjFw5QG1Ps 8HA3fy61pLd/WeFo7Gw+XThRprerkkEEuSyEyfMtUv92WTemASlXZhkwG5ygpjsMMlT1 XDcZzi7Re64II2Gx9aON+49nYewQpceVjFQYt0wa6xp2rbpB+nev8TY/kIp50r5AvabT cgWg== X-Gm-Message-State: AGi0PuZcEKZFGuPT7/GAsoCUtPMhOEWiBP+O0FFTWoIYl3r5S2hVeJOq zChgkyHvw9u7C8B3OYWJ7wYdWQ== X-Received: by 2002:aed:2dc1:: with SMTP id i59mr16899053qtd.182.1588889263247; Thu, 07 May 2020 15:07:43 -0700 (PDT) Received: from qians-mbp.fios-router.home (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id 10sm6045321qtp.4.2020.05.07.15.07.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2020 15:07:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] kernel: add panic_on_taint From: Qian Cai In-Reply-To: <20200507204219.GJ205881@optiplex-lnx> Date: Thu, 7 May 2020 18:05:27 -0400 Cc: Andrew Morton , LKML , linux-doc@vger.kernel.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, dyoung@redhat.com, Baoquan He , Jonathan Corbet , Luis Chamberlain , Kees Cook Content-Transfer-Encoding: quoted-printable Message-Id: <27AA744E-930A-492A-BE87-05A119FE1549@lca.pw> References: <20200506222815.274570-1-aquini@redhat.com> <20200507204219.GJ205881@optiplex-lnx> To: Rafael Aquini X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 7, 2020, at 4:42 PM, Rafael Aquini wrote: >=20 > On Wed, May 06, 2020 at 10:50:19PM -0400, Qian Cai wrote: >>=20 >>=20 >>> On May 6, 2020, at 6:28 PM, Rafael Aquini wrote: >>>=20 >>> Analogously to the introduction of panic_on_warn, this patch >>> introduces a kernel option named panic_on_taint in order to >>> provide a simple and generic way to stop execution and catch >>> a coredump when the kernel gets tainted by any given taint flag. >>>=20 >>> This is useful for debugging sessions as it avoids rebuilding >>> the kernel to explicitly add calls to panic() or BUG() into >>> code sites that introduce the taint flags of interest. >>> Another, perhaps less frequent, use for this option would be >>> as a mean for assuring a security policy (in paranoid mode) >>> case where no single taint is allowed for the running system. >>=20 >> Andrew, you can drop the patch below from -mm now because that one is = now obsolete, >>=20 >> mm-slub-add-panic_on_error-to-the-debug-facilities.patch >>=20 > Please, don't drop it yet. I'll send a patch to get rid of the bits, > once this one gets accepted, if it gets accepted. Why do you ever want that obsolete patch even show up in linux-next to = potentailly waste other people/bots time to test it and develop things = on top of it?=