Re: [PATCH v3] kernel: add panic_on_taint

From: Baoquan He
Date: Sun May 10 2020 - 01:17:06 EST


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.