diff options
| author | Benjamin Berg <[email protected]> | 2024-12-17 20:27:44 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2025-02-12 22:40:38 +0000 |
| commit | 8891b176d350ec5ea9a39c6ef4c99bd63d68e64c (patch) | |
| tree | ff78ecd550af765090dd95cf9a26ea7cbeb321ab /net/unix | |
| parent | um: add back support for FXSAVE registers (diff) | |
| download | kernel-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
