Skip to content

Commit

Permalink
mm/kasan: Remove the ULONG_MAX stack trace hackery
Browse files Browse the repository at this point in the history
No architecture terminates the stack trace with ULONG_MAX anymore. Remove
the cruft.

Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Dmitry Vyukov <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
KAGA-KOKO committed Apr 14, 2019
1 parent 4621c98 commit ead97a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mm/kasan/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ead97a4

Please sign in to comment.