Unverified Commit 112cca09 authored by Aleksa Sarai's avatar Aleksa Sarai Committed by Christian Brauner
Browse files

sched_getattr: port to copy_struct_to_user



sched_getattr(2) doesn't care about trailing non-zero bytes in the
(ksize > usize) case, so just use copy_struct_to_user() without checking
ignored_trailing.

Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
Link: https://lore.kernel.org/r/20241010-extensible-structs-check_fields-v3-2-d2833dfe6edd@cyphar.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 424a55a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment