[Lldb-commits] [PATCH] D93495: CrashReason: Add MTE tag check faults to the list of crash reasons.
Peter Collingbourne via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 29 14:37:44 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e5a187de313: CrashReason: Add MTE tag check faults to the list of crash reasons. (authored by pcc).
Herald added a subscriber: krytarowski.
Changed prior to commit:
https://reviews.llvm.org/D93495?vs=313190&id=314027#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93495/new/
https://reviews.llvm.org/D93495
Files:
lldb/source/Plugins/Process/POSIX/CrashReason.cpp
lldb/source/Plugins/Process/POSIX/CrashReason.h
Index: lldb/source/Plugins/Process/POSIX/CrashReason.h
===================================================================
--- lldb/source/Plugins/Process/POSIX/CrashReason.h
+++ lldb/source/Plugins/Process/POSIX/CrashReason.h
@@ -22,6 +22,8 @@
eInvalidAddress,
ePrivilegedAddress,
eBoundViolation,
+ eAsyncTagCheckFault,
+ eSyncTagCheckFault,
// SIGILL crash reasons.
eIllegalOpcode,
Index: lldb/source/Plugins/Process/POSIX/CrashReason.cpp
===================================================================
--- lldb/source/Plugins/Process/POSIX/CrashReason.cpp
+++ lldb/source/Plugins/Process/POSIX/CrashReason.cpp
@@ -58,6 +58,18 @@
#endif
case SEGV_BNDERR:
return CrashReason::eBoundViolation;
+#ifdef __linux__
+#ifndef SEGV_MTEAERR
+#define SEGV_MTEAERR 8
+#endif
+ case SEGV_MTEAERR:
+ return CrashReason::eAsyncTagCheckFault;
+#ifndef SEGV_MTESERR
+#define SEGV_MTESERR 9
+#endif
+ case SEGV_MTESERR:
+ return CrashReason::eSyncTagCheckFault;
+#endif // __linux__
}
return CrashReason::eInvalidCrashReason;
@@ -166,6 +178,13 @@
case CrashReason::eBoundViolation:
str = "signal SIGSEGV: bound violation";
break;
+ case CrashReason::eAsyncTagCheckFault:
+ str = "signal SIGSEGV: async tag check fault";
+ break;
+ case CrashReason::eSyncTagCheckFault:
+ str = "signal SIGSEGV: sync tag check fault";
+ AppendFaultAddr(str, fault_addr);
+ break;
case CrashReason::eIllegalOpcode:
str = "signal SIGILL: illegal instruction";
break;
@@ -246,6 +265,12 @@
case CrashReason::eBoundViolation:
str = "eBoundViolation";
break;
+ case CrashReason::eAsyncTagCheckFault:
+ str = "eAsyncTagCheckFault";
+ break;
+ case CrashReason::eSyncTagCheckFault:
+ str = "eSyncTagCheckFault";
+ break;
// SIGILL crash reasons.
case CrashReason::eIllegalOpcode:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93495.314027.patch
Type: text/x-patch
Size: 1866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201229/7bd41968/attachment.bin>
More information about the lldb-commits
mailing list