Systems and methods for executing state machine in parallel with application code
Abstract
In some embodiments, a system is provided, comprising enforcement hardware configured to execute, at run time, a state machine in parallel with application code. Executing the state machine may include: maintaining metadata that corresponds to one or more state variables of the state machine; matching instructions in the application code to transitions in the state machine; and, in response to determining that an instruction in the application code does not match any transition from a current state of the state machine, causing an error handling routine to be executed. In some embodiments, a description of a state machine may be translated into at least one policy to be enforced at run time based on metadata labels associated with application code and/or data manipulated by the application code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A system comprising enforcement hardware configured to: execute, at run time, a state machine in parallel with application code, comprising: maintaining metadata that corresponds to one or more state variables of the state machine; matching instructions in the application code to transitions in the state machine; and in response to determining that an instruction in the application code does not match any transition from a current state of the state machine, causing an error handling routine to be executed, wherein: the state machine represents a safety property to be enforced while the application code is executed; maintaining metadata comprises associating metadata with data manipulated by the instruction in the application code; and the enforcement hardware is configured to attempt to match the instruction in the application code to a transition in the state machine based on the metadata associated with the data manipulated by the instruction.
- Claim 2Depends on #1
The system of claim 1, wherein: the instruction comprises a first instruction; and executing the state machine in parallel with the application code further comprises: in response to determining that a second instruction in the application code matches a transition from a current state of the state machine, performing a metadata update according to the matched transition.
- Claim 3Depends on #1
The system of claim 1, wherein causing an error handling routine to be executed comprises: generating an alert; and/or preventing the instruction from being executed.
- Claim 4Depends on #1
The system of claim 1, wherein: the enforcement hardware comprises policy enforcement hardware configured to check run time behavior of the application code against at least one policy; and the at least one policy comprises a security policy and/or a privacy policy.
- Claim 5Depends on #4
The system of claim 4, wherein: the at least one policy comprises the security policy; and the security policy comprises an information flow integrity policy.
- Claim 6Depends on #1
The system of claim 1, wherein: maintaining metadata comprises associating metadata with the instruction in the application code; and the enforcement hardware is configured to attempt to match the instruction in the application code to a transition in the state machine based on the metadata associated with the instruction.
- Claim 7Independent Claim
A method implemented by a system comprising enforcement hardware, the method comprising an act of: executing, at run time, a state machine in parallel with application code, comprising: maintaining metadata that corresponds to one or more state variables of the state machine; matching instructions in the application code to transitions in the state machine; and in response to determining that an instruction in the application code does not match any transition from a current state of the state machine, causing an error handling routine to be executed, wherein: the state machine represents a safety property to be enforced while the application code is executed; maintaining metadata comprises associating metadata with data manipulated by the instruction in the application code; and matching instructions in the application code to transitions in the state machine comprises attempting to match the instruction in the application code to a transition in the state machine based on the metadat
- Claim 8Depends on #7
The method of claim 7, wherein: the instruction comprises a first instruction; and executing the state machine in parallel with the application code further comprises: in response to determining that a second instruction in the application code matches a transition from a current state of the state machine, performing a metadata update according to the matched transition.
Technical Overview & Description
RELATED APPLICATIONS This application is a continuation of U.S. application Ser. No. 17/051,741, filed Oct. 29, 2020, which is a national stage filing under 35 U.S.C. § 371 of International Patent Application Serial No. PCT/US2019/029880, filed Apr. 30, 2019, which claims the benefit under 35 U.S.C. § 119(e) of U.S. Provisional Patent Application Ser. No. 62/664,554 filed on Apr. 30, 2018, titled “ SYSTEMS AND METHODS FOR CHECKING SAFETY PROPERTIES ” The contents of these applications are incorporated herein by reference in their entireties. This application may include subject matter related to that of International Patent Application No. PCT/US2019/016272, filed on Feb. 1, 2019, titled “ SYSTEMS AND METHODS FOR POLICY LINKING AND/OR LOADING FOR SECURE INITIALIZATION, ” , which is hereby incorporated by reference in its entirety. BACKGROUND Safety critical systems are ever present in today's world, from high visibility systems like nuclear power plants and airliners, to more commonplace systems like anti-lock brakes and traffic lights. These systems are becoming more complex over time, adding functionalities as hardware processing capability grows. Designers struggle to ensure that critical safety properties remain intact in these increasingly complex systems. Over the past 50 years, primary approaches to safety have been redundancy and careful development methodologies. A number of variations on redundancy exist, but all involve duplicating functionality to reduce failure probability. Redundant systems may be kept as backups awaiting a failure event, or may be processing in parallel with results decided by vote. As for development methodologies, extensive verification and testing may be performed prior to deployment, to reduce coding errors that may lead to failures. SUMMARY In accordance with some embodiments, a system is provided, comprising enforcement hardware configured to execute, at run time, a state machine in parallel with application code. Executing the
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (80)
Non-Patent Literature (10)
- International Search Report and Written Opinion for International Application No. PCT/US2019/016272 mailed Apr. 8, 2019.
- International Preliminary Report on Patentability for International Application No. PCT/US2019/016272 mailed Aug. 13, 2020.
- International Search Report and Written Opinion for International Application No. PCT/US2019/016276 mailed Apr. 26, 2019.
- International Preliminary Report on Patentability for International Application No. PCT/US2019/016276 mailed Aug. 13, 2020.
- International Search Report and Written Opinion for International Application No. PCT/US2019/029880 mailed Aug. 8, 2019.
- International Preliminary Report on Patentability for International Application No. PCT/US2019/029880 mailed Nov. 12, 2020.
- International Search Report and Written Opinion for International Application No. PCT/US2019/016317 mailed Apr. 16, 2019.
- International Preliminary Report on Patentability for International Application No. PCT/US2019/016317 mailed Aug. 13, 2020.
- International Search Report and Written Opinion for International Application No. PCT/US2020/059057 mailed Feb. 8, 2021.
- International Preliminary Report on Patentability for International Application No. PCT/US2020/059057, mailed May 19, 2022.