[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-2dfed4565afe263751d2451ad22336ad806c25a6@git.kernel.org>
Date: Sun, 14 Apr 2019 13:40:13 -0700
From: tip-bot for Thomas Gleixner <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: peterz@...radead.org, luto@...nel.org, rostedt@...dmis.org,
linux-kernel@...r.kernel.org, will.deacon@....com, hpa@...or.com,
glider@...gle.com, mingo@...nel.org, tglx@...utronix.de,
jpoimboe@...hat.com
Subject: [tip:core/stacktrace] lockdep: Remove the ULONG_MAX stack trace
hackery
Commit-ID: 2dfed4565afe263751d2451ad22336ad806c25a6
Gitweb: https://git.kernel.org/tip/2dfed4565afe263751d2451ad22336ad806c25a6
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Wed, 10 Apr 2019 12:28:04 +0200
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Sun, 14 Apr 2019 19:58:30 +0200
lockdep: Remove the ULONG_MAX stack trace hackery
No architecture terminates the stack trace with ULONG_MAX anymore. Remove
the cruft.
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Alexander Potapenko <glider@...gle.com>
Cc: Will Deacon <will.deacon@....com>
Link: https://lkml.kernel.org/r/20190410103644.485737321@linutronix.de
---
kernel/locking/lockdep.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index e16766ff184b..2edf9501d906 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -444,17 +444,6 @@ static int save_trace(struct stack_trace *trace)
save_stack_trace(trace);
- /*
- * Some daft arches put -1 at the end to indicate its a full trace.
- *
- * <rant> this is buggy anyway, since it takes a whole extra entry so a
- * complete trace that maxes out the entries provided will be reported
- * as incomplete, friggin useless </rant>
- */
- if (trace->nr_entries != 0 &&
- trace->entries[trace->nr_entries-1] == ULONG_MAX)
- trace->nr_entries--;
-
trace->max_entries = trace->nr_entries;
nr_stack_trace_entries += trace->nr_entries;
Powered by blists - more mailing lists