16384 (L): A soft lockup has previously occurred on the system.
  32768 (K): The kernel has been live patched.
  65536 (X): Auxiliary taint, defined and used by for distros.
+131072 (T): The kernel was built with the struct randomization plugin.
 
 ==============================================================
 
 
 #define TAINT_SOFTLOCKUP               14
 #define TAINT_LIVEPATCH                        15
 #define TAINT_AUX                      16
-#define TAINT_FLAGS_COUNT              17
+#define TAINT_RANDSTRUCT               17
+#define TAINT_FLAGS_COUNT              18
 
 struct taint_flag {
        char c_true;    /* character printed when tainted */
 
 #define PANIC_BLINK_SPD 18
 
 int panic_on_oops = CONFIG_PANIC_ON_OOPS_VALUE;
-static unsigned long tainted_mask;
+static unsigned long tainted_mask =
+       IS_ENABLED(CONFIG_GCC_PLUGIN_RANDSTRUCT) ? (1 << TAINT_RANDSTRUCT) : 0;
 static int pause_on_oops;
 static int pause_on_oops_flag;
 static DEFINE_SPINLOCK(pause_on_oops_lock);
        [ TAINT_SOFTLOCKUP ]            = { 'L', ' ', false },
        [ TAINT_LIVEPATCH ]             = { 'K', ' ', true },
        [ TAINT_AUX ]                   = { 'X', ' ', true },
+       [ TAINT_RANDSTRUCT ]            = { 'T', ' ', true },
 };
 
 /**