aws / aws-nitro-enclaves-cli

Tooling for Nitro Enclave Management
Apache License 2.0
123 stars 80 forks source link

nitro-cli-config leaves CPU pool allocated if memory reservation fails #443

Open sabin-rapan opened 1 year ago

sabin-rapan commented 1 year ago

The following code https://github.com/aws/aws-nitro-enclaves-cli/blob/main/bootstrap/nitro-cli-config#L769-L775 gracefully rolls back memory reservation if there's not enough huge pages available, but doesn't roll back the CPU pool.

Implement rollback for CPU pool as well