]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86/cet: Don't disable CET if not single threaded
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Jul 2023 21:06:01 +0000 (14:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Aug 2025 22:39:23 +0000 (15:39 -0700)
commit9397174e482f9266bc77dd057789f46ea0dd5eac
tree8f7a81c87f4d88fb0e6189fca29480119962d30a
parentcc47b519301bfd85ec3e50bbb61ab6fea855b82c
x86/cet: Don't disable CET if not single threaded

In permissive mode, don't disable IBT nor SHSTK when dlopening a legacy
shared library if not single threaded since IBT and SHSTK may be still
enabled in other threads.  Other threads with IBT or SHSTK enabled will
crash when calling functions in the legacy shared library.  Instead, an
error will be issued.

(cherry picked from commit 41560a9312ce0ec7203480eef8f865076bff9edb)
sysdeps/x86/dl-cet.c