Skip to content

Add an LRU cache for execve binary SHA-256 hashes.#13713

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl948432440
Open

Add an LRU cache for execve binary SHA-256 hashes.#13713
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl948432440

Conversation

@copybara-service

Copy link
Copy Markdown

Add an LRU cache for execve binary SHA-256 hashes.

This change introduces an LRU cache to store the SHA-256 hashes of executables
computed during execve syscalls. The cache key is based on the file's mount
ID, inode number, size, and modification time. This prevents redundant hash
computations for frequently executed binaries. The cache size is configurable
via SetMaxExecveSha256CacheEntries.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Jul 15, 2026
This change introduces an LRU cache to store the SHA-256 hashes of executables
computed during execve syscalls. The cache key is based on the file's mount
ID, inode number, size, and modification time. This prevents redundant hash
computations for frequently executed binaries. The cache size is configurable
via SetMaxExecveSha256CacheEntries.

PiperOrigin-RevId: 948432440
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant