!389 glibc: disable rseq feature by default with tunable

From: @chinyu0704 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2022-03-04 07:17:55 +00:00 committed by Gitee
commit a2a495635a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 17 additions and 2 deletions

View File

@ -66,7 +66,7 @@
##############################################################################
Name: glibc
Version: 2.34
Release: 66
Release: 67
Summary: The GNU libc libraries
License: %{all_license}
URL: http://www.gnu.org/software/glibc/
@ -1289,6 +1289,9 @@ fi
%endif
%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
- add PTRACE_GET_RSEQ_CONFIGURATION

View File

@ -9,6 +9,14 @@ of glibc.
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
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 +++
nptl/pthread_create.c | 10 ++-
@ -111,7 +119,7 @@ index ac5d0532..d24f4be0 100644
+ type: INT_32
+ minval: 0
+ 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.
# No better solution is available. This test case is shielded.
rt/tst-cpuclock2
# These testcase fails because rseq is disabled by default
misc/tst-rseq-nptl
misc/tst-rseq