diff options
| author | 2023-09-20 14:36:10 +0200 | |
|---|---|---|
| committer | 2023-10-09 16:59:47 +1000 | |
| commit | 569c8d82f95eb5993c84fb61a649a9c4ddd208b3 (patch) | |
| tree | d8dd6433d6d37349c737238eb5b9979d48371c32 /scripts/rustdoc_test_gen.rs | |
| parent | string.h: add array-wrappers for (v)memdup_user() (diff) | |
| download | wireguard-linux-569c8d82f95eb5993c84fb61a649a9c4ddd208b3.tar.xz wireguard-linux-569c8d82f95eb5993c84fb61a649a9c4ddd208b3.zip | |
kernel: kexec: copy user-array safely
Currently, there is no overflow-check with memdup_user().
Use the new function memdup_array_user() instead of memdup_user() for
duplicating the user-space array safely.
Suggested-by: David Airlie <airlied@redhat.com>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230920123612.16914-4-pstanner@redhat.com
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions
