aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-11-15 17:22:44 -0800
committerEryu Guan <eguan@redhat.com>2017-11-16 12:24:12 +0800
commitdca11687378809f6a84da8f957ed45dd8fed4567 (patch)
tree019102a43901caee6be4bb4a3e220a268514bda1
parentb5b3e2220ace9f91ef8b9fc3b7593b1a3e46117d (diff)
downloadxfstests-dca11687378809f6a84da8f957ed45dd8fed4567.tar.gz
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 <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--common/rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/rc b/common/rc
index 0cda9da71f..4c053a5371 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)"