linux/Documentation/admin-guide/hw-vuln
Thomas Weißschuh 8af2d1ab78 admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE_GET
sched_core_share_pid() copies the cookie to userspace with
put_user(id, (u64 __user *)uaddr), expecting 64 bits of space.
The "unsigned long" datatype that is documented in core-scheduling.rst
however is only 32 bits large on 32 bit architectures.

Document "unsigned long long" as the correct data type that is always
64bits large.

This matches what the selftest cs_prctl_test.c has been doing all along.

Fixes: 0159bb020c ("Documentation: Add usecases, design and interface for core scheduling")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/util-linux/df7a25a0-7923-4f8b-a527-5e6f0064074d@t-8ch.de/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Chris Hyser <chris.hyser@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240423-core-scheduling-cookie-v1-1-5753a35f8dfc@weissschuh.net
2024-04-24 13:04:27 -06:00
..
core-scheduling.rst admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE_GET 2024-04-24 13:04:27 -06:00
cross-thread-rsb.rst Documentation/hw-vuln: Fix rST warning 2023-02-15 07:24:23 -05:00
gather_data_sampling.rst Documentation/x86: Fix backwards on/off logic about YMM support 2023-08-01 15:28:24 -07:00
index.rst Documentation/hw-vuln: Add documentation for RFDS 2024-03-11 13:13:46 -07:00
l1d_flush.rst
l1tf.rst
mds.rst docs/hw-vuln: Update desc of best effort mode 2023-10-10 13:35:55 -06:00
multihit.rst
processor_mmio_stale_data.rst docs/hw-vuln: Update desc of best effort mode 2023-10-10 13:35:55 -06:00
reg-file-data-sampling.rst Documentation/hw-vuln: Add documentation for RFDS 2024-03-11 13:13:46 -07:00
special-register-buffer-data-sampling.rst
spectre.rst x86/bugs: Rename CONFIG_RETPOLINE => CONFIG_MITIGATION_RETPOLINE 2024-01-10 10:52:28 +01:00
srso.rst x86/srso: Fix vulnerability reporting for missing microcode 2023-10-20 11:46:09 +02:00
tsx_async_abort.rst docs/hw-vuln: Update desc of best effort mode 2023-10-10 13:35:55 -06:00