arm64: Replace page size panic with warning, add runtime check#12775
Open
ildar-safarov wants to merge 1 commit intogoogle:masterfrom
Open
arm64: Replace page size panic with warning, add runtime check#12775ildar-safarov wants to merge 1 commit intogoogle:masterfrom
ildar-safarov wants to merge 1 commit intogoogle:masterfrom
Conversation
Change the behavior from panicking to printing a warning when the host page size does not match the compiled page size on arm64. This applies to both 4K and 64K page size variants. Add runtime check at runsc startup to ensure host page size matches the compiled page size, failing if they don't match. Fixes google#12717
copybara-service bot pushed a commit that referenced this pull request Mar 24, 2026
Replace panic with warning in hostarch init() when the host page size does not match the compiled page size on arm64. This applies to both 4K and 64K variants so build tools that import hostarch don't crash. Add a page size check at runsc boot startup to fail on mismatch. Fixes #12717 FUTURE_COPYBARA_INTEGRATE_REVIEW=#12775 from ildar-safarov:arm64-pagesize-warning bf87740 PiperOrigin-RevId: 888812236
copybara-service bot pushed a commit that referenced this pull request Mar 24, 2026
Replace panic with warning in hostarch init() when the host page size does not match the compiled page size on arm64. This applies to both 4K and 64K variants so build tools that import hostarch don't crash. Add a page size check at runsc boot startup to fail on mismatch. Fixes #12717 FUTURE_COPYBARA_INTEGRATE_REVIEW=#12775 from ildar-safarov:arm64-pagesize-warning bf87740 PiperOrigin-RevId: 888910979
nblintao approved these changes Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace panic with warning in hostarch init() when the host page size
does not match the compiled page size on arm64. This applies to both
4K and 64K variants so build tools that import hostarch don't crash.
Add a page size check at runsc boot startup to fail on mismatch.
Fixes #12717