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: <d4cf37a60703202349o7ef0273erefa598efad4bb09e@mail.gmail.com>
Date:	Tue, 20 Mar 2007 23:49:56 -0700
From:	"Wink Saville" <wink@...ille.com>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH 5/7] Add trec_snapshot and trec_print_snapshot to die()

Signed-off-by: Wink Saville <wink@...ille.com>
---
 arch/x86_64/kernel/traps.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 09d2e8a..c730176 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -33,6 +33,10 @@
 #include <linux/uaccess.h>
 #include <linux/bug.h>

+#ifdef CONFIG_TREC
+#include <linux/trec.h>
+#endif
+
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/atomic.h>
@@ -547,9 +551,17 @@ void die(const char * str, struct pt_regs * regs, long err)
 {
 	unsigned long flags = oops_begin();

+#ifdef CONFIG_TREC
+	trec_snapshot();
+#endif
+
 	if (!user_mode(regs))
 		report_bug(regs->rip);

+#ifdef CONFIG_TREC
+	trec_print_snapshot();
+#endif
+
 	__die(str, regs, err);
 	oops_end(flags);
 	do_exit(SIGSEGV);
-- 
1.5.0.rc2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ