diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-04-23 13:34:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-25 17:28:40 +0300 |
commit | 60b46b1033d87167b0c733ca70ac5a2cbec5ba39 (patch) | |
tree | 609fc094476f24c6a577115884c2dfa2ac37db85 /Documentation/watchdog/watchdog-kernel-api.rst | |
parent | d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 (diff) | |
download | linux-60b46b1033d87167b0c733ca70ac5a2cbec5ba39.tar.xz |
admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE_GET
commit 8af2d1ab78f2342f8c4c3740ca02d86f0ebfac5a upstream.
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: 0159bb020ca9 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/watchdog/watchdog-kernel-api.rst')
0 files changed, 0 insertions, 0 deletions