diff options
author | 2024-10-10 07:40:35 +1100 | |
---|---|---|
committer | 2024-10-21 16:51:31 +0200 | |
commit | 112cca098a7010c02a4d535a253af72e4e5bbd06 (patch) | |
tree | 769cd47813d2091fe7ec0873655d71d2f9c0c176 /scripts/gdb/linux/modules.py | |
parent | uaccess: add copy_struct_to_user helper (diff) | |
download | wireguard-linux-112cca098a7010c02a4d535a253af72e4e5bbd06.tar.xz wireguard-linux-112cca098a7010c02a4d535a253af72e4e5bbd06.zip |
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>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions