Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ead97a49 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

mm/kasan: Remove the ULONG_MAX stack trace hackery



No architecture terminates the stack trace with ULONG_MAX anymore. Remove
the cruft.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarDmitry Vyukov <dvyukov@google.com>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: kasan-dev@googlegroups.com
Cc: linux-mm@kvack.org
Link: https://lkml.kernel.org/r/20190410103644.750219625@linutronix.de
parent 4621c985
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -74,9 +74,6 @@ static inline depot_stack_handle_t save_stack(gfp_t flags)

	save_stack_trace(&trace);
	filter_irq_stacks(&trace);
	if (trace.nr_entries != 0 &&
	    trace.entries[trace.nr_entries-1] == ULONG_MAX)
		trace.nr_entries--;

	return depot_save_stack(&trace, flags);
}