From 86711a03f2e533a7e6e164010c8a013f4b913d93 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 28 Dec 2023 12:30:57 +0000 Subject: [PATCH] NVIDIA: SAUCE: lib: Avoid call dump trace on UBSAN error BugLink: https://bugs.launchpad.net/bugs/2080908 Avoid call stack dump when UBSAN occurs. The prints of message are sufficient to get information. This will help on whitelisting the warning as known issue. hettp://nvbugs/4434688 Signed-off-by: Laxman Dewangan Acked-by: Noah Wager Acked-by: Jacob Martin Signed-off-by: Noah Wager --- lib/ubsan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ubsan.c b/lib/ubsan.c index df4f8d1354bb..ac3df6e99bf9 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -214,7 +214,8 @@ static void ubsan_prologue(struct source_location *loc, const char *reason) static void ubsan_epilogue(void) { - dump_stack(); + /* Avoid dump stack */ + /* dump_stack(); */ pr_warn("---[ end trace ]---\n"); current->in_ubsan--;