aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorBenjamin Berg <[email protected]>2024-12-17 20:27:44 +0000
committerRichard Weinberger <[email protected]>2025-02-12 22:40:38 +0000
commit8891b176d350ec5ea9a39c6ef4c99bd63d68e64c (patch)
treeff78ecd550af765090dd95cf9a26ea7cbeb321ab /net/unix
parentum: add back support for FXSAVE registers (diff)
downloadkernel-8891b176d350ec5ea9a39c6ef4c99bd63d68e64c.tar.gz
kernel-8891b176d350ec5ea9a39c6ef4c99bd63d68e64c.zip
um: avoid copying FP state from init_task
The init_task instance of struct task_struct is statically allocated and does not contain the dynamic area for the userspace FP registers. As such, limit the copy to the valid area of init_task and fill the rest with zero. Note that the FP state is only needed for userspace, and as such it is entirely reasonable for init_task to not contain it. Reported-by: Brian Norris <[email protected]> Closes: https://lore.kernel.org/[email protected] Fixes: 3f17fed21491 ("um: switch to regset API and depend on XSTATE") Signed-off-by: Benjamin Berg <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions