Skip to contentSkip to conversation

lib-dump_stack-report-process-uid-in-dump_stack_print_info.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jun 25, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib/dump_stack: report process UID in dump_stack_print_info()
has been removed from the -mm tree. Its filename was
lib-dump_stack-report-process-uid-in-dump_stack_print_info.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: lib/dump_stack: report process UID in dump_stack_print_info()
Date: Fri, 14 Jun 2024 21:13:58 -0700

To make it easier to identify the crashing process, report effective UID when dumping the stack.

---

 lib/dump_stack.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
lib/dump_stack.c renamed from lib/dump_stack.c~lib-dump_stack-report-process-uid-in-dump_stack_print_info +4 -2
@@ -54,8 +54,10 @@ void __init dump_stack_set_arch_desc(con
  */
 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,

_

Patches currently in -mm which might be from [email protected] are