Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp978539ybj; Thu, 7 May 2020 11:53:07 -0700 (PDT) X-Google-Smtp-Source: APiQypI+8yqsK9tTTxAJ5KukHHbUSDfLIEAuzNR7VMgzElvRtKlmKp46Km169xVkB44pF7HCe4xk X-Received: by 2002:a17:906:7750:: with SMTP id o16mr13609481ejn.12.1588877587311; Thu, 07 May 2020 11:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588877587; cv=none; d=google.com; s=arc-20160816; b=sSssymf1CjzTzCVv3VfesE7CovT/9KRSg4HbqalQG2C2YSfoG+gyqRNZKuVcjJrOmN F3dmePBwaDOoYOCq7f092G9qzd8dDq8KnimELbV8aaB+t9tVXxQqf0UELoJdg4K2yq5h 7tOuCL3TC0Ol1iOxpIztwq5DU9+fioxAMcjDimtdkswR4JvMyYmi4WZeULCv8I8lP1eg Mb5XEGI9kfJJs6qJHex2EQkzr0Ghj+SyUm07FCZy3XQ/9DJcWB3zrolhJuC429YZRhoT ZUOj+/hDztHwekFPuq99f9uMBPpT/OtO+GVJuf1gOOARxGJr1JFYRqhXZ3QCKfpXRe47 KydQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NVtq4LDDtvm7cyqcZmZ6iVyVFqaMEGZyo2ntIU6mBx8=; b=EbAgpkwLJi+EdEjLOavomiiiYyJXgiWrfArpXnAKeUvUfNGct4RIJUoG31aTyTCca4 lQvj9VtcDiHlfZT/h2uMBLg+9oud1UDrmp6qlgRP+JmwsMaEYdTaJMqDtZwLjfUXu/F5 RmsMvQWajg39RPiTXYRx7fb62BvCQxOa12+f0c7i3Nl0DiD97rhqkfq5QdJiUi7IWeUR ugVOM5s13gGKurNu90P6SlZrbkuO156C2zOLR/DQRfi1nUlIeZDZT/B/erpcR/Mwk4T6 UgqQLKi1BIqzmGDU9X+MZ/ypb8wk9H9I8H8SY9TVNR9eZwzVzVHS2kd4CEe/abLo57D/ 6jKw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu17si3460105edb.276.2020.05.07.11.52.44; Thu, 07 May 2020 11:53:07 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728172AbgEGSuu (ORCPT + 99 others); Thu, 7 May 2020 14:50:50 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35879 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgEGSut (ORCPT ); Thu, 7 May 2020 14:50:49 -0400 Received: by mail-pl1-f194.google.com with SMTP id f15so2430640plr.3; Thu, 07 May 2020 11:50:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NVtq4LDDtvm7cyqcZmZ6iVyVFqaMEGZyo2ntIU6mBx8=; b=MkU6SofPX1nSol8g32toQunda+QRsJDgV6ECkIfwTDWlj0tRgdBWeEYxJ+rVJ9Q53L UHFoQPNDDFnzrCxHsTKJVf1Sn2w0MpWMzfX9ea9l7s1jd8EdongQZU4jSFjR7A7DBYsG 4u6usbp92htw/LZpUYq/2oom4r1v5Ee5wFv47+3kV93FunQz2S6saDM4CDv3DrB3F8TQ ka/C2DN/ISVM+5iN8MdRtT9dS5MiUZT6eWxQkJBUwdl4DQhOBBFOOsfnOl+v+luBnQf2 5u/bLVWUOIQXP0Q0uqi8mLkGaHlTCMIfhEgs7xI7R5behg7f64bPlidCjP5vbtVrHj6N wYEg== X-Gm-Message-State: AGi0PuZ01BqftuvErG1l1PAtoKe3ZxhCJNgk0DUbCf1f+ik/Ti7ZxZQl QPV7leXsEnSsGBgIePqLoLk= X-Received: by 2002:a17:90a:d808:: with SMTP id a8mr1614734pjv.6.1588877448984; Thu, 07 May 2020 11:50:48 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id ft14sm474731pjb.46.2020.05.07.11.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 11:50:47 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 92589403EA; Thu, 7 May 2020 18:50:46 +0000 (UTC) Date: Thu, 7 May 2020 18:50:46 +0000 From: Luis Chamberlain To: Rafael Aquini Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, dyoung@redhat.com, bhe@redhat.com, corbet@lwn.net, keescook@chromium.org, akpm@linux-foundation.org, cai@lca.pw, rdunlap@infradead.org Subject: Re: [PATCH v2] kernel: add panic_on_taint Message-ID: <20200507185046.GY11244@42.do-not-panic.com> References: <20200507180631.308441-1-aquini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507180631.308441-1-aquini@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 02:06:31PM -0400, Rafael Aquini wrote: > 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. If used for this purpose then we must add a new TAINT flag for proc_taint() was used, otherwise we can cheat to show a taint *did* happen, where in fact it never happened, some punk just echo'd a value into the kernel's /proc/sys/kernel/tainted. Forunately proc_taint() only allows to *increment* the taint, not reduce. Luis