NEWS: Add entry for CVE-2021-27645
[glibc.git] / elf / dl-tunables.list
blob8ddd4a23142a941b95900a31b0610e4723c94d02
1 # Copyright (C) 2016-2021 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
18 # Allowed attributes for tunables:
20 # type: Defaults to STRING
21 # minval: Optional minimum acceptable value
22 # maxval: Optional maximum acceptable value
23 # env_alias: An alias environment variable
24 # security_level: Specify security level of the tunable for AT_SECURE binaries.
25 #                 Valid values are:
27 #            SXID_ERASE: (default) Do not read and do not pass on to
28 #            child processes.
29 #            SXID_IGNORE: Do not read, but retain for non-AT_SECURE
30 #            subprocesses.
31 #            NONE: Read all the time.
33 glibc {
34   malloc {
35     check {
36       type: INT_32
37       minval: 0
38       maxval: 3
39       env_alias: MALLOC_CHECK_
40     }
41     top_pad {
42       type: SIZE_T
43       env_alias: MALLOC_TOP_PAD_
44       security_level: SXID_IGNORE
45     }
46     perturb {
47       type: INT_32
48       minval: 0
49       maxval: 0xff
50       env_alias: MALLOC_PERTURB_
51       security_level: SXID_IGNORE
52     }
53     mmap_threshold {
54       type: SIZE_T
55       env_alias: MALLOC_MMAP_THRESHOLD_
56       security_level: SXID_IGNORE
57     }
58     trim_threshold {
59       type: SIZE_T
60       env_alias: MALLOC_TRIM_THRESHOLD_
61       security_level: SXID_IGNORE
62     }
63     mmap_max {
64       type: INT_32
65       env_alias: MALLOC_MMAP_MAX_
66       security_level: SXID_IGNORE
67       minval: 0
68     }
69     arena_max {
70       type: SIZE_T
71       env_alias: MALLOC_ARENA_MAX
72       minval: 1
73       security_level: SXID_IGNORE
74     }
75     arena_test {
76       type: SIZE_T
77       env_alias: MALLOC_ARENA_TEST
78       minval: 1
79       security_level: SXID_IGNORE
80     }
81     tcache_max {
82       type: SIZE_T
83     }
84     tcache_count {
85       type: SIZE_T
86     }
87     tcache_unsorted_limit {
88       type: SIZE_T
89     }
90     mxfast {
91       type: SIZE_T
92       minval: 0
93       security_level: SXID_IGNORE
94     }
95   }
96   cpu {
97     hwcap_mask {
98       type: UINT_64
99       env_alias: LD_HWCAP_MASK
100       default: HWCAP_IMPORTANT
101     }
102   }
104   elision {
105     enable {
106       type: INT_32
107       minval: 0
108       maxval: 1
109     }
110     skip_lock_busy {
111       type: INT_32
112       default: 3
113       minval: 0
114     }
115     skip_lock_internal_abort {
116       type: INT_32
117       default: 3
118       minval: 0
119     }
120     skip_lock_after_retries {
121       type: INT_32
122       default: 3
123       minval: 0
124     }
125     tries {
126       type: INT_32
127       default: 3
128       minval: 0
129     }
130     skip_trylock_internal_abort {
131       type: INT_32
132       default: 3
133       minval: 0
134     }
135   }
137   rtld {
138     nns {
139       type: SIZE_T
140       minval: 1
141       maxval: 16
142       default: 4
143     }
144     optional_static_tls {
145       type: SIZE_T
146       minval: 0
147       default: 512
148     }
149   }
151   mem {
152     tagging {
153       type: INT_32
154       minval: 0
155       maxval: 255
156       security_level: SXID_IGNORE
157     }
158   }