Global State Mutex
A global state mutex is a security pattern that uses a single, protocol-wide lock to prevent concurrent access to critical functions across multiple contracts. Unlike a local mutex that protects a single function, a global mutex ensures that no other sensitive operations can occur while a protected process is running.
This is highly effective against cross-function reentrancy, where an attacker might attempt to bypass local locks by interacting with other parts of the system. However, this approach can significantly limit protocol throughput and user experience by creating a bottleneck.
It is often used in high-security environments where the risk of reentrancy outweighs the need for high-frequency concurrency. Implementing a global mutex requires careful coordination and is typically reserved for the most sensitive operations, such as vault withdrawals or liquidation engines.
It represents a trade-off between absolute security and operational efficiency in decentralized finance.