]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_getattr: port to copy_struct_to_user
authorAleksa Sarai <cyphar@cyphar.com>
Wed, 9 Oct 2024 20:40:35 +0000 (07:40 +1100)
committerChristian Brauner <brauner@kernel.org>
Mon, 21 Oct 2024 14:51:31 +0000 (16:51 +0200)
commit112cca098a7010c02a4d535a253af72e4e5bbd06
tree769cd47813d2091fe7ec0873655d71d2f9c0c176
parent424a55a4a9087887fcfcee561648df497701a4a2
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: Aleksa Sarai <cyphar@cyphar.com>
Link: https://lore.kernel.org/r/20241010-extensible-structs-check_fields-v3-2-d2833dfe6edd@cyphar.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/sched/syscalls.c