Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp865424ybk; Sat, 9 May 2020 22:19:25 -0700 (PDT) X-Google-Smtp-Source: APiQypL7NgViABYz4d/+icABDEb1ydlkP/AgGCqe+y5lK/Be0AsSu413MSp822B4dEgmwF6v3ZP9 X-Received: by 2002:a17:906:404d:: with SMTP id y13mr8628705ejj.43.1589087965571; Sat, 09 May 2020 22:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589087965; cv=none; d=google.com; s=arc-20160816; b=etEvnwLiG/DdWC4LCzBbU8Iv73ZoyismPY0v+sSW+rcIt7/lqi2VE16iEd6TOEez5r FvLigchNu57ED7kGZ6/WyC9uOINDj6aNfqkuvs4G3r3RryA7xCRafMeAFgKjxZ+1e2Am U8QEEc5znK50FmiUh4KlAqfjC5eZ95dsSbJ43S5v4r+JxURL0A1WTMIolyq5NrpWM8Lm VzOFOE5QF7I6gV+zDWvYTaKhYUuCAgD+5IQwOdYh59m2Ho+MjYs9qHeHEZbPIrpCA/fE ZYhrBcWUDbOZABZFLLgxCXt+RGCfWtgneVqtxuyAy6/e4FwPyDF3KrR+wOmuoThAD7xj yG8g== 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:dkim-signature; bh=tCJf3aD47ctQEj0+bjTncfKWspILH0i2eRAlZk7YIas=; b=nfI7cH6JyKO8kJI/csOpTFrDCg2Ligi4RkFVeN04INameG5A0CtOmUoqYnww4HpbXu aIqft3OFkIGEeM7AiiHwlZAhqLHKBvbufWdJrFaq0/mKlOQu6Gn6ra1s8v01y6OVxqAS muOi5sGWmXFrD2l/ntUTp1+MI9S06pyC15evnAt9PPRgOZ3ocRk9yOG9y69f37SeGgXo 1R496Ps7Y96v99LZEf6JUh5bNLDWa3saidD8rTtV64HbbRtdo6Tk/MYPXEkYLzNSlyPI WLq9V/JqJ4sORwgF4kd8iZVHNZWcvM3MUO7K7j2izJsdqI8EQdusgp4ocso86xuzYhYM XoYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YkA+bNRD; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw24si1003344ejb.73.2020.05.09.22.19.03; Sat, 09 May 2020 22:19:25 -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=@redhat.com header.s=mimecast20190719 header.b=YkA+bNRD; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728123AbgEJFRE (ORCPT + 99 others); Sun, 10 May 2020 01:17:04 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:36204 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726245AbgEJFRE (ORCPT ); Sun, 10 May 2020 01:17:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589087823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tCJf3aD47ctQEj0+bjTncfKWspILH0i2eRAlZk7YIas=; b=YkA+bNRDfKCq+NmOCS2CsehwT+8p7u3Brk/3C/kSzRC9vUa2Op3Gz+55ebaBTpU36NAr4H E5zKt1n3A53puuQihq9HHS4raC005hHPJExsTnMw+PlCBCWzTtcGejx5XythiSwYiwu2pe J2nJBDeTQ5Lme2XAvcWZdpPUP+l19WA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-315-1wSi7USNNkmzpDGYI08JnQ-1; Sun, 10 May 2020 01:17:00 -0400 X-MC-Unique: 1wSi7USNNkmzpDGYI08JnQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 23DD980058A; Sun, 10 May 2020 05:16:57 +0000 (UTC) Received: from localhost (ovpn-12-30.pek2.redhat.com [10.72.12.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B8EB7704C6; Sun, 10 May 2020 05:16:48 +0000 (UTC) Date: Sun, 10 May 2020 13:16:46 +0800 From: Baoquan He To: Randy Dunlap Cc: Rafael Aquini , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, dyoung@redhat.com, corbet@lwn.net, mcgrof@kernel.org, keescook@chromium.org, akpm@linux-foundation.org, cai@lca.pw, tytso@mit.edu, bunk@kernel.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, labbott@redhat.com, jeffm@suse.com, jikos@kernel.org, jeyu@suse.de, tiwai@suse.de, AnDavis@suse.com, rpalethorpe@suse.de Subject: Re: [PATCH v3] kernel: add panic_on_taint Message-ID: <20200510051646.GF5029@MiWiFi-R3L-srv> References: <20200509135737.622299-1-aquini@redhat.com> <20200510025921.GA10165@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/20 at 09:10pm, Randy Dunlap wrote: > On 5/9/20 7:59 PM, Baoquan He wrote: > > Read admin-guide/tainted-kernels.rst, but still do not get what 'G' means. > > I interpret 'G' as GPL (strictly it means that no proprietary module has > been loaded). But I don't see why TAINT_PROPRIETARY_MODULE is the only > taint flag that has a non-blank c_false character. It could just be blank > also AFAICT. Then the 'G' would not be there to confuse us. :) Yeah, seems c_false character is not so necessary. If no 'P' set, then it means no proprietary modules loaded naturally. We may need clean up the c_false in struct taint_flag, since c_true is enough to indicate what want to check.