getcontext and setcontext don't handle extra CPU state added after their
ABIs were laid down. getcontextx and setcontextx do, however, so note that.
Add .Xr to sigreturn, and note the hazard there as well.
Sponsored by: Netflix
Differential D43317
getcontext/setcontext: Make extra CPU state more explicitly a bug imp on Jan 4 2024, 5:58 PM. Authored by Tags None Referenced Files
Subscribers None
Details
getcontext and setcontext don't handle extra CPU state added after their Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions This makes an impression that sigreturn(2) does not handle extended CPU state, which is not true, at least on both 32 and 64bit x86. IMO it is better to explain that ucontext_t MD layout was fixed in times where more modern CPU registers files were not yet introduced, and this is the reason that the state cannot be embedded into ucontext_t without breaking ABI. Instead, we provide them out of structure with pointers ... |