linux/arch
Oleg Nesterov 2d299e3d77 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
History 2025-05-04 10:29:25 +02:00
..
alpha treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
arc irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
arm CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
arm64 KVM/arm64 fixes for 6.15, round #2 2025-04-24 13:28:53 -04:00
csky mm: pgtable: convert some architectures to use tlb_remove_ptdesc() 2025-04-01 15:17:13 -07:00
hexagon CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
loongarch LoongArch fixes for v6.15-rc4 2025-04-26 09:02:41 -07:00
m68k CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
microblaze microblaze/mm: put mm_cmdline_setup() in .init.text section 2025-04-01 15:17:13 -07:00
mips CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
nios2 A set of updates for the interrupt subsystem: 2025-04-06 08:17:43 -07:00
openrisc OpenRISC updates for 6.15 2025-04-26 09:01:13 -07:00
parisc lib/crc: remove unnecessary prompt for CONFIG_CRC_T10DIF 2025-04-04 11:31:42 -07:00
powerpc CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
riscv RISC-V Fixes for 6.15-rc4 2025-04-25 13:22:08 -07:00
s390 s390 updates for 6.15-rc2 2025-04-11 08:17:40 -07:00
sh CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
sparc CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
um treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
x86 x86/fpu: Always use memcpy_and_pad() in arch_dup_task_struct() 2025-05-04 10:29:25 +02:00
xtensa treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00