You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presumably this is not just suspension support (which is partially CET compatible, modulo return hijacking), but there is some Exception Handling work as well, right?
There are several places in CoreCLR where EH does something different for CET.
@janvorli - thanks. I started with support for STATUS_RETURN_ADDRESS_HIJACK_ATTEMPT, which should be testable without actual CET enabled.
At some point I will need to enable and test the end-to-end scenario. I may need some help with that.
Activity
VSadov commentedon May 6, 2024
Presumably this is not just suspension support (which is partially CET compatible, modulo return hijacking), but there is some Exception Handling work as well, right?
There are several places in CoreCLR where EH does something different for CET.
jkotas commentedon May 7, 2024
What are the places in EH that you have in mind?
(There may be some changes needed in EH, but they should be very minor.)
VSadov commentedon May 7, 2024
I just did a search for AreCetShadowStacksEnabled and saw a few uses in EH. Did not look in details what they do though.
jkotas commentedon May 7, 2024
Those are related to the suspension support. The shadows stacks turn return address hijacks into
STATUS_RETURN_ADDRESS_HIJACK_ATTEMPTSEH exceptions.VSadov commentedon May 7, 2024
I see. I am trying to see how much is missing in NatveAOT.
I think we might want to fit this into 9.0. Especially since this is security related, it feels it fits the overall theme.
janvorli commentedon May 16, 2024
@VSadov I'll be happy to help with this if you need some clarifications around the CET stuff.
VSadov commentedon May 24, 2024
@janvorli - thanks. I started with support for
STATUS_RETURN_ADDRESS_HIJACK_ATTEMPT, which should be testable without actual CET enabled.At some point I will need to enable and test the end-to-end scenario. I may need some help with that.