Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 43d4194

Browse files
committed
reserve signal for re-enabling MTE for a thread
Bug: 309604766 Change-Id: I3c57db8af441f7b166bb7c6bffedf010d5796a0f
1 parent c7b5eef commit 43d4194

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libc/platform/bionic/reserved_signals.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
// 38 (__SIGRTMIN + 6) heapprofd ART managed heap dumps
4545
// 39 (__SIGRTMIN + 7) fdtrack
4646
// 40 (__SIGRTMIN + 8) android_run_on_all_threads (bionic/pthread_internal.cpp)
47+
// 41 (__SIGRTMIN + 9) re-enable MTE on thread
4748

4849
#define BIONIC_SIGNAL_POSIX_TIMERS (__SIGRTMIN + 0)
4950
#define BIONIC_SIGNAL_BACKTRACE (__SIGRTMIN + 1)
@@ -52,8 +53,9 @@
5253
#define BIONIC_SIGNAL_ART_PROFILER (__SIGRTMIN + 6)
5354
#define BIONIC_SIGNAL_FDTRACK (__SIGRTMIN + 7)
5455
#define BIONIC_SIGNAL_RUN_ON_ALL_THREADS (__SIGRTMIN + 8)
56+
#define BIONIC_ENABLE_MTE (__SIGRTMIN + 9)
5557

56-
#define __SIGRT_RESERVED 9
58+
#define __SIGRT_RESERVED 10
5759
static inline __always_inline sigset64_t filter_reserved_signals(sigset64_t sigset, int how) {
5860
int (*block)(sigset64_t*, int);
5961
int (*unblock)(sigset64_t*, int);
@@ -83,5 +85,6 @@ static inline __always_inline sigset64_t filter_reserved_signals(sigset64_t sigs
8385
unblock(&sigset, __SIGRTMIN + 6);
8486
unblock(&sigset, __SIGRTMIN + 7);
8587
unblock(&sigset, __SIGRTMIN + 8);
88+
unblock(&sigset, __SIGRTMIN + 9);
8689
return sigset;
8790
}

0 commit comments

Comments
 (0)