diff options
Diffstat (limited to 'lib/dump_stack.c')
| -rw-r--r-- | lib/dump_stack.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/lib/dump_stack.c b/lib/dump_stack.c index 222c6d6c8281..1a996fbbf50a 100644 --- a/lib/dump_stack.c +++ b/lib/dump_stack.c @@ -54,14 +54,19 @@ void __init dump_stack_set_arch_desc(const char *fmt, ...)   */  void dump_stack_print_info(const char *log_lvl)  { -	printk("%sCPU: %d PID: %d Comm: %.20s %s%s %s %.*s" BUILD_ID_FMT "\n", -	       log_lvl, raw_smp_processor_id(), current->pid, current->comm, +	printk("%sCPU: %d UID: %u PID: %d Comm: %.20s %s%s %s %.*s" BUILD_ID_FMT "\n", +	       log_lvl, raw_smp_processor_id(), +	       __kuid_val(current_real_cred()->euid), +	       current->pid, current->comm,  	       kexec_crash_loaded() ? "Kdump: loaded " : "",  	       print_tainted(),  	       init_utsname()->release,  	       (int)strcspn(init_utsname()->version, " "),  	       init_utsname()->version, BUILD_ID_VAL); +	if (get_taint()) +		printk("%s%s\n", log_lvl, print_tainted_verbose()); +  	if (dump_stack_arch_desc_str[0] != '\0')  		printk("%sHardware name: %s\n",  		       log_lvl, dump_stack_arch_desc_str); |