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>
Wed, 20 Dec 2023 13:03:37 +0000 (05:03 -0800)
commit41560a9312ce0ec7203480eef8f865076bff9edb
treed297e1204a5e6bf106610369441fd276c084d7df
parentc04035809a393c0c6f1cc523df6b316b05fdb50f
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.
sysdeps/x86/dl-cet.c