glibc: disable rseq feature by default with tunable

disable rseq feature by default with tunable

Signed-off-by: qinyu <qinyu16@huawei.com>
This commit is contained in:
qinyu 2022-03-03 20:24:30 +08:00
parent 088dac14ff
commit 2c4eaeba9b
3 changed files with 17 additions and 2 deletions

View File

@ -66,7 +66,7 @@
############################################################################## ##############################################################################
Name: glibc Name: glibc
Version: 2.34 Version: 2.34
Release: 66 Release: 67
Summary: The GNU libc libraries Summary: The GNU libc libraries
License: %{all_license} License: %{all_license}
URL: http://www.gnu.org/software/glibc/ URL: http://www.gnu.org/software/glibc/
@ -1289,6 +1289,9 @@ fi
%endif %endif
%changelog %changelog
* Thu Mar 3 2022 qinyu <qinyu16@huawei.com> - 2.34-67
- disable rseq by default with tunable
* Thu Mar 3 2022 Yunfeng Ye <yeyunfeng@huawei.com> - 2.34-66 * Thu Mar 3 2022 Yunfeng Ye <yeyunfeng@huawei.com> - 2.34-66
- add PTRACE_GET_RSEQ_CONFIGURATION - add PTRACE_GET_RSEQ_CONFIGURATION

View File

@ -9,6 +9,14 @@ of glibc.
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com> Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-----
change:
Since rseq is a big feature and have changed code behavior quite a lot,
disable rseq by default to reduce potential conflicts.
sysdeps/nptl/dl-tunables.list:
default: 1 -> default: 0
--- ---
manual/tunables.texi | 10 +++ manual/tunables.texi | 10 +++
nptl/pthread_create.c | 10 ++- nptl/pthread_create.c | 10 ++-
@ -111,7 +119,7 @@ index ac5d0532..d24f4be0 100644
+ type: INT_32 + type: INT_32
+ minval: 0 + minval: 0
+ maxval: 1 + maxval: 1
+ default: 1 + default: 0
+ } + }
} }
} }

View File

@ -123,3 +123,7 @@ elf/tst-debug1:aarch64
# This test case often fails in CI which is the high-pressure environment. # This test case often fails in CI which is the high-pressure environment.
# No better solution is available. This test case is shielded. # No better solution is available. This test case is shielded.
rt/tst-cpuclock2 rt/tst-cpuclock2
# These testcase fails because rseq is disabled by default
misc/tst-rseq-nptl
misc/tst-rseq