aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2025-05-03 16:38:50 +0200
committerIngo Molnar <mingo@kernel.org>2025-05-04 10:29:25 +0200
commit2d299e3d773d519ee93e5aaa3ffddd4a6276b005 (patch)
treebb56219a4c46774ffce8103ba0bae4f06864f7b7 /scripts/gdb/linux/utils.py
parentx86/fpu: Remove DEFINE_EVENT(x86_fpu, x86_fpu_copy_src) (diff)
downloadlinux-rng-2d299e3d773d519ee93e5aaa3ffddd4a6276b005.tar.xz
linux-rng-2d299e3d773d519ee93e5aaa3ffddd4a6276b005.zip
x86/fpu: Always use memcpy_and_pad() in arch_dup_task_struct()
It makes no sense to copy the bytes after sizeof(struct task_struct), FPU state will be initialized in fpu_clone(). A plain memcpy(dst, src, sizeof(struct task_struct)) should work too, but "_and_pad" looks safer. [ mingo: Simplify it a bit more. ] Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Brian Gerst <brgerst@gmail.com> Cc: Chang S . Bae <chang.seok.bae@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250503143850.GA8997@redhat.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions