lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231221133917.955-1-ruipengqi7@gmail.com>
Date: Thu, 21 Dec 2023 21:39:17 +0800
From: Ruipeng Qi <ruipengqi7@...il.com>
To: akpm@...ux-foundation.org,
	peterz@...radead.org,
	jpoimboe@...nel.org,
	mingo@...nel.org
Cc: qiruipeng@...iang.com,
	arnd@...db.de,
	gpiccoli@...lia.com,
	ubizjak@...il.com,
	linux-kernel@...r.kernel.org
Subject: [RFC PATCH 7/7] panic: invoke osdump when panic

From: qiruipeng <qiruipeng@...iang.com>

Invoke osdump upon a panic to generate a minidump, which can be analyzed
later with the crash utility.

Signed-off-by: qiruipeng <qiruipeng@...iang.com>
---
 kernel/panic.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/kernel/panic.c b/kernel/panic.c
index 2807639aab51..b83e5caf8003 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -37,6 +37,9 @@
 #include <linux/context_tracking.h>
 #include <trace/events/error_report.h>
 #include <asm/sections.h>
+#ifdef CONFIG_OS_MINIDUMP
+#include <linux/osdump.h>
+#endif
 
 #define PANIC_TIMER_STEP 100
 #define PANIC_BLINK_SPD 18
@@ -326,6 +329,10 @@ void panic(const char *fmt, ...)
 	} else if (old_cpu != this_cpu)
 		panic_smp_self_stop();
 
+#ifdef CONFIG_OS_MINIDUMP
+	osdump();
+#endif
+
 	console_verbose();
 	bust_spinlocks(1);
 	va_start(args, fmt);
-- 
2.17.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ