Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177679596
D58723.1795015835.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
550 B
Referenced Files
None
Subscribers
None
D58723.1795015835.diff
View Options
diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -797,15 +797,17 @@
critical_exit();
} else {
+ critical_enter();
+
vfp_restore_state_common(td, curpcb->pcb_fpflags);
/* Enable SVE if it wasn't previously enabled */
if ((curpcb->pcb_fpflags & PCB_FP_SVEVALID) == 0) {
- critical_enter();
+ MPASS(PCPU_GET(fpcurthread) == td);
sve_enable();
curpcb->pcb_fpflags |= PCB_FP_SVEVALID;
- critical_exit();
}
+ critical_exit();
}
return (true);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 3:30 PM (8 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41827009
Default Alt Text
D58723.1795015835.diff (550 B)
Attached To
Mode
D58723: arm64: close a race in SVE register management
Attached
Detach File
Event Timeline