The patch titled Subject: panic: add TAINT_SOFTLOCKUP has been added to the -mm tree. Its filename is panic-add-taint_softlockup.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/panic-add-taint_softlockup.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/panic-add-taint_softlockup.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Josh Hunt <johunt@xxxxxxxxxx> Subject: panic: add TAINT_SOFTLOCKUP This taint flag will be set if the system has ever entered a softlockup state. Similar to TAINT_WARN it is useful to know whether or not the system has been in a softlockup state when debugging. Signed-off-by: Josh Hunt <johunt@xxxxxxxxxx> Cc: Jason Baron <jbaron@xxxxxxxxxx> Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/oops-tracing.txt | 2 ++ Documentation/sysctl/kernel.txt | 1 + include/linux/kernel.h | 1 + kernel/panic.c | 1 + kernel/watchdog.c | 1 + 5 files changed, 6 insertions(+) diff -puN Documentation/oops-tracing.txt~panic-add-taint_softlockup Documentation/oops-tracing.txt --- a/Documentation/oops-tracing.txt~panic-add-taint_softlockup +++ a/Documentation/oops-tracing.txt @@ -268,6 +268,8 @@ characters, each representing a particul 14: 'E' if an unsigned module has been loaded in a kernel supporting module signature. + 15: 'L' if a soft lockup has previously occurred on the system. + The primary reason for the 'Tainted: ' string is to tell kernel debuggers if this is a clean kernel or if anything unusual has occurred. Tainting is permanent: even if an offending module is diff -puN Documentation/sysctl/kernel.txt~panic-add-taint_softlockup Documentation/sysctl/kernel.txt --- a/Documentation/sysctl/kernel.txt~panic-add-taint_softlockup +++ a/Documentation/sysctl/kernel.txt @@ -826,6 +826,7 @@ can be ORed together: 4096 - An out-of-tree module has been loaded. 8192 - An unsigned module has been loaded in a kernel supporting module signature. +16384 - A soft lockup has previously occurred on the system. ============================================================== diff -puN include/linux/kernel.h~panic-add-taint_softlockup include/linux/kernel.h --- a/include/linux/kernel.h~panic-add-taint_softlockup +++ a/include/linux/kernel.h @@ -470,6 +470,7 @@ extern enum system_states { #define TAINT_FIRMWARE_WORKAROUND 11 #define TAINT_OOT_MODULE 12 #define TAINT_UNSIGNED_MODULE 13 +#define TAINT_SOFTLOCKUP 14 extern const char hex_asc[]; #define hex_asc_lo(x) hex_asc[((x) & 0x0f)] diff -puN kernel/panic.c~panic-add-taint_softlockup kernel/panic.c --- a/kernel/panic.c~panic-add-taint_softlockup +++ a/kernel/panic.c @@ -224,6 +224,7 @@ static const struct tnt tnts[] = { { TAINT_FIRMWARE_WORKAROUND, 'I', ' ' }, { TAINT_OOT_MODULE, 'O', ' ' }, { TAINT_UNSIGNED_MODULE, 'E', ' ' }, + { TAINT_SOFTLOCKUP, 'L', ' ' }, }; /** diff -puN kernel/watchdog.c~panic-add-taint_softlockup kernel/watchdog.c --- a/kernel/watchdog.c~panic-add-taint_softlockup +++ a/kernel/watchdog.c @@ -370,6 +370,7 @@ static enum hrtimer_restart watchdog_tim if (softlockup_panic) panic("softlockup: hung tasks"); + add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK); __this_cpu_write(soft_watchdog_warn, true); } else __this_cpu_write(soft_watchdog_warn, false); _ Patches currently in -mm which might be from johunt@xxxxxxxxxx are block-restore-proc-partitions-to-not-display-non-partitionable-removable-devices.patch panic-add-taint_softlockup.patch panic-add-taint_softlockup-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html