lkml.org 
[lkml]   [2022]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [RFC PATCH 3/3] x86/microcode: Taint and warn on late loading
Date
> Yes, they can be as many as there are letters in the english alphabet,
> it seems:
>
> struct taint_flag {
> char c_true; /* character printed when tainted */
> ^^^^^^^^^^^^
>
> and there are already
>
> #define TAINT_FLAGS_COUNT 18

That's very 1990's thinking. We have Unicode available now.
We could start using Emoji like U+1F4A9 as a taint character :-)

> Look at the other taint flags - they're set in a bunch of different
> places so it is hard to unambiguously decide where the taint was set. If
> we wanna use it for debugging, then the taint_flag struct above should
> probably save the caller address which set the taint... or something to
> that effect.

That sounds better than a string of Emoji (also better than the current
string of upper case characters).

-Tony
\
 
 \ /
  Last update: 2022-05-25 17:42    [W:0.216 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site