Skip to content

Commit 997c798

Browse files
skittJonathan Corbet
authored andcommitted
docs: sysctl/kernel: document unaligned controls
This documents ignore-unaligned-usertrap, unaligned-dump-stack, and unaligned-trap, based on arch/arc/kernel/unaligned.c, arch/ia64/kernel/unaligned.c, and arch/parisc/kernel/unaligned.c. While we're at it, integrate unaligned-memory-access.txt into the docs tree. Signed-off-by: Stephen Kitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 4eb9241 commit 997c798

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

Documentation/admin-guide/sysctl/kernel.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,25 @@ Controls whether the panic kmsg data should be reported to Hyper-V.
402402
= =========================================================
403403

404404

405+
ignore-unaligned-usertrap
406+
=========================
407+
408+
On architectures where unaligned accesses cause traps, and where this
409+
feature is supported (``CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN``;
410+
currently, ``arc`` and ``ia64``), controls whether all unaligned traps
411+
are logged.
412+
413+
= =============================================================
414+
0 Log all unaligned accesses.
415+
1 Only warn the first time a process traps. This is the default
416+
setting.
417+
= =============================================================
418+
419+
See also `unaligned-trap`_ and `unaligned-dump-stack`_. On ``ia64``,
420+
this allows system administrators to override the
421+
``IA64_THREAD_UAC_NOPRINT`` ``prctl`` and avoid logs being flooded.
422+
423+
405424
kexec_load_disabled
406425
===================
407426

@@ -1261,6 +1280,38 @@ See :doc:`/admin-guide/kernel-parameters` and
12611280
:doc:`/trace/boottime-trace`.
12621281

12631282

1283+
.. _unaligned-dump-stack:
1284+
1285+
unaligned-dump-stack (ia64)
1286+
===========================
1287+
1288+
When logging unaligned accesses, controls whether the stack is
1289+
dumped.
1290+
1291+
= ===================================================
1292+
0 Do not dump the stack. This is the default setting.
1293+
1 Dump the stack.
1294+
= ===================================================
1295+
1296+
See also `ignore-unaligned-usertrap`_.
1297+
1298+
1299+
unaligned-trap
1300+
==============
1301+
1302+
On architectures where unaligned accesses cause traps, and where this
1303+
feature is supported (``CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW``; currently,
1304+
``arc`` and ``parisc``), controls whether unaligned traps are caught
1305+
and emulated (instead of failing).
1306+
1307+
= ========================================================
1308+
0 Do not emulate unaligned accesses.
1309+
1 Emulate unaligned accesses. This is the default setting.
1310+
= ========================================================
1311+
1312+
See also `ignore-unaligned-usertrap`_.
1313+
1314+
12641315
unknown_nmi_panic
12651316
=================
12661317

Documentation/process/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ lack of a better place.
6161
botching-up-ioctls
6262
clang-format
6363
../riscv/patch-acceptance
64+
unaligned-memory-access
6465

6566
.. only:: subproject and html
6667

File renamed without changes.

0 commit comments

Comments
 (0)