| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2025-11-01 06:54+0100\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: debian-trixie |
| 21 |
#, no-wrap |
| 22 |
msgid "PR_MPX_ENABLE_MANAGEMENT" |
| 23 |
msgstr "" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: debian-trixie |
| 27 |
#, no-wrap |
| 28 |
msgid "2024-06-01" |
| 29 |
msgstr "" |
| 30 |
|
| 31 |
#. type: TH |
| 32 |
#: debian-trixie |
| 33 |
#, no-wrap |
| 34 |
msgid "Linux man-pages 6.9.1" |
| 35 |
msgstr "" |
| 36 |
|
| 37 |
#. type: SH |
| 38 |
#: debian-trixie |
| 39 |
#, no-wrap |
| 40 |
msgid "NAME" |
| 41 |
msgstr "" |
| 42 |
|
| 43 |
#. type: Plain text |
| 44 |
#: debian-trixie |
| 45 |
msgid "" |
| 46 |
"PR_MPX_ENABLE_MANAGEMENT, PR_MPX_DISABLE_MANAGEMENT - enable or disable " |
| 47 |
"kernel management of Memory Protection eXtensions (MPX)" |
| 48 |
msgstr "" |
| 49 |
|
| 50 |
#. type: SH |
| 51 |
#: debian-trixie |
| 52 |
#, no-wrap |
| 53 |
msgid "LIBRARY" |
| 54 |
msgstr "" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: debian-trixie |
| 58 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 59 |
msgstr "" |
| 60 |
|
| 61 |
#. type: SH |
| 62 |
#: debian-trixie |
| 63 |
#, no-wrap |
| 64 |
msgid "SYNOPSIS" |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#. type: Plain text |
| 68 |
#: debian-trixie |
| 69 |
#, no-wrap |
| 70 |
msgid "" |
| 71 |
"B<#include E<lt>linux/prctl.hE<gt>> /* Definition of B<PR_*> constants */\n" |
| 72 |
"B<#include E<lt>sys/prctl.hE<gt>>\n" |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: debian-trixie |
| 77 |
#, no-wrap |
| 78 |
msgid "" |
| 79 |
"B<[[deprecated]] int prctl(PR_MPX_ENABLE_MANAGEMENT, 0L, 0L, 0L, 0L);>\n" |
| 80 |
"B<[[deprecated]] int prctl(PR_MPX_DISABLE_MANAGEMENT, 0L, 0L, 0L, 0L);>\n" |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: SH |
| 84 |
#: debian-trixie |
| 85 |
#, no-wrap |
| 86 |
msgid "DESCRIPTION" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: debian-trixie |
| 91 |
msgid "" |
| 92 |
"Enable or disable kernel management of Memory Protection eXtensions (MPX) " |
| 93 |
"bounds tables." |
| 94 |
msgstr "" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: debian-trixie |
| 98 |
msgid "" |
| 99 |
"MPX is a hardware-assisted mechanism for performing bounds checking on " |
| 100 |
"pointers. It consists of a set of registers storing bounds information and " |
| 101 |
"a set of special instruction prefixes that tell the CPU on which " |
| 102 |
"instructions it should do bounds enforcement. There is a limited number of " |
| 103 |
"these registers and when there are more pointers than registers, their " |
| 104 |
"contents must be \"spilled\" into a set of tables. These tables are called " |
| 105 |
"\"bounds tables\" and the MPX B<prctl>() operations control whether the " |
| 106 |
"kernel manages their allocation and freeing." |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: debian-trixie |
| 111 |
msgid "" |
| 112 |
"When management is enabled, the kernel will take over allocation and freeing " |
| 113 |
"of the bounds tables. It does this by trapping the #BR exceptions that " |
| 114 |
"result at first use of missing bounds tables and instead of delivering the " |
| 115 |
"exception to user space, it allocates the table and populates the bounds " |
| 116 |
"directory with the location of the new table. For freeing, the kernel " |
| 117 |
"checks to see if bounds tables are present for memory which is not " |
| 118 |
"allocated, and frees them if so." |
| 119 |
msgstr "" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: debian-trixie |
| 123 |
msgid "" |
| 124 |
"Before enabling MPX management using B<PR_MPX_ENABLE_MANAGEMENT>, the " |
| 125 |
"application must first have allocated a user-space buffer for the bounds " |
| 126 |
"directory and placed the location of that directory in the I<bndcfgu> " |
| 127 |
"register." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: debian-trixie |
| 132 |
msgid "" |
| 133 |
"These calls fail if the CPU or kernel does not support MPX. Kernel support " |
| 134 |
"for MPX is enabled via the B<CONFIG_X86_INTEL_MPX> configuration option. " |
| 135 |
"You can check whether the CPU supports MPX by looking for the I<mpx> CPUID " |
| 136 |
"bit, like with the following command:" |
| 137 |
msgstr "" |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: debian-trixie |
| 141 |
#, no-wrap |
| 142 |
msgid "cat /proc/cpuinfo | grep \\[aq] mpx \\[aq]\n" |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: debian-trixie |
| 147 |
msgid "" |
| 148 |
"A thread may not switch in or out of long (64-bit) mode while MPX is enabled." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: debian-trixie |
| 153 |
msgid "All threads in a process are affected by these calls." |
| 154 |
msgstr "" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: debian-trixie |
| 158 |
msgid "" |
| 159 |
"The child of a B<fork>(2) inherits the state of MPX management. During " |
| 160 |
"B<execve>(2), MPX management is reset to a state as if " |
| 161 |
"B<PR_MPX_DISABLE_MANAGEMENT> had been called." |
| 162 |
msgstr "" |
| 163 |
|
| 164 |
#. type: SH |
| 165 |
#: debian-trixie |
| 166 |
#, no-wrap |
| 167 |
msgid "RETURN VALUE" |
| 168 |
msgstr "" |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: debian-trixie |
| 172 |
msgid "" |
| 173 |
"On success, 0 is returned. On error, -1 is returned, and I<errno> is set to " |
| 174 |
"indicate the error." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: SH |
| 178 |
#: debian-trixie |
| 179 |
#, no-wrap |
| 180 |
msgid "ERRORS" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: TP |
| 184 |
#: debian-trixie |
| 185 |
#, no-wrap |
| 186 |
msgid "B<ENXIO>" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: debian-trixie |
| 191 |
msgid "" |
| 192 |
"The kernel or the CPU does not support MPX management. Check that the " |
| 193 |
"kernel and processor have MPX support." |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: SH |
| 197 |
#: debian-trixie |
| 198 |
#, no-wrap |
| 199 |
msgid "STANDARDS" |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: debian-trixie |
| 204 |
msgid "None." |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: SH |
| 208 |
#: debian-trixie |
| 209 |
#, no-wrap |
| 210 |
msgid "HISTORY" |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. commit fe3d197f84319d3bce379a9c0dc17b1f48ad358c |
| 214 |
#. See also http://lwn.net/Articles/582712/ |
| 215 |
#. See also https://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler |
| 216 |
#. type: Plain text |
| 217 |
#: debian-trixie |
| 218 |
msgid "Linux 3.19. Removed in Linux 5.4. Only on x86." |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#. commit f240652b6032b48ad7fa35c5e701cc4c8d697c0b |
| 222 |
#. See also https://lkml.kernel.org/r/[email protected] |
| 223 |
#. type: Plain text |
| 224 |
#: debian-trixie |
| 225 |
msgid "" |
| 226 |
"Due to a lack of toolchain support, B<PR_MPX_ENABLE_MANAGEMENT> and " |
| 227 |
"B<PR_MPX_DISABLE_MANAGEMENT> are not supported in Linux 5.4 and later." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: SH |
| 231 |
#: debian-trixie |
| 232 |
#, no-wrap |
| 233 |
msgid "SEE ALSO" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: debian-trixie |
| 238 |
msgid "B<prctl>(2)" |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: debian-trixie |
| 243 |
msgid "" |
| 244 |
"For further information on Intel MPX, see the kernel source file " |
| 245 |
"I<Documentation/\\:x86/\\:intel_mpx.txt>." |
| 246 |
msgstr "" |