| commit | 112cca098a7010c02a4d535a253af72e4e5bbd06 | [log] [tgz] |
|---|---|---|
| author | Aleksa Sarai <cyphar@cyphar.com> | Thu Oct 10 07:40:35 2024 +1100 |
| committer | Christian Brauner <brauner@kernel.org> | Mon Oct 21 16:51:31 2024 +0200 |
| tree | 769cd47813d2091fe7ec0873655d71d2f9c0c176 | |
| parent | 424a55a4a9087887fcfcee561648df497701a4a2 [diff] |
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>