diff options
| author | Mathieu Desnoyers <[email protected]> | 2019-04-29 15:27:55 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2019-05-07 21:31:46 +0000 |
| commit | 5b0c308a0565a94d2e1070cbf287197b676faaaf (patch) | |
| tree | ea40e240db1dd0b3f0d3761ceffbe9a47dd76769 /lib/string_helpers.c | |
| parent | rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cs (diff) | |
| download | kernel-5b0c308a0565a94d2e1070cbf287197b676faaaf.tar.gz kernel-5b0c308a0565a94d2e1070cbf287197b676faaaf.zip | |
rseq/selftests: Use __rseq_handled symbol to coexist with glibc
In order to integrate rseq into user-space applications, expose a
__rseq_handled symbol so many rseq users can be linked into the same
application (e.g. librseq and glibc).
The __rseq_refcount TLS variable is static to the librseq library. It
ensures that rseq syscall registration/unregistration happens only for
the most early/late caller to rseq_{,un}register_current_thread for each
thread, thus ensuring that rseq is registered across the lifetime of all
rseq users for a given thread.
Signed-off-by: Mathieu Desnoyers <[email protected]>
CC: Shuah Khan <[email protected]>
CC: Carlos O'Donell <[email protected]>
CC: Florian Weimer <[email protected]>
CC: Joseph Myers <[email protected]>
CC: Szabolcs Nagy <[email protected]>
CC: Thomas Gleixner <[email protected]>
CC: Ben Maurer <[email protected]>
CC: Peter Zijlstra <[email protected]>
CC: "Paul E. McKenney" <[email protected]>
CC: Boqun Feng <[email protected]>
CC: Will Deacon <[email protected]>
CC: Dave Watson <[email protected]>
CC: Paul Turner <[email protected]>
CC: [email protected]
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
