From dca11687378809f6a84da8f957ed45dd8fed4567 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 15 Nov 2017 17:22:44 -0800 Subject: [PATCH] common/rc: check dmesg for UBSAN errors If the UBSAN complains about bad behavior, we should capture the dmesg so that developers can inspect it. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/rc | 1 + 1 file changed, 1 insertion(+) diff --git a/common/rc b/common/rc index 0cda9da7..4c053a53 100644 --- a/common/rc +++ b/common/rc @@ -3314,6 +3314,7 @@ _check_dmesg() -e "INFO: possible circular locking dependency detected" \ -e "general protection fault:" \ -e "BUG .* remaining" \ + -e "UBSAN:" \ $seqres.dmesg if [ $? -eq 0 ]; then _dump_err "_check_dmesg: something found in dmesg (see $seqres.dmesg)" -- 2.47.3