Skip to content

Commit b0dd73d

Browse files
Aaron Tomlinlian-bo
authored andcommitted
kernel: show that the kernel is tainted at init-time
Explicitly indicate to the user that the Linux kernel is tainted at init-time or when the 'sys' command is used. Signed-off-by: Aaron Tomlin <[email protected]>
1 parent 64f48ee commit b0dd73d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

kernel.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5564,16 +5564,18 @@ display_sys_stats(void)
55645564
}
55655565
} else {
55665566
if (pc->system_map) {
5567-
fprintf(fp, " SYSTEM MAP: %s%s\n", pc->system_map,
5568-
is_livepatch() ? " [LIVEPATCH]" : "");
5567+
fprintf(fp, " SYSTEM MAP: %s%s%s\n", pc->system_map,
5568+
is_livepatch() ? " [LIVEPATCH]" : "",
5569+
is_kernel_tainted() ? " [TAINTED]" : "");
55695570
fprintf(fp, "DEBUG KERNEL: %s %s\n",
55705571
pc->namelist_orig ?
55715572
pc->namelist_orig : pc->namelist,
55725573
debug_kernel_version(pc->namelist));
55735574
} else
5574-
fprintf(fp, " KERNEL: %s%s\n", pc->namelist_orig ?
5575+
fprintf(fp, " KERNEL: %s%s%s\n", pc->namelist_orig ?
55755576
pc->namelist_orig : pc->namelist,
5576-
is_livepatch() ? " [LIVEPATCH]" : "");
5577+
is_livepatch() ? " [LIVEPATCH]" : "",
5578+
is_kernel_tainted() ? " [TAINTED]" : "");
55775579
}
55785580

55795581
if (pc->debuginfo_file) {

0 commit comments

Comments
 (0)