diff options
-rw-r--r-- | drivers/acpi/osl.c | 7 | ||||
-rw-r--r-- | include/linux/kernel.h | 1 | ||||
-rw-r--r-- | kernel/panic.c | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 131936e7ff17..bbd8360bfb23 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -392,6 +392,13 @@ acpi_os_table_override(struct acpi_table_header * existing_table, | |||
392 | *new_table = initrd_table; | 392 | *new_table = initrd_table; |
393 | } | 393 | } |
394 | #endif | 394 | #endif |
395 | if (*new_table != NULL) { | ||
396 | printk(KERN_WARNING PREFIX "Override [%4.4s-%8.8s], " | ||
397 | "this is unsafe: tainting kernel\n", | ||
398 | existing_table->signature, | ||
399 | existing_table->oem_table_id); | ||
400 | add_taint(TAINT_OVERRIDDEN_ACPI_TABLE); | ||
401 | } | ||
395 | return AE_OK; | 402 | return AE_OK; |
396 | } | 403 | } |
397 | 404 | ||
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 18222f267bc4..9e01f376840a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -243,6 +243,7 @@ extern enum system_states { | |||
243 | #define TAINT_BAD_PAGE (1<<5) | 243 | #define TAINT_BAD_PAGE (1<<5) |
244 | #define TAINT_USER (1<<6) | 244 | #define TAINT_USER (1<<6) |
245 | #define TAINT_DIE (1<<7) | 245 | #define TAINT_DIE (1<<7) |
246 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) | ||
246 | 247 | ||
247 | extern void dump_stack(void) __cold; | 248 | extern void dump_stack(void) __cold; |
248 | 249 | ||
diff --git a/kernel/panic.c b/kernel/panic.c index d9e90cfe3298..24af9f8bac99 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -161,7 +161,7 @@ const char *print_tainted(void) | |||
161 | { | 161 | { |
162 | static char buf[20]; | 162 | static char buf[20]; |
163 | if (tainted) { | 163 | if (tainted) { |
164 | snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c%c%c", | 164 | snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c%c%c%c", |
165 | tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G', | 165 | tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G', |
166 | tainted & TAINT_FORCED_MODULE ? 'F' : ' ', | 166 | tainted & TAINT_FORCED_MODULE ? 'F' : ' ', |
167 | tainted & TAINT_UNSAFE_SMP ? 'S' : ' ', | 167 | tainted & TAINT_UNSAFE_SMP ? 'S' : ' ', |
@@ -169,7 +169,8 @@ const char *print_tainted(void) | |||
169 | tainted & TAINT_MACHINE_CHECK ? 'M' : ' ', | 169 | tainted & TAINT_MACHINE_CHECK ? 'M' : ' ', |
170 | tainted & TAINT_BAD_PAGE ? 'B' : ' ', | 170 | tainted & TAINT_BAD_PAGE ? 'B' : ' ', |
171 | tainted & TAINT_USER ? 'U' : ' ', | 171 | tainted & TAINT_USER ? 'U' : ' ', |
172 | tainted & TAINT_DIE ? 'D' : ' '); | 172 | tainted & TAINT_DIE ? 'D' : ' ', |
173 | tainted & TAINT_OVERRIDDEN_ACPI_TABLE ? 'A' : ' '); | ||
173 | } | 174 | } |
174 | else | 175 | else |
175 | snprintf(buf, sizeof(buf), "Not tainted"); | 176 | snprintf(buf, sizeof(buf), "Not tainted"); |